Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

QR Component

@Ricardo-Tesla

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I was able to finish this Component in less time. I was able to integrate the responsiveness of the page to all devices.

What challenges did you encounter, and how did you overcome them?

Redundancy in responsiveness of the page

What specific areas of your project would you like help with?

Code review and any other review

Community feedback

haquanq ®️ 1,585

@haquanq

Posted

Hello @Ricardo-Tesla,

Although people would say you can choose any tool you want. For this small challenge you should use HTML and CSS only (leave the framework for more complex challenge - at least intermediate level otherwise it is a waste).

Code review time!!

  • Your page lack h1, each page must have one h1 (improve SEO and accessibility). What is the page content about? Put it in h1.
  • You page have no landmark, page must have one main landmark (wrap you most important content inside it, read more here).
  • You use div which give zero context on what is this chunk of content, just bland texts?. Use more semantic elements like section, article,... .
  • You are using too many redundant breakpoints in media query (look at my solution, zero breakpoint and still responsive)

After all, you need to really understand HTML and CSS in-depth before trying libraries. Otherwise you would keep making the same mistake again and again.

Keep it up, have a nice day!!

Marked as helpful

0

@Ricardo-Tesla

Posted

Thank you for your correction @haquanq . Kindly check the updated solution for more reviews.

0
haquanq ®️ 1,585

@haquanq

Posted

@Ricardo-Tesla it's nice that you fixed it immediately, here is more you can add to your solution:

  • Add min-height: 100vh to container element (in your case it is main) because for some page with content smaller than the viewport it will expose the HTML document element.
  • Only use margin when you want an element to have space from it's sibling elements, use padding to create empty space from parent to child elements.

Cheers 😁😁

Marked as helpful

0
P

@amjadsh97

Posted

nice job! continue!

0

Please log in to post a comment

Log in with GitHub
Discord logo

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