QR code component (resubmit)

Solution retrospective
Redoing the challenge once again for practice.
See my previous solution by clicking here.
What challenges did you encounter, and how did you overcome them?My objective with this challenge was getting as close to the design as possible while using semantic elements, ensuring responsive layout and best practices such as BEM naming convention.
<!-- Semantic element -->
<main>
<div class="container">
<!-- BEM naming convention -->
<div class="container__img"></div>
<div class="container__text"></div>
</div>
</main>
:root {
--white: hsl(0, 0%, 100%); /* CSS custom property */
/* ... */
}
.container {
max-width: 18rem; /* Responsive layout */
/* ... */
margin: 1rem; /* Relative units */
}
Some resources I've used during this challenge:
- HTML Semantic Elements
- BEM naming convention
- CSS @import Rule
- CSS Variables - The var() Function
- CSS Units
Looking for feedback about what I might have missed or could've done better.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Guilherme Costa'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