Skip to content

Commit

Permalink
✨[feature Request]: Changing Navbar #186 (#222)
Browse files Browse the repository at this point in the history

<!-- ISSUE & PR TITLE SHOULD BE SAME-->
## Description
Updated the Navbar UI as asked in the issue column 
Added rounded corners with white background, underline and glowing
effect on the tabs in navbar of each page with adding 1-2 more features
such as cart image with count option on each page


## Related Issues

<!--Cite any related issue(s) this pull request addresses. If none,
simply state “None”-->
- Closes #

## Type of PR
<!-- Mention PR Type according to the issue in brackets below and check
the below box -->
- [✔️ ] (Feature update, Code Refactor)

## Screenshots / videos (if applicable)
<!--Attach any relevant screenshots or videos demonstrating the
changes-->
Image of website before the Navbar UI -

![image](https://github.com/user-attachments/assets/0d283d2d-601c-4ba2-8cf6-3c499c02ebba)

Images of website after the updated Navbar UI-

![image](https://github.com/user-attachments/assets/7f68e855-a083-4976-82e2-e0e6906f4bec)

![image](https://github.com/user-attachments/assets/824dabcf-b41b-4ca1-b281-67553eb8d07d)


## Checklist
<!-- [X] - put a cross/X inside [] to check the box -->
- [✔️ ] I have gone through the [contributing
guide](https://github.com/Anjaliavv51/Retro)
- [✔️ ] I have updated my branch and synced it with project `main`
branch before making this PR
- [ ✔️] I have performed a self-review of my code
- [ ✔️] I have tested the changes thoroughly before submitting this pull
request.
- [ ✔️] I have provided relevant issue numbers, screenshots, and videos
after making the changes.
- [ ✔️] I have commented my code, particularly in hard-to-understand
areas.


## Additional context:
<!--Include any additional information or context that might be helpful
for reviewers.-->
  • Loading branch information
Anjaliavv51 authored Oct 5, 2024
2 parents e550c09 + 738e9c0 commit f833854
Show file tree
Hide file tree
Showing 9 changed files with 494 additions and 123 deletions.
167 changes: 167 additions & 0 deletions Css-files/navbarstyles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
body {
font-family: 'Philosopher', sans-serif;
margin: 0;
padding: 0;
}

/* Navbar styles */
.navbar {
background-color: rgba(255, 255, 245, 0.8);
padding: 1rem;
display: flex;
width: 100%;
justify-content: space-between;
margin: 10px 1px!important;
border-radius: 20px;
}

.nav-right {
margin-left: auto;
/* Pushes the login/signup to the right side */
display: flex;
gap: 15px;
/* Space between login and signup */
}

.ms-auto {
margin-left: auto;
/* Pushes to the right */
}

.navbar-brand {
font-size: 1.5rem;
color: black;
font-weight: bold;
transition: transform 0.3s ease;
}

.navbar-brand:hover {
transform: scale(1.6);
}

.navbar-nav .nav-item {
margin-right: 15px;
}

.nav-link {
color: black;
font-size: 1rem;
font-family: var(--ff-philosopher);
text-decoration: none;
/* Remove default underline */
position: relative;
transition: all 0.3s ease;
}

.nav-item.dropdown .nav-link {
text-decoration: none;
/* No underline for dropdown toggle */
}

.nav-link:hover {
text-decoration: none;
/* Prevent default underline on hover */
}

.nav-link::after {
content: '';
position: absolute;
left: 0;
bottom: -5px;
width: 0%;
height: 3.5px;
/* Thicker underline */
background: transparent;
transition: all 0.3s ease-in-out;
box-shadow:
0 0 30px rgba(255, 159, 128, 1),
/* Initial glow effect with bright peach color */
0 0 60px rgba(255, 159, 128, 1);
/* Increased glow effect */
}

.nav-link:hover::after {
background: rgba(243, 187, 183, 1);
width: 100%;
box-shadow: 0 0 20px rgba(243, 187, 183, 1);
}

.nav-btn {
background: none;
border: none;
font-size: 1rem;
cursor: pointer;
color: black;
text-decoration: none;
position: relative;
}

.nav-btn:hover {
color: #d2691e;
}

.nav-btn::after {
content: '';
position: absolute;
left: 0;
bottom: -5px;
width: 0%;
height: 2px;
background: #ffb6c1;
/* Adjust to match background color */
transition: all 0.3s ease-in-out;
box-shadow: 0 20px #ffb6c1;
/* Glow effect */
}

.nav-link:hover::after {
background: rgba(255, 159, 128, 1);
width: 100%;
box-shadow:
0 0 25px rgba(255, 159, 128, 1),
0 0 50px rgba(255, 159, 128, 1);
/* Glow effect with bright peach color */
}

.nav-link:hover,
.nav-btn:hover {
color: hwb(327 21% 3%) !important;
}

.dropdown-menu {
background-color: #ffe5e5;
border: none;
}

.dropdown-item {
/*color: black;*/
font-family: var(--ff-philosopher);
}

.dropdown-item:hover {
background-color: #f0c0a0;
color: #d2691e;
}

/* Mobile Styles */
@media (max-width: 768px) {
.navbar-brand {
margin-left: 10px;
}

.navbar-nav {
text-align: center;
}

.navbar-toggler {
border: none;
}

.navbar-toggler-icon {
color: black;
}

.nav-item {
margin-bottom: 1rem;
}
}
44 changes: 34 additions & 10 deletions Html-files/Electronic.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="/Css-files/navbarstyles.css">
<link
href="https://fonts.googleapis.com/css2?family=Fuggles&family=Mooli&family=Oswald:wght@600&family=Roboto:wght@100;300&display=swap"
rel="stylesheet">
Expand Down Expand Up @@ -536,18 +536,42 @@

<div class="head_container_service" style="color: black;font-family: var(--ff-philosopher);">
<header style="font-family: var(--ff-philosopher);">
<nav class="navbar">
<ul id="header-items" style="color: black;font-family: var(--ff-philosopher);justify-content: center;">
<li><a href="../index.html" style="color: black;">&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Home</a></li>
<li><a href="menu.html" style="color: black;">About</a></li>
<li><a href="services.html" style="color: black;">Services</a></li>
<li><a href="contact.html" style="color: black;">Contact us</a></li>
<li><a href="cart.html" style="color: black;">Cart <span class="badge-count" id="badgeCount"></span></a></li>
</ul>
<nav class="navbar navbar-expand-lg fixed-top" id="top">
<div class="container-fluid">
<a class="navbar-brand" href="../index.html" style="font-family: var(--ff-philosopher); color: black;">
<b>Retro</b>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="../index.html" style="color: black;">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="menu.html" style="color: black;">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="services.html" style="color: black;">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html" style="color: black;">Contact us</a>
</li>
<li class="nav-item" style="list-style-type: none;">
<a class="nav-link" href="cart.html" style="color: black;">
<i class="fa-solid fa-cart-shopping"></i><span class="badge-count" id="badgeCount"></span>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
</div>

<div class="wrapper">
<div class="container">
<input type="radio" name="slide" id="c1">
Expand Down
65 changes: 47 additions & 18 deletions Html-files/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />


<link rel="stylesheet" href="/Css-files/navbarstyles.css">
<link
href="https://fonts.googleapis.com/css2?family=Fuggles&family=Mooli&family=Oswald:wght@600&family=Roboto:wght@100;300&display=swap"
rel="stylesheet">
Expand Down Expand Up @@ -228,24 +229,52 @@
<div id="loader"></div>
</div>

<div class="head_container_about" style="color: black;font-family: var(--ff-philosopher);">
<header style="font-family: var(--ff-philosopher);">
<nav class="navbar">
<ul id="header-items" style="color: black;font-family: var(--ff-philosopher);">
<li><a href="../index.html" style="color: black;">Home</a></li>
<li><a href="menu.html" style="color: black;">Collections</a></li>
<li><a href="about.html" style="color: black;">About</a></li>
<li><a href="services.html" style="color: black;">Services</a></li>
<li><a href="contact.html" style="color: black;">Contact us</a></li>
<li><a href="cart.html" style="color: black;">Cart</a></li>
</ul>
</nav>
</header>

<div class="mainhead">
<h1 style="font-family: var(--ff-philosopher);color: hsl(203, 30%, 26%);">About Retro</h1>
<div class="head_container_about" style="color: black;font-family: var(--ff-philosopher);">
<header style="font-family: var(--ff-philosopher);">
<nav class="navbar navbar-expand-lg fixed-top" id="top">
<div class="container-fluid">
<a class="navbar-brand" href="/index.html" style="font-family: var(--ff-philosopher); color: black;">
<b>Retro</b>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="../index.html" style="color: black;">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="menu.html" style="color: black;">Collections</a>
</li>
<li class="nav-item">
<a class="nav-link" href="services.html" style="color: black;">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html" style="color: black;">Contact us</a>
</li>
<li class="nav-item" style="list-style-type: none;">
<a class="nav-link" href="cart.html" style="color: black;">
<i class="fa-solid fa-cart-shopping"></i>Cart<span class="badge-count" id="badgeCount"></span>
</a>
</li>
</ul>
<!-- <div class="nav-right ms-auto">
<li class="nav-item"><a class="nav-link" href="login.html" style="color: black;">Login</a></li>
<li class="nav-item"><a class="nav-link" href="signup.html" style="color: black;">Signup</a></li>
</div>
-->
</div>
</div>
</div>
</nav>
</header>

<div class="mainhead">
<h1 style="font-family: var(--ff-philosopher); color: hsl(203, 30%, 26%);">About Retro</h1>
</div>
</div>




Expand Down
Loading

0 comments on commit f833854

Please sign in to comment.