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 solution using flexbox

@shailesh62

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 am most proud of having completed this project entirely on my own, without relying on external references from the internet. This challenge allowed me to deepen my understanding and problem-solving skills. However, next time, I would focus on creating a responsive solution. This approach will help ensure that the web pages function smoothly and look great across various devices, enhancing the user experience.

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

I do not have any such problems, as this has a very easy solution.

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

What else could I have used instead of Flexbox? .cards { background-color: white; height: auto; width: 26%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; border-radius: 15px; }

Community feedback

T

@gmagnenat

Posted

Hello, congrats on completing the challenge ! This challange may appear easy like you mention in your retrospective but actually it is a perfect project to identify gaps in basic essential skills.

Here are a few things I encourage you to study to refactor and update your solution. This challenge is completed often and you can also go check the comments on other solutions.

Problems here

  • alt tag is not to display an error message in case the image is not loading. It is ment to describe the image for when it cannot be seen or displayed.
  • use a modern css reset in all your projects. here is a good one modern css reset
  • You don't need to add 100vw for a full width. The page is naturally taking the full width of the window. Adding 100vw can cause issue as it doesn't count the scrollbar width.
  • Use min-height of 100vh instead of a fixed height.
  • using % for the width of your card and your img makes everything not scale correctly when you resize your window. This project can be naturally responsive, but here you force the size to be relative to the window size. this also fails a reflow test if the default font size setting of the browser is modified by a user as all your size are not relative to this settings but are linked to the window size.
  • the width on the image is not necessary as it is contained in the card. It should naturally scale with the card and you can just add a padding to the card.

I hope you find these comments usefull and it helps you refactor your code, understand concepts and improve your skills. Reach out if you have any questions.

Happy coding !

Marked as helpful

0
Anya B 30

@AnYa-git

Posted

Votre message montre bien votre fierté d'avoir réalisé le projet de manière autonome, ce qui témoigne de votre indépendance et de vos compétences en résolution de problèmes. Vous identifiez aussi l'importance de créer une solution réactive pour améliorer l'expérience utilisateur, ce qui est une réflexion pertinente pour l'avenir.

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