diff --git a/src/App.jsx b/src/App.jsx index f263b39..56158ad 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -12,6 +12,8 @@ import Donners from "./pages/donners/Donners"; import Home from "./pages/home/Home"; import Leadership from "./pages/leadership/Leadership"; import Faqs from "./pages/faqs/Faqs"; +import Blog from "./pages/Blog/Blog"; +import BlogDetails from "./pages/Blog/BlogDetails"; function App() { return ( @@ -27,6 +29,8 @@ function App() { } /> } /> } /> + }/> + }/> ); diff --git a/src/components/layout/Header.jsx b/src/components/layout/Header.jsx index ebe36fe..7b2a1c3 100644 --- a/src/components/layout/Header.jsx +++ b/src/components/layout/Header.jsx @@ -60,10 +60,12 @@ function Header(props) { ))} + + type="primary-link" + text="Donate Now" + icon={} + href={`/donate`} + > {children} diff --git a/src/pages/Blog/Blog.jsx b/src/pages/Blog/Blog.jsx new file mode 100644 index 0000000..241b8fd --- /dev/null +++ b/src/pages/Blog/Blog.jsx @@ -0,0 +1,28 @@ +import React from "react"; +import image1 from "../../assets/images/Rectangle 2.png"; +import GeneralHero from "../../components/layout/GeneralHero"; +import Header from "../../components/layout/Header"; + +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/BlogDetails.jsx b/src/pages/Blog/BlogDetails.jsx new file mode 100644 index 0000000..88a8611 --- /dev/null +++ b/src/pages/Blog/BlogDetails.jsx @@ -0,0 +1,174 @@ +import React from 'react' +import { useParams } from "react-router-dom"; +import Button from "../../../src/components/Button"; +import image from "../../assets/images/Rectangle 2.png"; +import image2 from "../../assets/images/Image3.png"; +import image3 from "../../assets/images/Rectangle19.jpg"; +import Footer from "../../components/layout/Footer"; +import GeneralHero from "../../components/layout/GeneralHero"; +import Header from "../../components/layout/Header"; +import StatisticsSection from "../../components/layout/StatisticsSection"; + +function BlogDetails() { + const id= useParams().id + + return ( + <> +
+ + +
+
+
+
+

Causes Category

+
+

Water

+

(01)

+
+
+

Education

+

(05)

+
+
+

Water

+

(01)

+
+
+

Education

+

(05)

+
+
+
+

+ Urgent Causes +

+
+ + +
+
+

+ Children education need for the change the world{" "} +

+

+ Lorem ipsum dolor sit, amet consectetur adipisicing elit. + Fugiat exercitationem quod incidunt placeat laborum. + Repellendus, repudiandae error, quae nam esse possimus est + illum, autem nisi voluptatum molestiae dolores doloremque + inventore. +

+
+
+
+

Goal

+

+ $1000 +

+
+
+

Goal

+

+ $1000 +

+
+
+

Goal

+

+ $1000 +

+
+
+
+ +
+
+
+ {" "} + $20 +
+
+ {" "} + $50 +
+
+ {" "} + $200 +
+
+ {" "} + $200 +
+
+ {" "} + Custom +
+
+ +
+
+
+
+ + {/* right section */} +
+ blogcover +
+

Children Education Needs for Well The World

+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. lorem + Lorem ipsum dolor sit amet consectetur adipisicing elit. A eius, + obcaecati pariatur culpa sapiente aut ratione voluptates voluptas + officiis minima saepe dignissimos labore vel autem eveniet debitis + repudiandae delectus inventore. Culpa accusantium amet provident + hic quis voluptate, autem voluptatem magni quos eos quisquam omnis + quae rem, repellendus nihil sit saepe, impedit perspiciatis. +

+
+
+

Online education needs for the change The World

+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. lorem + Lorem ipsum dolor sit amet consectetur adipisicing elit. A eius, + obcaecati pariatur culpa sapiente aut ratione voluptates voluptas + officiis minima saepe dignissimos labore vel autem eveniet debitis + repudiandae delectus inventore. Culpa accusantium amet provident + hic quis voluptate, autem voluptatem magni quos eos quisquam omnis + quae rem, repellendus nihil sit saepe, impedit perspiciatis. +

+
+
+ + + +
+
+

+ Lorem ipsum dolor sit amet consectetur adipisicing elit. lorem + Lorem ipsum dolor sit amet consectetur adipisicing elit. A eius, + obcaecati pariatur culpa sapiente aut ratione voluptates voluptas + quae rem, repellendus nihil sit saepe, impedit perspiciatis. +

+
+
+
+
+ + +
+ + ) +} + +export default BlogDetails \ No newline at end of file diff --git a/src/pages/Blog/components/BlogList.jsx b/src/pages/Blog/components/BlogList.jsx new file mode 100644 index 0000000..a08c3e6 --- /dev/null +++ b/src/pages/Blog/components/BlogList.jsx @@ -0,0 +1,41 @@ +import React from 'react' +import BlogCard from '../../home/components/BlogCard'; +import image14 from "../../../assets/images/Rectangle 14.png"; +import Pagination from '../../../components/Pagination'; +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..c600d83 100644 --- a/src/pages/faqs/Faqs.jsx +++ b/src/pages/faqs/Faqs.jsx @@ -2,6 +2,8 @@ import React from 'react' import Header from '../../components/layout/Header' import Hero1 from '../../components/layout/Hero1' import Footer from '../../components/layout/Footer' +// import FaqsSection from './components/FaqsSection' + const Faqs = () => { 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..3717da5 100644 --- a/src/pages/home/components/DonationSection.jsx +++ b/src/pages/home/components/DonationSection.jsx @@ -10,10 +10,11 @@ function DonationSection() { Causes of Givest

- {donations.slice(0, 3).map((donation, index) => ( - - ))} -
+ + {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..4d95a44 100644 --- a/src/pages/home/components/EventCard.jsx +++ b/src/pages/home/components/EventCard.jsx @@ -1,7 +1,6 @@ import React from 'react' import image10 from "/assets/images/Image1.png"; - function EventCard(props) { const title = props.title; const start_date = props.start_date; diff --git a/src/pages/home/components/EventSection.jsx b/src/pages/home/components/EventSection.jsx index 3b35259..5f750de 100644 --- a/src/pages/home/components/EventSection.jsx +++ b/src/pages/home/components/EventSection.jsx @@ -13,10 +13,12 @@ function EventSection() { industry ore

+ + type="primary-link" + text="Donate Now" + icon={} + href={`/donate`} + >
Change The World.

+ -
diff --git a/src/pages/home/components/PeopleDonationSection.jsx b/src/pages/home/components/PeopleDonationSection.jsx index 57599af..31c9664 100644 --- a/src/pages/home/components/PeopleDonationSection.jsx +++ b/src/pages/home/components/PeopleDonationSection.jsx @@ -41,11 +41,13 @@ function PeopleDonationSection() {
- +