Design comparison
Solution retrospective
My first Junior project!!!!
I felt so happy after making this :)
Could anyone please share their thoughts on areas where I could improve?
Community feedback
- @Kulyk-VolodymyrPosted 10 months ago
Nice solution, congrats!
I have two independent ideas to make this page a little different)
-
For
header
,main
and.third-section
applymax-width: 1150px; margin:auto
. -
Add
justify-content: space-between
to.third-section
and change item's styling.
In terms of semantics,
.third-section
must be insidemain
. Also, you don't need to usearticle
to make a burger menu. You can reuseul
ofheader
.0@udayaguptaPosted 10 months ago@Kulyk-Volodymyr I will surely make the required changes but about the burger menu I have used aside not article tag. Here's the code for it
<aside class="side-bar-section hidden"> <nav> <div class="menu-close-div"> <button class="menu-close" onclick="closeSideBar()"> <img src="assets/images/icon-menu-close.svg" alt=""> </button> </div> <ul class="side-bar clr-dark-grayish-blue "> <li class="item transition hover-clr-soft-red">Home</li> <li class="item transition hover-clr-soft-red">New</li> <li class="item transition hover-clr-soft-red">Popular</li> <li class="item transition hover-clr-soft-red">Trending</li> <li class="item transition hover-clr-soft-red">Categories</li> </ul> </nav> </aside>
If you believe it needs changes, let me know
Thank you!
0@Kulyk-VolodymyrPosted 10 months agoI saw that it was
aside
but typedarticle
)I suggest to reuse
nav
inheader
and don't makeaside
. On large screen are hidden burger button andnav
withposition: relative
. On small screennav
hasposition: absolute
and is controlled by button. There are different ways to controlnav
: with CSS or JS. In CSS burger button islabel
of hiddeninput type="checkbox"
. In JS this button can bebutton
ordiv
.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