Skip to content

Yaohong why you should sponsor#39

Open
Yc103 wants to merge 2 commits intomainfrom
Yaohong-why-you-should-sponsor
Open

Yaohong why you should sponsor#39
Yc103 wants to merge 2 commits intomainfrom
Yaohong-why-you-should-sponsor

Conversation

@Yc103
Copy link
Collaborator

@Yc103 Yc103 commented Feb 24, 2026

Description

briefly describe what you made and take any screenshots or provide anything else you feel is necessary:
I built the “Why should you sponsor us?” component following the Figma design. I have a big container. Inside, I created a smaller container that holds two elements of the picture and the list of benefit point.

Checklist:

after creating your PR please mark all of these:

  • Global colors were used (let us know if any are missing)
  • Text/images/paths are not hard coded (passed in by props)

I’ve completed most of the component, including the title and the benefits list. I’m currently working on integrating the images from Figma as the background and figuring out the best way to implement them properly.
Ready for review and check in
@Yc103 Yc103 linked an issue Feb 24, 2026 that may be closed by this pull request
@Yc103 Yc103 requested review from austin1im and kyharac February 24, 2026 22:55
@Yc103 Yc103 self-assigned this Feb 25, 2026
<div className={styles.container}>
<div className={styles.textPictureContainer}>
{/*use this if path to image don't work <Image src="/public/Mask-group 1.png" alt="Team Picture" className={styles.picture} ></Image>*/}
<Image alt="Team Picture" className={styles.picture}/>
Copy link
Collaborator

@kyharac kyharac Feb 26, 2026

Choose a reason for hiding this comment

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

Where is your src attribute? I noticed that you mention it in your comment (which is the right format!). You can uncomment line 7, or simply add src =

flex-direction: column;
align-items: flex-start;
gap: 0.625rem;
background: url('/public/Frame 1618873348.png') lightgray 0% 0% / 100px 100px repeat, linear-gradient(180deg, #000138 0%, #172B54 100%);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this can be a lot simpler. You can add the background image like you did with the picture and style it separate to the container!

Copy link
Collaborator

@kyharac kyharac left a comment

Choose a reason for hiding this comment

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

Make sure to add these changes, run it (npm run dev) and check if there are any errors if it doesn't look like the Figma design!

rename your .jsx and .module.scss to why sponsor us and add it to a components folder

height: 23.1875rem;
padding-top: 74.8%;
border-radius: 0.9375rem;
background: url('/public/Frame 1618873348.png') lightgray -43.509px -37.68px / 116.959% 122.266% no-repeat;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Similar thing, if you add src attribute to line 8, then you would not need to do url() or any of that extra stuff. Make sure to look at other resources (slides, youtube, or google) or simply ask if you need help!

justify-content: center;
align-items: center;
gap: 4.6875rem;
flex-shrink: 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think flex-shrink is needed here/unnecessary. Is there reason as to why you added it?

height: 8.0625rem;
flex-shrink: 0;
align-self: stretch;
color: #FFF;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure to use the colors we have under globals, this seems to be white so you can use var(--white) or var(--off-white). Whatever fits best based on the Figma!


.container {
display: flex;
width: 90rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of using width & height, use padding or margin. Check out the CSS box model from our slides or simply DM us for help!

line-height: normal;
}

.benefit{
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't match with your classname in your .jsx file. Make sure to test/run as you go to make sure you are implementing everything correctly and matches w/ the design on Figma!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Since it doesn't match, styling will not be applied to benefits

align-items: center;
gap: 4.6875rem;
flex-shrink: 0;
align-self: stretch;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe stretch is a default behavior here due to its parent, so this is not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Why you should sponsor

2 participants