Skip to content

Commit

Permalink
Merge pull request #43 from skye8-tech/Fix-Home
Browse files Browse the repository at this point in the history
fix home issue
  • Loading branch information
spykelionel authored Aug 12, 2024
2 parents 3b1739d + cc9afb4 commit dfaaaea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/pages/causes/components/CausesSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ 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>
))} */}

{donations.map((donation, index) => (
<DonationCard key={donation.id} {...donation} />
))}
Expand Down
12 changes: 5 additions & 7 deletions src/pages/home/components/DonationSection.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import DonationCard from "./DonationCard";

import { donations } from "../../causes/data/data";
function DonationSection() {
return (
<section className="mx-6 md:mx-32 flex flex-col items-center my-20 gap-10">
Expand All @@ -9,12 +9,10 @@ function DonationSection() {
Causes of Givest
</p>
<div className="flex flex-col gap-8 lg:flex-row">
<DonationCard />
{/* card 2 */}
<DonationCard />
{/* card 3 */}
<DonationCard />
</div>

{donations.slice(0, 3).map((donation, index) => (
<DonationCard key={donation.id} {...donation} />
))}

<div className="flex flex-row gap-1 ">
<div className="w-4 h-4 rounded-lg bg-[#9483F1]"></div>
Expand Down

0 comments on commit dfaaaea

Please sign in to comment.