-
Notifications
You must be signed in to change notification settings - Fork 0
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
Changes from 3 commits
73833fb
4bd971f
99eb5fe
c7b88ee
76518b5
316bf36
5ecea3a
748da5d
63bc219
8be79c1
e500536
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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"; | ||||||
|
||||||
const Philanthropy = () => { | ||||||
return ( | ||||||
<div className="relative grid grid-cols-4 p-6"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. grid is not needed here, try referencing the code here
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" /> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Use image tag from next/image. you need to import it at the top like
|
||||||
</div> | ||||||
</div> | ||||||
</div> | ||||||
); | ||||||
}; | ||||||
|
||||||
export default Philanthropy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this to something better than Image like Heart or something