Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨[feature Request]: Changing Navbar #186 #222

Merged
merged 4 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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