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 HTML and CSS

@Dan-Jao

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


Hi everyone.

I'm starting my career as a front-ender and this is my first solo project.

I just tried to use the content I've learned so far.

Tips on something I'm doing wrong and/or I can improve, please let me know.

Community feedback

Lucas 👾 104,580

@correlucas

Posted

👾Fala Victor, beleza? Parabéns pelo seu desafio!

Tenho algumas sugestões pra você:

1.O componente não está devidamente alinhado ao centro só porque faltou o display: flex; no body e min-height: 100vh; pra fazer o body mostrar 100% da tela, olha as correções abaixo:

body {
    min-height: 100vh;
    background-color: hsl(212, 45%, 89%);
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

2.Em relação a estrutura do html, tá bem enxuta, nessa você mandou bem só tem o necessário, eu só mudaria de h2 pra h1 visto que é o título principal da página e ao invés de usar classes eu colocaria só o elemento mesmo, só tem um h1, p, e img ao invés de usar a classe só colocar por exemplo h1 {padding: 20px;}.

3.O cartão não está responsivo porque você usou width ao invés de max-width dentro do container, ai ele fica com tamanho fixo, já com max-width ele tem o tamanho limite mas tbm pode diminuir, dá uma diminuida na tela pra vc ver que o container nao contrai, se ajustar isso ele faz o texto contrair dentro do cartão e tbm quebrar as linhas.

Manda bala e continua codando bro, seu desafio ficou mto bom!

Espero ter ajudado com algo. Falou!

Marked as helpful

1
MMMarco 250

@MMMarcoAntonio

Posted

use html semantic tag... article

Marked as helpful

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