Design comparison
Solution retrospective
- using the flexbox Layout extensively to make the structure close to the design
- finally understanding how flex-grow / shrink / basis behave with respect to justify-content and align-items
- My main goal was to design this page using flex layout while having a clear understanding of the behavior. I have gone through several resources prior to that and most of them seemed to just throw the attributes at me in isolation without explaining the big picture. I linked the best resource on the flex layout in the repo Readme
-
Mainly feedback on my usage of the flex layout and the responsiveness of the page
-
I am perfectly aware that several styling details are completely ignored. This was done on purpose. I am currently focusing on building a big picture of CSS and HTML focusing solely on the most important skills (the flex/grid layouts, positioning, the box model....) as I would like to move to JS and NodeJS as soon as possible.
Community feedback
- @AlfonsoVidrioPosted 4 months ago
You might find it helpful to use semantic HTML tags like
<article>
,<header>
,<section>
, and<footer>
instead of<div>
to improve both the structure and accessibility of your content. For example, you could wrap the main content in an<article>
, use<header>
for the top part of the blog,<section>
for the main content, and<footer>
for the author information. This approach can make your HTML more meaningful and easier to work with.Consider using CSS variables to define your color values. This practice not only enhances consistency across your stylesheet but also simplifies future updates and maintenance. By declaring color variables in the
:root
selector, you can ensure that your color scheme is uniform and easily manageable.:root { --yellow: hsl(47, 88%, 63%); --white: hsl(0, 0%, 100%); --gray-500: hsl(0, 0%, 42%); --gray-950: hsl(0, 0%, 7%); --font-text: 'Figtree', sans-serif; } /* Example usage */ body { background-color: var(--yellow); font-family: var(--font-text); }
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord