Design comparison
SolutionDesign
Solution retrospective
This was a nice challenge to test my layout skills, still trying to make the code as clean as possible. Looking forward to any tips from more experienced people!
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, great work on this one. Desktop layout looks great but the site right now is not responsive and the mobile state is missing as well. It would be really great for you to create the mobile view and make the site as responsive as you can^^
Some other suggestions would be:
- Always have a
main
element to wrap the main content of the site. For this usemain
tag on the.container
selector. - On the
.container
selector, it would be great to instead usemin-height: 100vh
rather thanheight: 700px
so that whatever the user's screen height is, the layout will be always centered. Also instead ofmargin-top
usepaddingt-top
. - Those cars images/svg's are only decorative images. Decorative images should be hidden for screen-reader at all times by using
alt=""
andaria-hidden="true"
to theimg
tag or onlyaria-hidden="true"
if the image is usingsvg
. - On a site, always have a single
h1
. Since there are not visible text that are suitable to beh1
, theh1
would be a screen-reader only heading. Meaning it will be hidden visually but present for screen-reader users. On this, theh1
would have likesr-only
class and the text-content should describe what is the main-content is all about. Theh1
could be placed as the first text insid themain
.Have a look at Grace's solution on this one inspect the layout and see the usage ofh1
as well the stylings applied to it. - Those learn-more is better using
a
tag rather thanbutton
since on a real site, that would like take a user to a page to "learn more" about a specific car.
Aside from those, great job again on this one.
0 - Always have a
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