Submitted over 1 year ago
Fylo dark theme with HTML validation and no grid, only flexbox
@aratinau
Design comparison
SolutionDesign
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 protected]"> <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; }
Community feedback
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