Design comparison
SolutionDesign
Solution retrospective
Did this challenge earlier with vanilla HTML CSS and now I completed it using react tailwind
Community feedback
- @CosteaAlin93Posted over 1 year ago
Hi Pulkit! Overall, it looks good. A few hints for the design:
- try surrounding the root element into an <main> element so you avoid the 'Document should have one main landmark' error
- the image-container element, could be a bit smaller in width to keep the proportions as a whole
- the image is too stretched, perhaps background-size: contain; will fix it looking more like in the solution
- the font-weight of the h2 could be ticker
- the span containing 'CHANEL ' text, didn't have to be green
- a bit ticker font on the price
- and don't forget the little icon on the 'Add to cart' button :)
On the Mobile view:
- image is perfectly set
- for the content part, you could increase the height a bit, or the spacing between the individual elements
Considering you are using Tailwind for this, my advice would be:
- always start designing with the 'mobile-first' design in mind
- once the above looks on point, start using 'md:flex-direction:row;' etc, for styling for the 'Desktop view'
Keep the solutions coming! Planning to do your approach once I start learning a bit or React!
Marked as helpful1
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