Tailwind css and semantic html was used.

Solution retrospective
I'm most proud of the attention to detail I've put in replicating the design. Next time, I would first fetch a list of css properties first before starting to code.
What challenges did you encounter, and how did you overcome them?Two challenges -
- Figma - Learning to import the figma file and using the software to fetch the css properties without the dev mode was a bit challenging.
- Tailwind - Doing the customisations for the theme in Tailwind was a bit challenged, required me to comb through the documentation of Tailwind.
I need feedback on the semantic html used and responsive design of the project.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @KapteynUniverse
Hey Ashwini, nice job.
Good using of main landmark. Sections are maybe unnecessary because sections should always have a heading, with very few exceptions. You can use just div, no need to wrap img at all.
Image alt texts needs to be meaningful, unless decorative. Instead of an "image with qr code" you can write something like "QR code to Frontendmentor.io" so screen readers can understand the context.
Using fixed values like w-80 will cause responsiveness issues in the future, use max-width instead.
Rest looks good. Maybe first p tag can be changed to a h2, not completely sure. If you ask why h2 and not h1, this component is for to use in a web page and every page should only have one h1. This is a simple card, it would never be used to serve the main heading on a page, so h2 or h3 kinda ok.
Marked as helpful - @hannibal1631
This looks good and is responsive for the most part.
About the figma design thing, you don't have to fetch the css properties from their. Just use your own vision to bring it to life. Cause that'll help you build an understanding of how styles work.
And while using tailwind, always think about big screen. because as you might know, by default it's phone responsive. So while styling, use
sm:
andmd:
to make it big screen responsive and then provide the classes for phone part(which in some cases is not necessary).I hope this'll give you some clearance about how should you use tailwind. If you would like to work on some projects together in future let's connect. Happy Coding!!!
Join 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