
Design comparison
Solution retrospective
Having worked with bootstrap for the first time to incorporate responsive components and customize them
What challenges did you encounter, and how did you overcome them?I'm having some design issues when approaching the values for medium screens. I used the default breakpoint proposed by the bootstrap nav component, but I should work on it a little more
What specific areas of your project would you like help with?Any comments will be very helpful since I'm just starting out on this.
Community feedback
- @skyv26Posted 2 months ago
Hi @k-hroma 👋,
HTML Feedback:
-
Use Semantic Tags 🏷️
Replacing generic tags like<div>
with semantic ones (e.g.,<article>
,<section>
,<header>
,<footer>
, etc.) will improve accessibility and readability. For instance:- Use
<section>
for the.grid-container
. - Replace the
<div>
tags in.item3
with<article>
for better structure.
- Use
-
Add Comments 📝
Consider adding comments to explain sections of your HTML code. This will make it easier for others (and future you!) to understand.
CSS Feedback:
-
Avoid Repetition and Follow DRY Principle ♻️
- For example, the font family
"Inter"
is being set repeatedly for various elements likebody
,.nav-link
, and headings. Declare it once in a base selector (e.g.,body
) and let others inherit. - Similarly, margins like
margin: 0;
andpadding: 0;
are being set for multiple elements. These could be streamlined.
Suggested Change:
body { font-family: "Inter", serif; margin: 0; padding: 0; } h1, h2, h3, p, .nav-link { margin-bottom: 0; }
- For example, the font family
-
Utilize Variables More 🌈
Leverage the defined CSS variables (:root
) more consistently:- Use
--Softorange
and--Softred
in the navbar or buttons for uniformity. - Replace hardcoded font sizes and weights with the defined variables.
- Use
-
Group Related Styles 📂
Group styles for better readability. For instance, combine.navbar-toggler
and.btn-close
styles under a single comment block for "Navbar Buttons".
Warm regards,
Aakash Verma 😊0 -
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