-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from skye8-tech/BlogDetails
Blog details
- Loading branch information
Showing
13 changed files
with
296 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<> | ||
<Header outerCircle=""></Header> | ||
<GeneralHero | ||
title="Blog " | ||
subTitle="Blog List" | ||
image={image1} | ||
></GeneralHero> | ||
|
||
<BlogList></BlogList> | ||
|
||
<StatisticsSection></StatisticsSection> | ||
<Footer></Footer> | ||
</> | ||
); | ||
} | ||
|
||
export default Blog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<> | ||
<Header outerCircle=""></Header> | ||
<GeneralHero | ||
title="Blog Details " | ||
subTitle="Children Education Need fory the world " | ||
image={image} | ||
></GeneralHero> | ||
|
||
<section> | ||
<div className="flex flex-col md:flex-row mx-6 md:mx-32 my-20 gap-10"> | ||
<section className="flex flex-col w-full md:w-1/2 gap-5"> | ||
<div className=" flex flex-col gap-6"> | ||
<p className=" text-2xl md:text-3xl font-bold ">Causes Category</p> | ||
<div className="flex flex-row justify-between"> | ||
<p>Water</p> | ||
<p>(01)</p> | ||
</div> | ||
<div className="flex flex-row justify-between"> | ||
<p>Education </p> | ||
<p>(05)</p> | ||
</div> | ||
<div className="flex flex-row justify-between"> | ||
<p>Water</p> | ||
<p>(01)</p> | ||
</div> | ||
<div className="flex flex-row justify-between"> | ||
<p>Education </p> | ||
<p>(05)</p> | ||
</div> | ||
</div> | ||
<div className="flex flex-col gap-6"> | ||
<p className=" text-2xl mb-3 md:text-3xl font-bold "> | ||
Urgent Causes | ||
</p> | ||
<div className="flex flex-col gap-4 w-full"> | ||
<img src={image} /> | ||
|
||
<div className="p-4 flex flex-col gap-5"> | ||
<div className="flex flex-col"> | ||
<p className="font-bold text-xl p-0 m-0"> | ||
Children education need for the change the world{" "} | ||
</p> | ||
<p className="m-0"> | ||
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. | ||
</p> | ||
</div> | ||
<div className="flex flex-row justify-between"> | ||
<div> | ||
<p className="font-medium">Goal</p> | ||
<p className="font-medium text-xl text-primary-color"> | ||
$1000 | ||
</p> | ||
</div> | ||
<div> | ||
<p className="font-medium">Goal</p> | ||
<p className="font-medium text-xl text-primary-color"> | ||
$1000 | ||
</p> | ||
</div> | ||
<div> | ||
<p className="font-medium">Goal</p> | ||
<p className="font-medium text-xl text-primary-color"> | ||
$1000 | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="flex flex-col items-center gap-6 w-full"> | ||
<div className="flex flex-row justify-between "> | ||
<div className="border border-primary-color py-2 px-6 h-fit"> | ||
{" "} | ||
$20 | ||
</div> | ||
<div className="border border-primary-color py-2 px-6 h-fit"> | ||
{" "} | ||
$50 | ||
</div> | ||
<div className="border border-primary-color py-2 px-6 h-fit"> | ||
{" "} | ||
$200 | ||
</div> | ||
<div className="border border-primary-color py-2 px-6 h-fit"> | ||
{" "} | ||
$200 | ||
</div> | ||
<div className="border border-primary-color py-2 px-6 h-fit"> | ||
{" "} | ||
Custom | ||
</div> | ||
</div> | ||
<Button | ||
className="flex justify-center items-center w-full" | ||
type="primary-link" | ||
text="Donate Now" | ||
icon={<i className="fa fa-angle-right"></i>} | ||
href={`/donate`} | ||
style={{ width: "100%" }} | ||
></Button> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
{/* right section */} | ||
<section className="flex flex-col gap-6 w-full md:w-1/2 "> | ||
<img src={image2} alt='blogcover'className="w-full" /> | ||
<div> | ||
<p className=" text-2xl md:text-3xl font-bold ">Children Education Needs for Well The World</p> | ||
<p> | ||
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. | ||
</p> | ||
</div> | ||
<div> | ||
<p className=" text-2xl md:text-3xl font-bold ">Online education needs for the change The World</p> | ||
<p> | ||
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. | ||
</p> | ||
</div> | ||
<div className='flex flex-row gap-6 justify-between'> | ||
<img src={image3} className="w-1/3"alt="" /> | ||
<img src={image3} className="w-1/3"alt="" /> | ||
<img src={image3} className="w-1/3"alt="" /> | ||
</div> | ||
<div> | ||
<p> | ||
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. | ||
</p> | ||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
|
||
<StatisticsSection></StatisticsSection> | ||
<Footer></Footer> | ||
</> | ||
) | ||
} | ||
|
||
export default BlogDetails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<> | ||
<section className="mx-6 md:mx-32 flex flex-col items-center my-20 gap-10"> | ||
|
||
<div className="flex flex-col lg:grid lg:grid-cols-3 gap-6"> | ||
{Array.from({ length: 12 }).map((_, index) => ( | ||
|
||
<BlogCard key={index} | ||
|
||
id={blogId} | ||
image={image14} | ||
day="25" | ||
month="Febuary" | ||
category="Education" | ||
title="Children Education Needs For Well The World." | ||
description="Children Education Needs For Well The World." | ||
author="Adam" | ||
/> | ||
))} | ||
|
||
</div> | ||
|
||
<Pagination/> | ||
</section> | ||
</> | ||
) | ||
} | ||
|
||
export default BlogList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.