-
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 #5 from skye8-tech/Ndifon
Implementing Causes page
- Loading branch information
Showing
10 changed files
with
127 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react' | ||
|
||
function Pagination() { | ||
return ( | ||
<section className='flex flex-row gap-2 items-center justify-center py-6'> | ||
<div className="py-1 px-2 rounded-lg border border-primary-color w-fit"> | ||
<i class="fas fa-angle-left"></i> | ||
</div> | ||
<div className="py-1 px-2 rounded-lg bg-primary-color text-white w-fit"> | ||
<p> 01</p> | ||
</div> | ||
<div className="py-1 px-2 w-fit">02</div> | ||
<div className="py-1 px-2 w-fit">03</div> | ||
<div className="py-1 px-2 w-fit">---</div> | ||
<div className="py-1 px-2 w-fit">10</div> | ||
<div className="py-1 px-2 rounded-lg bg-primary-color text-white w-fit"> | ||
<i class="fas fa-angle-right"></i> | ||
</div> | ||
</section> | ||
); | ||
} | ||
|
||
export default Pagination |
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 { Outlet, Link } from "react-router-dom"; | ||
|
||
function GeneralHero(props) { | ||
const {image,title}=props; | ||
const backgroundImageStyle = { | ||
backgroundImage: `linear-gradient(rgba(15, 23, 43, 0.6), rgba(15, 23, 43, 0.6)), url(${image})`, | ||
backgroundSize: "cover", | ||
backgroundPosition: "center", | ||
backgroundRepeat: "no-repeat", | ||
height: "40vh", | ||
width:"100%" | ||
}; | ||
|
||
return ( | ||
<div> | ||
<div | ||
style={backgroundImageStyle} | ||
className=" text-white flex items-center justify-center " | ||
> | ||
<div className=" flex flex-col items-center text-center justify-center "> | ||
<h1 className=" text-3xl md:text-5xl ">{title}</h1> | ||
|
||
<div className="flex flex-row items-center gap-4 text-slate-200 text-2xl"> | ||
<p> | ||
<Link to="/" className=""> | ||
Home | ||
</Link> | ||
</p> | ||
<i className="fa fa-angle-right pr-2"></i> | ||
<p>{title}</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<Outlet /> | ||
</div> | ||
); | ||
} | ||
|
||
export default GeneralHero |
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,25 @@ | ||
import React from "react"; | ||
import Header from "../../components/layout/Header"; | ||
import GeneralHero from "../../components/layout/GeneralHero"; | ||
import image from "../../assets/images/Rectangle 2.png"; | ||
import CausesSection from "./components/CausesSection"; | ||
import Pagination from "../../components/Pagination"; | ||
import StatisticsSection from "../../components/layout/StatisticsSection"; | ||
import ReviewSection from "../home/components/ReviewSection"; | ||
import Footer from "../../components/layout/Footer"; | ||
|
||
function Causes() { | ||
return ( | ||
<div className=""> | ||
<Header outerCircle=""></Header> | ||
<GeneralHero title="Causes" image={image}></GeneralHero> | ||
<CausesSection ></CausesSection> | ||
<Pagination></Pagination> | ||
<StatisticsSection></StatisticsSection> | ||
<ReviewSection></ReviewSection> | ||
<Footer></Footer> | ||
</div> | ||
); | ||
} | ||
|
||
export default Causes; |
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,16 @@ | ||
import React from 'react' | ||
import DonationCard from '../../home/components/DonationCard' | ||
|
||
function CausesSection() { | ||
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"> | ||
{new Array(9).fill(null).map((_, index) => ( | ||
<DonationCard key={index} className=""></DonationCard> | ||
))} | ||
</div> | ||
</section> | ||
); | ||
} | ||
|
||
export default CausesSection |
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