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 By WhaleWellWell

Whale Well Wellβ€’ 50

@WhaleWellWell

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


All feedback welcome, but if you can give me any feedback on flexbox that would be welcome because I just started learning it.

Community feedback

@MelvinAguilar

Posted

Hi @WhaleWellWell πŸ‘‹, good job completing this challenge, and welcome to the Frontend Mentor Community! πŸŽ‰

It's a great solution and a good start. I have some suggestions you might consider to improve your code:

  • Use the <main> tag to wrap all the main content in your solution instead of using <article role="main" class="card"> to improve the accessibility of the website. Even though this challenge is not a full page, you should use semantic tags and also, it is preferable to use the semantic tag instead of using role="main".
  • To make alternative texts more worthwhile, add descriptive text to the alt attribute of the QR image to explain what the QR image does. Upon scanning the QR code, you will be redirected to the frontendmentor.io website, so an example of alternative text would be "QR code to frontendmentor.io". You can read more about alternative text here.
  • In my opinion, the div with the card__image_wrapper class is unnecessary.
  • Use min-height: 100vh to the body selector instead of height. This property lets you set a height and let the element grow even more if necessary.
  • On mobile devices, the "button-whale" button is large, which may make it difficult for some users to scan the QR code on cell phones.

Please don't worry if your suggestions are long, they are just details. In the end, the project is well done πŸ‘. Hope you find those tips helpful! πŸ‘

Good job, and happy coding! 😁

Marked as helpful

0

Whale Well Wellβ€’ 50

@WhaleWellWell

Posted

@MelvinAguilar Thank You!

1
Hassia Issahβ€’ 50,670

@Hassiai

Posted

replace the <div class="card"></div> with the main tag. To center the content on a page. replace the height: 100vh in the body with min-height: 100vh; there is no need to give the body a width and height value. There is no need for display:flex and it properties in .card_image_wrapper. there is no need to give the .card_title and .card_text. margin-left and right value, you can give margin .card_title a margin bottom value instead of margin: auto; Hope am helpful 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