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

HTML, CSS e Flex

@franciscosilva01

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


bem de boas pra fazer, não usei nenhuma linguagem apenas HTML e CSS

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Fala Francisco!

Seu projeto ficou ótimo!

Notei que você utilizou margin pra centralizar o card. Usar margens não é a melhor opção pra centralizar elementos.

📌 Existe uma forma melhor e mais eficiente de posicionar elementos no meio da página (tanto na horizontal quanto na vertical):

  • Aplique isso ao body (Pra funcionar corretamente, não use position ou margins):
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

Espero que ajude!

Fora isso, você fez um excelente trabalho!

Marked as helpful

1

@franciscosilva01

Posted

@danielmrz-dev muito obg cara, dica anotada

1

@MercySpectures

Posted

You are doing great but here are few things you can do to make it more beautiful.

  • center you main container using display:flex; or any other code you are ok with.
  • give space between image bold text and paragraph text.
  • change border radius so that it matches the design.

Well everything is fine. Practice more and more to be good at this.

0

@franciscosilva01

Posted

@MercySpectures anotado meu mano, obg

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