Skip to content

Commit

Permalink
Merge pull request JiyaGupta-cs#235 from ShahHetviIT/master
Browse files Browse the repository at this point in the history
APPERANCE OF NAVBAR DIVS JiyaGupta-cs#222
  • Loading branch information
Sushilverma002 committed Jun 21, 2024
2 parents d45e786 + 750d2a6 commit 7085da6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion src/Components/Navbar/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
/* gap: 3px; */
cursor: pointer;
}
.nav-menu li a{text-decoration: none;}
Expand Down Expand Up @@ -141,4 +141,10 @@ button{
height: auto;
}

.nav-menu hr{
margin: 0;
}

.nav-menu li.active a {
color: #ff4141;
}
8 changes: 4 additions & 4 deletions src/Components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ const Navbar = () => {
</Link>
</div>
<ul className="nav-menu">
<li onClick={() => { setMenu("shop") }}>
<li className={menu === "shop" ? "active" : ""} onClick={() => { setMenu("shop") }}>
<Link to='/'>Shop</Link>
{menu === "shop" ? <hr /> : <></>}
</li>
<li onClick={() => { setMenu("men") }}>
<li className={menu === "men" ? "active" : ""} onClick={() => { setMenu("men") }}>
<Link to='/men'>Men</Link>
{menu === "men" ? <hr /> : <></>}
</li>
<li onClick={() => { setMenu("women") }}>
<li className={menu === "women" ? "active" : ""} onClick={() => { setMenu("women") }}>
<Link to='/women'>Women</Link>
{menu === "women" ? <hr /> : <></>}
</li>
<li onClick={() => { setMenu("kids") }}>
<li className={menu === "kids" ? "active" : ""} onClick={() => { setMenu("kids") }}>
<Link to='/kids'>Kids</Link>
{menu === "kids" ? <hr /> : <></>}
</li>
Expand Down

0 comments on commit 7085da6

Please sign in to comment.