Design comparison
Solution retrospective
All of this makes me proud, CSS is not something I fancy or I have good knowledge of.
What challenges did you encounter, and how did you overcome them?- centering the div;
- making the image smaller;
Maybe with general execution - I have many magic numbers, would be good if I can remove them.
Community feedback
- @JonhKellysonPosted 7 months ago
Man, te aconselho ao invés de colocar as fontes no HTML importa elas no css, por exemplo:
html:
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png"> <link rel="stylesheet" href="style.css"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Outfit:[email protected]&display=swap" rel="stylesheet">CSS:
@import url('https://fonts.googleapis.com/css2?family=Outfit:[email protected]&display=swap');
- OUTRO Ponto, também pode utilizar ROOT para deixar seu código mais simples em relação as cores e fontes utilizadas no seu projeto, outro exemplo irei deixar do meu código:
:root { --fonte1: "Outfit", sans-serif; --corfundo: hsl(212, 45%, 89%); --corbranca: hsl(0, 0%, 100%); --corclara: hsl(219, 16%, 46%); --corescura: hsl(218, 44%, 22%); }
/* você pode denominar o titulo como quiser */
com isso, quando for por exemplo colocar a cor cinza claro no texto, basta utilizar este código:
color: var(--corclara);
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin 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