Improve layout and styling of the demos page #1071
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Hello leeoniya!
This PR introduces a change to improve the readability and overall user experience of the main demos page.
Motivation
Currently, the list of demos is aligned to the far left of the page. On wider screens, this can make it less comfortable to view, as the user's focus is pulled to one side.
By centering the main content block, the page feels more balanced and is ergonomically easier to read.
Changes
To achieve this, I have made the following changes.
<main class="container">element..containerto set amax-widthand center it on the page usingmargin: 0 auto. This makes the layout responsive and readable on all screen sizes.background-color,padding,border-radius) to visually separate the categories and make the page more organized.<h1>title to match the new centered layout.Variety. I felt this word better captures the diverse nature of the demos in that group. I'm open to feedback on this as well.Result
Here is a quick look at the visual change.
I believe this makes the page look cleaner and more modern. Of course, I'm completely open to feedback on the styling. If this approach doesn't align with the project's vision (ex. no-css, no-style), please feel free to close this PR.
Thank you for your time and for creating such a great library!