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 Code Component] : My First Project on Frontendmentor.io

Abhishekβ€’ 30

@alphasierra101

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


Hi Team, This is my first project on this platform and I am currently in the learning phase. If somebody found any error or required any type of correction in my code then do let me know about the same. Thank you in advance! Happy coding!

Community feedback

Ferβ€’ 3,970

@fernandolapaz

Posted

Hi πŸ‘‹, some of this may interest you:

HTML | ACCESSIBILITY:

  • The main content of every page (the card in this case) should be wrapped with the <main> tag.
  • Every page should have an <h1>. It is good not to skip heading levels.

CSS:

  • As part of the CSS reset you did, it's important to include the box-sizing property to allow us to include padding and border in the overall width and height of the elements:
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
  • Think about using relative units like rem or em since they are better for scalable layouts. Something simple to start with would be to convert to rem (1 rem equals 16px by default). Consider this suggestion especially for the font-size.

Let me know if you want more info on any of these topics.

I hope it’s useful : )

Regards,

Marked as helpful

1

Abhishekβ€’ 30

@alphasierra101

Posted

Thanks buddy! @fernandolapaz

1
hari.jsβ€’ 210

@hariFED

Posted

Hey Bro, I think you missed to add align-text:center property for class="content" and that why text is not aligned in centre , that's it the project is Done. Happy Coding πŸ€—.

Marked as helpful

1

Abhishekβ€’ 30

@alphasierra101

Posted

Thanks mate I have now updated my code! @hariFED

1
Tushar Biswasβ€’ 4,080

@itush

Posted

Congratulations on completing the challenge! πŸŽ‰

Welcome to the platform! πŸŽ‰ We're thrilled to have you here and excited to see your progress πŸ’ͺas you continue your front-end development journey.

Your solution looks nice to me :)

  • To reset default browser styles you may also add box-sizing: border-box;

In my projects:

  • I always start with mobile-first workflow.
  • I use at least one main element for a page (entire content goes into the main, if I'm not using header & footer), and avoid divs as much as possible and use section and article element wherever I can.
<body>
<main>
All content 
</main>
</body>
  • I Use relative units as much as possible and avoid absolute units whenever possible.

  • If you are someone who is just starting out with front-end development, I strongly suggest starting with the QR code component project(which you did). Also in the challenges page you may filter by (Newbie, HTML&CSS) sort by (easier first) to select projects that will help you solidify your foundation. To avoid any potential knowledge gap⚠️ please first solidify HTML, CSS, JS fundamentals and then move on to any framework or library.

  • I remember when I started out, I made countless mistakes and spent long hours searching for solutions. But hey, you don't need to go through the same struggles! πŸ™Œ To help you shorten the learning curve, I recommend going through the following articles. They contain valuable insights that can make your journey smoother:

πŸ“šπŸ” 12 important CSS topics where I discuss about css position, z-index, box-model, flexbox, grid, media queries, mobile-first workflow, best practices etc. in a simple way.

πŸ“šπŸ” 11 important HTML topics where I discuss about my thought process and approach to convert a design/mock-up to HTML along with important topics like block and inline elements, HTML Semantic Elements.

I hope you find these resources helpful in your coding adventures! 🀞

I'm eagerly looking forward to seeing the amazing projects you'll create in the future! πŸš€πŸ’»

Keep up the fantastic work and happy hacking! πŸ’ͺ✨

Marked as helpful

1

Abhishekβ€’ 30

@alphasierra101

Posted

Thanks for your valuable feedback! @itush

1
Tushar Biswasβ€’ 4,080

@itush

Posted

@alphasierra101

You are most welcome!

Always happy to help:)

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