Fylo dark theme with HTML validation and no grid, only flexbox

Solution retrospective
I learned to use flexbox.
I used srcset
in <picture>
to not use media query on picture display.
<picture class="block-curvy-desktop"> <source media="(max-width: 375px)" srcset="images/bg-curvy-mobile.svg"> <img class="bg-curvy-desktop" src="images/bg-curvy-desktop.svg" alt="background curvy desktop" /> </picture>
I used the HTML validator to avoid JS
<input type="email" placeholder="email@example.com"> <div class="error-message">Please provide a valid email</div>
.error-message { visibility: hidden; font-weight: 300; color: hsl(var(--ligh-red)); } input:invalid ~ .error-message { visibility: visible; }
I used text-underline-offset
to keep the underline by default
.link, a { color: hsl(var(--cyan)); text-underline-offset: 8px; position: relative; }
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Aymeric Ratinaud's solution.
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