Design comparison
Solution retrospective
Any feedback on the styles is welcome. Especially for responsive styles.
Community feedback
- @hyrongennikePosted about 2 years ago
Hi @Patosinsuerte,
Congrats on completing the challenge
You can decrease the with of the site to something like 1280px and add
justify-content: space-between
on the top section. This will make sure that everything lines up correctly like in the design. You did a good job on mobile.Marked as helpful1 - @correlucasPosted about 2 years ago
👾Hello Patosinsuerte, congratulations for your new solution!
👏 Great start and great first solution! You’ve done really good work here putting everything together, I’ve some suggestions you can consider applying to your code:
1.To add the two
wave
svg background images in the (top/bottom),, the best way is by usingbackground-image
to manage it since adding them to thebody
you make sure it will be under everything, to manage different images inside a single css property asbackground-image
you use the comma inside each properties declare the single modification for each circle separated. See the code below to see your solution with those backgrounds applied:body { background-image: url(./images/bg-pattern-top-desktop.svg), url(./images/bg-pattern-bottom-desktop.svg); background-position: left -185px top -236px, right 10px bottom -300px; background-repeat: no-repeat, no-repeat; background-attachment: fixed, fixed; background-size: contain, contain; display: flex; justify-content: center; align-items: center; overflow: hidden; }
2.You made your html structure entirely with
div blocks
but these div doesn't any semantic meaning, for this reason is better you use a better html markup improving your code, for example for each vehicle card you use<article>
instead of the<div>
.This article from Freecodecamp explains the main HTML semantic TAGS: https://www.freecodecamp.org/news/semantic-html5-elements/
✌️ I hope this helps you and happy coding!
0
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