Skip to content

Commit

Permalink
Merge pull request #357 from AnushkaChouhan25/revert
Browse files Browse the repository at this point in the history
Refactor Navbar for Improved Usability and Design ✨
  • Loading branch information
Yashgabani845 authored Nov 10, 2024
2 parents 1c6dd35 + 42e783f commit 7a70481
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 10 deletions.
28 changes: 28 additions & 0 deletions hiring-portal/src/CSS/navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
flex-direction: row;
align-items: center;
margin-left: 20px;
justify-content: space-around;
flex-grow: 1;
}

Expand Down Expand Up @@ -183,3 +184,30 @@
display: flex;
}
}
.dropdown {
position: relative;
cursor: pointer;
}

.dropdownContent {
display: none;
position: absolute;
background-color: white;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1;
margin-top: 1px;
}

.dropdown:hover .dropdownContent {
display: block;
}

.dropdownContent .icon {
padding: 8px 10px;
display: flex;
align-items: center;
}

.dropdownContent .icon:hover {
background-color: #f1f1f1;
}
47 changes: 37 additions & 10 deletions hiring-portal/src/Components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,7 @@ const Navbar = () => {
</Link>
</div>

<div
className={`${styles.icon} ${activeTab === "/resume-analyzer" ? styles.active : ""
}`}
>
<Link to="/resume-analyzer">
<Dock />
<span>Scan Resume</span>
</Link>
</div>


<div
className={`${styles.icon} ${activeTab === "/blog" ? styles.active : ""
Expand All @@ -154,6 +146,30 @@ const Navbar = () => {
</Link>
</div>


{/* Explore dropdown menu */}
<div className={styles.dropdown}>
<div className={styles.icon}>
<span>Explore</span>
</div>
<div className={styles.dropdownContent}>
<div
className={`${styles.icon} ${activeTab === "/jobcard" ? styles.active : ""}`}
>
<Link to="/jobcard">
<WorkIcon />
<span>Jobs</span>
</Link>
</div>
<div
className={`${styles.icon} ${activeTab === "/resume-analyzer" ? styles.active : ""
}`}
>
<Link to="/resume-analyzer">
<Dock />
<span>Scan Resume</span>
</Link>
</div>
<div
className={`${styles.icon} ${activeTab === "/resume-screening" ? styles.active : ""
}`}
Expand All @@ -163,9 +179,19 @@ const Navbar = () => {
onClick={() => setActiveTab("/resume-analyzer")}
>
<Dock />
<span>Resume Screening</span>
<span >Resume Screening</span>
</Link>
</div>
<div
className={`${styles.icon} ${activeTab === "/contactus" ? styles.active : ""}`}
>
<Link to="/contactus">
<ContactMailIcon />
<span>Contact Us</span>
</Link>
</div>
</div>
</div>

<div
className={`${styles.icon} ${activeTab === "/profile" ? styles.active : ""
Expand All @@ -187,6 +213,7 @@ const Navbar = () => {
<span>Employer/Post Job</span>
<LaunchIcon className={styles.postingIcon} />
</div>

</>
)}
</div>
Expand Down

0 comments on commit 7a70481

Please sign in to comment.