Skip to content

Conversation

ImMiguelP
Copy link
Contributor

Description

Migrates Layer2ProductCard component from emotion to chakra-ui

Related Issue

#6374

@gatsby-cloud
Copy link

gatsby-cloud bot commented Sep 24, 2022

✅ ethereum-org-website-dev deploy preview ready

className="hover"
>
<Box>
<Heading as="h3" mt="0" mb={3}>
Copy link
Member

Choose a reason for hiding this comment

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

image

this heading seems too big comparing it with the prod version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So it seems chakra sizing for h3 "lg" is bigger than the sizing y'all are using. I messed around with the font size and used "24px" but when the screen size resolution goes to phone the font is smaller than what is being used in the prod version. The closest I got to it looking to the prod version is using size="md".

Copy link
Member

Choose a reason for hiding this comment

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

Oh ok, good point. Lets use 3xl instead of md that is slightly smaller than the one we were using here (which was 2rem).

Copy link
Contributor Author

@ImMiguelP ImMiguelP Oct 4, 2022

Choose a reason for hiding this comment

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

Hi are we sure we want to use 3xl here? This will just make the heading even more bigger than what it originally had (lg)? If so I will happily do so just making sure this is what we going for based on styling.

Here is a screenshot to showcase the heading with 3xl instead of md
image

Copy link
Member

Choose a reason for hiding this comment

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

So, on the preview deploy I see this:
image

and this is production:
image

Production is using 24px and the preview 20px.
24px = 1.5rem = 2xl in the chakra scale

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

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

Thanks @ImMiguelP 💪🏼

@pettinarip pettinarip merged commit 0f012a0 into ethereum:dev Oct 19, 2022
@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 19, 2022

Congrats, your important contribution to this open-source project has earned you a GitPOAP!

GitPOAP: 2022 Ethereum.org Contributor:

GitPOAP: 2022 Ethereum.org Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

@pettinarip pettinarip mentioned this pull request Oct 19, 2022
80 tasks
@corwintines corwintines mentioned this pull request Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants