Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Philanthropy component #46

Merged
merged 11 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions public/about/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import WhoWeAre from "@/components/about/WhoWeAre";
import Heading from "@/components/about/FourPillTitle";
import Title from "@/components/Title";
import Philanthropy from "@/components/about/Philanthropy";

const page = () => {
return (
<div>
<WhoWeAre />
<Heading />
<Title text="about" />
<Philanthropy />
</div>
);
};
Expand Down
22 changes: 22 additions & 0 deletions src/components/about/Philanthropy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from "react";
import Image from "@/public/about/heart.svg";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import Image from "@/public/about/heart.svg";
import Image from "@/public/about/heart.svg";

Rename this to something better than Image like Heart or something


const Philanthropy = () => {
return (
<div className="relative grid grid-cols-4 p-6">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grid is not needed here, try referencing the code here

<div className="flex justify-end">
      <div className="relative h-[12vh] w-[25vw] border-8 border-csa-gray-100 rounded-3xl flex items-center">
         ......
      </div>
</div>

you won't need justify-end since your component starts on the left side of the page but you'll need some margin left. and where the ... is you'll have to add the text and image.

<div className="col-span-2 flex items-center rounded-3xl border-8 border-csa-green-100 bg-white p-2">
<p className="font-lora p-4 text-left text-5xl font-bold text-csa-gray-200">
Philanthropy
</p>
<div
className="absolute left-1/2"
style={{ transform: "translateY(5%) translateX(-50%)" }}
>
<img src={Image.src} alt="heart" className="h-3/4 w-3/4" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<img src={Image.src} alt="heart" className="h-3/4 w-3/4" />
<Image src={Image.src} alt="heart" className="h-3/4 w-3/4" />

Use image tag from next/image. you need to import it at the top like

Import Image from "next/Image" or something like this

</div>
</div>
</div>
);
};

export default Philanthropy;
Loading