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 Learn More button to Nonprofit in Project #86

Merged
merged 3 commits into from
Jan 24, 2024

Conversation

su-esther
Copy link
Collaborator

Status: 🚀 Ready

Description

Adds a "Learn More" button that leads to the nonprofit's website in each H4I project's page

Fixes #85

Todos

Screenshots

Screen Shot 2023-03-23 at 1 24 17 PM

@vercel
Copy link

vercel bot commented Mar 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
uiuc-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 7:59am

Copy link
Member

@SirajChokshi SirajChokshi left a comment

Choose a reason for hiding this comment

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

Looks good! Left one comment about a11y

@@ -46,8 +47,13 @@
>
<h2>Our Partner</h2>
<p>{data.project.nonprofitDescription}</p>
<Button
href={data.project.nonprofitUrl}
type="secondary-custom"
Copy link
Member

Choose a reason for hiding this comment

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

We probably want to use a primary button here since there won't always be good contrast between the background the project's color. Should make this easier to read.

Screenshot 2023-03-23 at 11 34 37 AM

Copy link
Member

Choose a reason for hiding this comment

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

With this primary button you can use the primary-custom type and change the background color + text color to make it look like the scheme in DoubleBanner. Is that what you had in mind @SirajChokshi? The project-specific coloring for this looks pretty good imo.

My only concern with using the primary button here is that we'll eventually want a "visit site"/"view project" button that should be more visible, but that could have unique styling anyway.

Copy link
Member

@SirajChokshi SirajChokshi Mar 24, 2023

Choose a reason for hiding this comment

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

Yup, I meant primary-custom. I like the project-themed colors too :)

I think the secondary button in this type of lockup should be just text. At least to me, the border on the secondary button is too heavily weighted to make the label readable.

Copy link
Member

@AndrewLester AndrewLester left a comment

Choose a reason for hiding this comment

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

Great work adding this, and nice job incorporating the project-specific colors. I didn't really consider that before, but it makes total sense.

Just the comments in the thread above I think, + do you mind adding back the newline between the sections on line 50, just to improve the readability of the page file?

@SirajChokshi
Copy link
Member

Screenshot 2023-03-24 at 12 46 59 PM

This button is primary, but I was thinking we'd have the project color as the background and white as the text color (cc @AndrewLester)

@AndrewLester
Copy link
Member

AndrewLester commented Mar 24, 2023

Yep, I agree. For example, the "double banner"'s color scheme, to be used on the button:

image

(Example color scheme of the button, just from the 7000 languages banner)

The Button component's backgroundColor prop can be used for this.

@AndrewLester AndrewLester merged commit 15cea4c into main Jan 24, 2024
10 checks passed
@AndrewLester AndrewLester deleted the el/partner-learn-more branch January 24, 2024 07:59
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.

Project Partner Learn More
3 participants