diff --git a/src/components/home/Blog.jsx b/src/components/home/Blog.jsx new file mode 100644 index 0000000..e759501 --- /dev/null +++ b/src/components/home/Blog.jsx @@ -0,0 +1,134 @@ +import { Div, Section, Title } from "../../shared"; + +const posts = [ + { + id: 1, + title: "Boost your conversion rate", + href: "#", + description: + "Illo sint voluptas. Error voluptates culpa eligendi. Hic vel totam vitae illo. Non aliquid explicabo necessitatibus unde. Sed exercitationem placeat consectetur nulla deserunt vel. Iusto corrupti dicta.", + imageUrl: + "https://images.unsplash.com/photo-1496128858413-b36217c2ce36?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3603&q=80", + date: "Mar 16, 2020", + datetime: "2020-03-16", + category: { title: "Marketing", href: "#" }, + author: { + name: "Michael Foster", + role: "Co-Founder / CTO", + href: "#", + imageUrl: + "https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80", + }, + }, + { + id: 2, + title: "Boost your conversion rate", + href: "#", + description: + "Illo sint voluptas. Error voluptates culpa eligendi. Hic vel totam vitae illo. Non aliquid explicabo necessitatibus unde. Sed exercitationem placeat consectetur nulla deserunt vel. Iusto corrupti dicta.", + imageUrl: + "https://images.unsplash.com/photo-1496128858413-b36217c2ce36?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3603&q=80", + date: "Mar 16, 2020", + datetime: "2020-03-16", + category: { title: "Marketing", href: "#" }, + author: { + name: "Michael Foster", + role: "Co-Founder / CTO", + href: "#", + imageUrl: + "https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80", + }, + }, + { + id: 3, + title: "Boost your conversion rate", + href: "#", + description: + "Illo sint voluptas. Error voluptates culpa eligendi. Hic vel totam vitae illo. Non aliquid explicabo necessitatibus unde. Sed exercitationem placeat consectetur nulla deserunt vel. Iusto corrupti dicta.", + imageUrl: + "https://images.unsplash.com/photo-1496128858413-b36217c2ce36?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3603&q=80", + date: "Mar 16, 2020", + datetime: "2020-03-16", + category: { title: "Marketing", href: "#" }, + author: { + name: "Michael Foster", + role: "Co-Founder / CTO", + href: "#", + imageUrl: + "https://images.unsplash.com/photo-1519244703995-f4e0f30006d5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80", + }, + }, +]; + +export default function Example() { + return ( +
+
+
+
+ From the Blog +
+
+
+ {posts.map((post) => ( + + ))} +
+
+
+
+
+ ); +} diff --git a/src/components/home/index.jsx b/src/components/home/index.jsx index 8e7bb7d..21d5e6d 100644 --- a/src/components/home/index.jsx +++ b/src/components/home/index.jsx @@ -5,3 +5,4 @@ export { default as Team } from "./Team"; export { default as FAQ } from "./FAQ"; export { default as Getfeatures } from "./Getfeatures"; export { default as Workflow } from "./WorkflowFrame"; +export { default as Blog } from "./Blog"; diff --git a/src/containers/HomeContainer.jsx b/src/containers/HomeContainer.jsx index d71e7e7..f8c47a5 100644 --- a/src/containers/HomeContainer.jsx +++ b/src/containers/HomeContainer.jsx @@ -1,6 +1,6 @@ import React from 'react' import { Footer, Navbar } from '../components'; -import { Hero, Partners, Backers, Team, FAQ, Getfeatures, Workflow } from '../components/home'; +import { Hero, Partners, Backers, Team, FAQ, Blog, Getfeatures, Workflow } from '../components/home'; function HomeContainer() { return ( @@ -12,6 +12,7 @@ function HomeContainer() { +