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

@lrdelmar

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


Added the landmarks as suggestion per previous solution results

Community feedback

_nehal💎 6,710

@NehalSahu8055

Posted

Hello Coder 👋.

Congratulations on successfully completing the challenge! 🎉

Few suggestions regarding design.

  • Don't use below code snippet to center the container as its not proper way to center the card.
{
/*position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);*/
} 
  • To properly center the card

  • USING FLEXBOX

parent-container{
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
  • Use Semantics for the proper design of your code.
<body>
<main>... main content goes here ...</main> //no need to add role="main" as it is already a semantic element
<footer>...</footer>
wrap up `.attribtution(challenge by....)` div inside your footer.
</body>

I hope you find this helpful.

Happy coding😄

1

@AbderrahmaneGuerinik

Posted

Nice component ! You can improve your code by :

  • Using BEM methodologie for naming classes.
  • the height of section-qr equal to zéro so you should define the height of this section
.section-qr {
   height: 100vh;
}

*Enjoy 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