@correlucas
Posted
👾Fala Tiago , tudo bem? Parabéns pelo desafio!
O seu componente já está com o design pronto, um bom exercício pra melhorar seu código, seria criar a estrutura mais limpa o possível e reduzir seu código ao máximo. Por exemplo, você pode segurar todo conteúdo em um bloco só usando (<main>
ou <div>
) nesse caso vamos usar <main>
por que é uma tag semantica. Se você notar, nem precisa adicionar nenhum div além da principal pra segurar o conteúdo (img, h1 e p). A estrutura ideal e mais limpa possível pra esse desafio é essa aqui:
<body>
<main>
<img src="./images/image-qr-code.png" alt="Qr Code Image" >
<h1>Improve your front-end skills by building projects</h1>
<p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p> </main>
</body>
Pra reduzir o CSS, você pode excluir todas as classes e selecionar todos elementos no CSS com o seletor direto para cada um deles, nesse caso (img, div, main, h1 e p).
👋 Espero ter ajudado e continue no foco!
Marked as helpful
@tiago-jv0
Posted
@correlucas Obrigado pelo feedback, Lucas!
Eu preferi seguir uma abordagem mais verbosa pois estou tentando por em prática o meu conhecimento em metologias de nomeação em css, atualmente estou utlizando o BEM por ser o que uso no dia-a-dia, assim como também melhorar o meu uso de tags semanticas no html, mesmo assim, agradeço o seu comentário e como sempre, seu feedback é de grande valia para mim!!