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

Sample Qr Design

J.Varun Kumarโ€ข 30

@varunjvk

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@MelvinAguilar

Posted

Hi @varunjvk ๐Ÿ‘‹, good job on completing this challenge! ๐ŸŽ‰

I have some suggestions you might consider to improve your code:

  • Your page is broken on mobile devices, Add these lines in the <head> to display the site properly based on the user's device:
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  • Use the <main> tag to wrap all the main content in your solution rather than <div>.

  • To make alternative texts more useful, add descriptive text to the alt attribute of the QR image to explain what the QR image does.

  • Try to use more descriptive names for your classes. I suggest you learn the BEM naming convention standard for CSS class names because increases the readability of front-end code and provides a modular structure. For example, the classes "p1" and "p2" do not say what they are.

  • Instead of using pixels in font size, use relative units of measure like rem or em. The font size in absolute length units (px) does not allow users with limited vision to change the text size in some browsers. Reference.

  • Use an h1 tag for your solution. The <h1> element is the main heading on a webpage, also, there should only be one <h1> tag per page.

<h1>Improve your front-end skills by building projects</h1>

I hope those tips will help you! ๐Ÿ‘

Good job, and happy coding! ๐Ÿ˜

Marked as helpful

0

@VCarames

Posted

Hey there! ๐Ÿ‘‹ Here are some suggestions to help improve your code:

  • To center you content to your page, add the following to your Body Element:
body {
    min-height: 100vh;
    display: grid;
    place-content: center;
}
  • Change width to max-width in your componentโ€™s container to make it responsive.

If you have any questions or need further clarification, let me know.

Happy Coding! ๐Ÿ‘ป๐ŸŽƒ

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