diff --git a/src/App.jsx b/src/App.jsx index f263b39..25b24cd 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -3,15 +3,16 @@ import { BrowserRouter, Route, Routes } from "react-router-dom"; import About from "./pages/about/About"; +import Blog from "./pages/Blog/Blog"; import Career from "./pages/career/Career"; import CauseDetails from "./pages/causes/CauseDetails"; import Causes from "./pages/causes/Causes"; import DonatePage from "./pages/causes/DonatePage"; import Contact from "./pages/contact/Contact"; import Donners from "./pages/donners/Donners"; +import Faqs from "./pages/faqs/Faqs"; import Home from "./pages/home/Home"; import Leadership from "./pages/leadership/Leadership"; -import Faqs from "./pages/faqs/Faqs"; function App() { return ( @@ -27,6 +28,8 @@ function App() { } /> } /> } /> + } /> + {/* }/> */} ); diff --git a/src/pages/Blog/Blog.jsx b/src/pages/Blog/Blog.jsx new file mode 100644 index 0000000..3b26bb9 --- /dev/null +++ b/src/pages/Blog/Blog.jsx @@ -0,0 +1,28 @@ +import React from "react"; +import GeneralHero from "../../components/layout/GeneralHero"; +import Header from "../../components/layout/Header"; +import image1 from "/assets/images/Rectangle 2.png"; + +import Footer from "../../components/layout/Footer"; +import StatisticsSection from "../../components/layout/StatisticsSection"; +import BlogList from "./components/BlogList"; + +function Blog() { + return ( + <> +
+ + + + + +
+ + ); +} + +export default Blog; diff --git a/src/pages/Blog/components/BlogList.jsx b/src/pages/Blog/components/BlogList.jsx new file mode 100644 index 0000000..4625bd0 --- /dev/null +++ b/src/pages/Blog/components/BlogList.jsx @@ -0,0 +1,39 @@ +import React from "react"; +import Pagination from "../../../components/Pagination"; +import BlogCard from "../../home/components/BlogCard"; +import image14 from "/assets/images/Rectangle 14.png"; + +function BlogList() { + const blogId = 1; + const day = "25"; + const month = "Febuary"; + const category = "Education"; + const title = "Children Education Needs For Well The World."; + const description = "Children Education Needs For Well The World."; + const author = "Adam"; + return ( + <> +
+
+ {Array.from({ length: 12 }).map((_, index) => ( + + ))} +
+ + +
+ + ); +} + +export default BlogList; diff --git a/src/pages/causes/CauseDetails.jsx b/src/pages/causes/CauseDetails.jsx index 2fc4bfa..65c596b 100644 --- a/src/pages/causes/CauseDetails.jsx +++ b/src/pages/causes/CauseDetails.jsx @@ -86,23 +86,23 @@ function CauseDetails() {
-
+
{" "} $20
-
+
{" "} $50
-
+
{" "} $200
-
+
{" "} $200
-
+
{" "} Custom
diff --git a/src/pages/faqs/Faqs.jsx b/src/pages/faqs/Faqs.jsx index fe18c3f..79c36e9 100644 --- a/src/pages/faqs/Faqs.jsx +++ b/src/pages/faqs/Faqs.jsx @@ -1,23 +1,18 @@ -import React from 'react' -import Header from '../../components/layout/Header' -import Hero1 from '../../components/layout/Hero1' -import Footer from '../../components/layout/Footer' - +import React from "react"; +import Footer from "../../components/layout/Footer"; +import Header from "../../components/layout/Header"; +import Hero1 from "../../components/layout/Hero1"; +// import FaqsSection from './components/FaqsSection' const Faqs = () => { return (
-
- - -{/* */} +
+ -
+ {/* */} +
); }; diff --git a/src/pages/home/components/BlogCard.jsx b/src/pages/home/components/BlogCard.jsx index 0ef58a6..509b9cb 100644 --- a/src/pages/home/components/BlogCard.jsx +++ b/src/pages/home/components/BlogCard.jsx @@ -2,9 +2,11 @@ import React from "react"; import Button from "../../../components/Button"; function BlogCard(props) { - const { image, day, month, category, title, description, author } = props; + + const { id,image, day, month, category, title, description, author } = props; const maxDescriptionLength = 60; // max letters - const truncatedDescription = + console.log(id); + const truncatedDescription = description.length > maxDescriptionLength ? `${description.substring(0, maxDescriptionLength)}...` : description; @@ -41,10 +43,11 @@ function BlogCard(props) {

{author}

+ type="secondary-link" + text="Readmore" + icon={} + href={`/blog/${id}`} + >
); diff --git a/src/pages/home/components/DonationSection.jsx b/src/pages/home/components/DonationSection.jsx index f62231b..5a819bf 100644 --- a/src/pages/home/components/DonationSection.jsx +++ b/src/pages/home/components/DonationSection.jsx @@ -10,6 +10,7 @@ function DonationSection() { Causes of Givest

+ {donations.slice(0, 3).map((donation, index) => ( ))} diff --git a/src/pages/home/components/EventCard.jsx b/src/pages/home/components/EventCard.jsx index 55c2eee..002bcf4 100644 --- a/src/pages/home/components/EventCard.jsx +++ b/src/pages/home/components/EventCard.jsx @@ -1,6 +1,6 @@ import React from 'react' -import image10 from "/assets/images/Image1.png"; +import image10 from "/assets/images/Image1.png"; function EventCard(props) { const title = props.title; diff --git a/src/pages/home/components/HelpSection.jsx b/src/pages/home/components/HelpSection.jsx index 4d56b09..1dc394e 100644 --- a/src/pages/home/components/HelpSection.jsx +++ b/src/pages/home/components/HelpSection.jsx @@ -1,4 +1,5 @@ import React from "react"; + import icon from "/assets/images/Icon.png"; import icon2 from "/assets/images/Icon2.png"; import icon3 from "/assets/images/Icon3.png";