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

retro theme navbar added #496

Closed
wants to merge 1 commit into from
Closed
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
249 changes: 143 additions & 106 deletions Css-files/navbarstyles.css
Original file line number Diff line number Diff line change
@@ -1,167 +1,204 @@
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');




body {
font-family: 'Philosopher', sans-serif;
font-family: 'Press Start 2P', sans-serif; /* Retro pixel font */
/* Dark CRT-like background */
color: #00ff00; /* Neon green text, mimicking old terminals */
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}

/* 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;
margin: 10px;
top: 5px;
background-color: #d4aeae; /* Darker background to simulate retro monitors */
padding: 10px 20px;
border: 2px solid #13141a; /* Neon pink border */
border-radius: 8px;
box-shadow: 0px 0px 10px #e60d9d; /* Glow effect */
}
.nav-link {
background-color: white;
}
.navbar-brand {
font-size: 64px;
color: #d8baff; /* Light purple text */
background-color: #000; /* Black background */
padding: 10px 20px;
border: 4px solid #fff; /* White border */
text-transform: uppercase;
letter-spacing: 5px;
font-weight: bold;
text-shadow: 2px 2px 0px #6d6d6d, -2px -2px 0px #6d6d6d; /* 3D effect */
position: relative;
display: inline-block;
}

.navbar-brand::before,
.navbar-brand::after {
content: "";
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 4px;
background-color: white;
}

.navbar-brand::before {
left: -30px;
}

.navbar-brand::after {
right: -30px;
}

.navbar-brand .dots {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: white;
width: 10px;
height: 10px;
border-radius: 50%;
}





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

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

.navbar-brand {
font-size: 1.5rem;
color: black;
.nav-link{
background-color: #000; /* Tan color */
border: solid 4x #000; /* Dark brown border */
border-radius: 5px;
padding: 10px 20px;
// box-shadow: 15px 10px 0 -4px #fff,
//15px 15px #000;
box-shadow: 2px 2px 0 0 white,
4px 4px 0 0 #0f172a;
cursor: pointer;
font-family: sans-serif;
font-weight: bold;
transition: transform 0.3s ease;
}

.navbar-brand:hover {
transform: scale(1.6);
text-shadow: 1px 1px 1px #888888,
2px 2px 2px #666666,
3px 3px 3px #0c0707;

}

.navbar-nav .nav-item {
margin-right: 15px;
.nav-link:hover {
background-color: #c96eba; /* Neon pink background */
box-shadow: inset 0px 0px 0px 2px #00ff00, 0px 0px 10px #00ff00; /* Glowing neon outline */
color: #000000; /* Black text on hover */
}

.nav-link {
color: black;
font-size: 1rem;
font-family: var(--ff-philosopher);
text-decoration: none;
/* Remove default underline */
position: relative;
.nav-btn {
background-color: rgb(19, 15, 15);
margin: 10px;
border: 2px solid #00ff00; /* Neon green border */
padding: 5px 10px;
cursor: pointer;
color: #00ffff; /* Neon cyan text */
transition: all 0.3s ease;
box-shadow: 0px 0px 10px #00ff00; /* Neon green glow */
}

.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-btn:hover {
background-color: #056c7e; /* Neon pink hover */
color: #ffffff;
border-color: #00ffff; /* Cyan border on hover */
}

.nav-link::after {
.nav-btn::after {
content: '';
position: absolute;
left: 0;
bottom: -5px;
bottom: 4px;
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 */
background: #00ff00; /* Green underline */
transition: all 0.3s ease;
}

.nav-link:hover::after {
background: rgba(243, 187, 183, 1);
.nav-btn:hover::after {
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;
/* Dropdown menu */
.dropdown-menu {
background-color: #202020; /* Dark background */
border: 2px solid #00ff00; /* Neon green border */
}

.nav-btn:hover {
color: #d2691e;
.dropdown-item {
color: #00ff00; /* Neon green text */
font-size: 0.8rem;
}

.nav-btn::after {
.dropdown-item:hover {
background-color: #5127c4; /* Neon pink background */
color: #ffffff;
}

/* Pixelated Hover Effect */
.nav-link:hover::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;
height: 2px;
background: #00ff00; /* Glowing green underline */
box-shadow: 0px 0px 5px #00ff00;
}

.dropdown-item {
/*color: black;*/
font-family: var(--ff-philosopher);
.nav-item.dropdown .nav-link {
text-decoration: none;
}

.dropdown-item:hover {
background-color: #f0c0a0;
color: #d2691e;
.nav-link:hover::after {
background: #2f88c4; /* Pink glow effect */
}

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

.navbar-nav {
.navbar {
flex-direction: column;
text-align: center;
}

.navbar-toggler {
border: none;
.nav-right {
justify-content: center;
}

.navbar-toggler-icon {
color: black;
.navbar-brand {
margin-bottom: 10px;
}
}

.nav-item {
margin-bottom: 1rem;
}
}
/* CRT Monitor Border (for containers or specific elements) */
.crt-border {
border: 4px solid #00ff00; /* Neon green border */
border-radius: 8px;
padding: 20px;
box-shadow: 0px 0px 20px #00ff00; /* Glowing CRT effect */
}
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,40 +356,40 @@
<!--Navbar Start-->
<nav class="navbar navbar-expand-lg fixed-top" id="top">
<div class="container-fluid">
<a class="navbar-brand" href="#" style="font-family: var(--ff-philosopher); color: black;">
<a class="navbar-brand " href="#" style="font-family: var(--ff-philosopher); color: rgb(228, 213, 213);">
<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">
<ul class="navbar-nav me-auto mb-4 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#"
style="color: black; font-family: var(--ff-philosopher);">Home</a>
style="color: black; font-family: var(--ff-poppins);">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Html-files/about.html"
style="font-family: var(--ff-philosopher); color: black;">About Us</a>
style="font-family: var(--ff-poppins); color: black;">About Us</a>
</li>

<li class="nav-item">
<a class="nav-link" href="Html-files/menu.html"
style="font-family: var(--ff-philosopher);color: black;">Collections</a>
style="font-family: var(--ff-poppins);color: black;">Collections</a>
</li>

<li class="nav-item">
<a class="nav-link" href="Html-files/services.html"
style="font-family: var(--ff-philosopher);color: black;">Services</a>
style="font-family: var(--ff-poppins);color: black;">Services</a>
</li>

<li class="nav-item">
<a class="nav-link" href="Html-files/contact.html" style="font-family: var(--ff-philosopher); color: black">Contact Us</a>
<a class="nav-link" href="Html-files/contact.html" style="font-family: var(--ff-poppins); color: black">Contact Us</a>
</li>

<li class="nav-item">
<a class="nav-link" href="#" style="font-family: var(--ff-philosopher); color: black;">More</a>
<a class="nav-link" href="#" style="font-family: var(--ff-poppins); color: black;">More</a>
</li>

</ul>
Expand Down