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 using Flexbox

JAVVβ€’ 80

@daisukeeita

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


Hello guys!

This is my solution to the challenge. I used FlexBox here to center the component. I also applied what they call BEM naming convention technique, but I'm unsure if what I'm doing is correct. I also used custom property naming for re-usability of the style.

What I can't seem to break here is to stay the footer on the bottom while maintaining the component to the center. I used the margin: auto to the footer, 'attribution' specifically', but the component itself can't stay in one place. Should I change the approach here?

Any feedback is welcome! 😁

Community feedback

Ferβ€’ 3,970

@fernandolapaz

Posted

Hi πŸ‘‹, If I understand your question about the footer, maybe this can help you:

@media screen and (min-height: 35rem) {
    .attribution {
        position: fixed;
        bottom: 0.5rem;
    }
}

The min-height is just so it doesn't overlap the card in viewports with small height (such as mobile landscape orientation).

I hope it’s useful πŸ™‚

Regards,

Marked as helpful

1

JAVVβ€’ 80

@daisukeeita

Posted

@fernandolapaz

Hello πŸ‘‹! Yes, what you suggested helped me! Thank you so much! 😁

0
Ferβ€’ 3,970

@fernandolapaz

Posted

@daisukeeita

I'm glad it helped you πŸ™‚

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