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

First Front-end Mentor Challenge - QR code component

roopxx 120

@roopxx

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?

This was a great challenge. I used CSS flex box to centre the component however this can also be done with CSS Grid. Next time, I would try to use Grid.

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

This challenge was quite easy though I found it hard to make the `` position correctly in the QR component. And also getting the correct box shadow was quite a challenge for me.

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

Having said that I used flex, though I wasn't able to align the text with the exact spacing as provided in design files. I used margins and padding in the `

Community feedback

mbalali63 150

@mbalali63

Posted

Hi Rupesh Your work is great. Unfortunately your code is not accessible. But the considering the design comparison above, reveals that the font sizes shall be decreased. if the main container (the white box) height be set to 100%, with extra padding, then the overflow of text below the box will be removed. Good luck

1

roopxx 120

@roopxx

Posted

Thanks @mbalali63 for the feedback! Yes, you are right the font is overflowing outside the main container but I don't know why it is happening in the preview tool above whereas when loading the site the design looks good to me on browser.

Can you once check the deployed link here ?

0
mbalali63 150

@mbalali63

Posted

Hi @roopxx In your style.css file, and in the definition of class qr_component, just comment or remove the line that is specifying height: 477px; it will be resolved.

.qr_component {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: hsl(0, 0%, 100%);
/*  height: 477px;*/
  width: 320px;
  border-radius: 30px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
1
roopxx 120

@roopxx

Posted

Thanks @mbalali63 , your suggestion fixed it.

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