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

Improve CSS of StyledCard in developers page #8132

Merged
merged 4 commits into from Oct 5, 2022
Merged

Improve CSS of StyledCard in developers page #8132

merged 4 commits into from Oct 5, 2022

Conversation

dhirajgagrai
Copy link
Contributor

@dhirajgagrai dhirajgagrai commented Oct 1, 2022

Improved CSS of StyledCard to have a consistent layout. [Fixes #8062 ]

Description

Added justify-content property to align the buttons to the bottom of the div.
Also added the gap property to have a bit of separation between buttons and text.

Modified the title of the first card to 'Ethereum development'. This is to accommodate it into a single line to match the rest of the cards. From my judgement, it carries the same meaning as 'Learn Ethereum development' in this page's context.

Attaching the pictures of the original (first one) and my changes below.

Screenshot 2022-10-02 at 12 17 49 AM

Screenshot 2022-10-02 at 12 17 28 AM

@github-actions github-actions bot added the needs review 👀 Review is needed for this issue or pull request label Oct 1, 2022
@gatsby-cloud
Copy link

gatsby-cloud bot commented Oct 1, 2022

✅ ethereum-org-website-dev deploy preview ready

@dhirajgagrai
Copy link
Contributor Author

This PR also fixes #8062.

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 for the PR @dhirajgagrai. Lets add these changes on the Card component.

Comment on lines 175 to 176
justify-content: space-between;
gap: 20px;
Copy link
Member

Choose a reason for hiding this comment

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

Lets add these styles to the Card component (src/components/Card.tsx) itself instead of doing it here. If not you will fix the problem only for this page.

Comment on lines 175 to 176
justify-content: space-between;
gap: 20px;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
justify-content: space-between;
gap: 20px;
justify-content: space-between;
gap: 1rem;

Comment on lines 47 to 48
"page-developers-learn": "Ethereum development",
"page-developers-learn-desc": "Read up on core concepts and the Ethereum stack with our docs.",
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest reverting these changes since it will not fix the root problem. The font size can vary between browsers and devices. There is no guarantee that you will always have one line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. Makes sense.

@minimalsm minimalsm added the changes requested Changes needed to merge label Oct 4, 2022
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.

Nicely done @dhirajgagrai 💪🏼 🚀

@pettinarip pettinarip merged commit f1ec388 into ethereum:dev Oct 5, 2022
@gitpoap-bot
Copy link

gitpoap-bot bot commented Oct 5, 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
Copy link
Member

@dhirajgagrai be sure to join the discord if you are interested in contributing further to the project or have any questions for the team. And we've just released our 2022 POAPs so remember to claim yours also 🥳!

@pettinarip
Copy link
Member

@all-contributors please add @dhirajgagrai for code

@allcontributors
Copy link
Contributor

@pettinarip

I've put up a pull request to add @dhirajgagrai! 🎉

@dhirajgagrai dhirajgagrai deleted the improve_btn_position branch October 5, 2022 16:20
@corwintines corwintines mentioned this pull request Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes requested Changes needed to merge needs review 👀 Review is needed for this issue or pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

align to the bottom the card content
3 participants