Spaces:
Running
Running
please add navigation bar on the top of website
Browse files- components/navbar.js +50 -9
- index.html +2 -3
- products.html +2 -4
components/navbar.js
CHANGED
|
@@ -4,31 +4,72 @@ class CustomNavbar extends HTMLElement {
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
nav {
|
| 7 |
-
background: rgba(255,255,255,0.95);
|
| 8 |
backdrop-filter: blur(10px);
|
| 9 |
-
border-bottom: 1px solid
|
| 10 |
position: fixed;
|
| 11 |
top: 0;
|
| 12 |
left: 0;
|
| 13 |
right: 0;
|
| 14 |
z-index: 1000;
|
| 15 |
-
|
| 16 |
}
|
| 17 |
.nav-container {
|
| 18 |
max-width: 1200px;
|
| 19 |
margin: 0 auto;
|
| 20 |
padding: 0 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
-
.nav-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
display: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
-
</style>
|
| 26 |
<nav>
|
| 27 |
<div class="nav-container">
|
| 28 |
-
<
|
| 29 |
-
<
|
| 30 |
-
|
| 31 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
</div>
|
| 33 |
</div>
|
| 34 |
</nav>
|
|
|
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
nav {
|
| 7 |
+
background: rgba(255, 255, 255, 0.95);
|
| 8 |
backdrop-filter: blur(10px);
|
| 9 |
+
border-bottom: 1px solid rgba(255, 102, 0, 0.1);
|
| 10 |
position: fixed;
|
| 11 |
top: 0;
|
| 12 |
left: 0;
|
| 13 |
right: 0;
|
| 14 |
z-index: 1000;
|
| 15 |
+
padding: 1rem 0;
|
| 16 |
}
|
| 17 |
.nav-container {
|
| 18 |
max-width: 1200px;
|
| 19 |
margin: 0 auto;
|
| 20 |
padding: 0 1rem;
|
| 21 |
+
display: flex;
|
| 22 |
+
justify-content: space-between;
|
| 23 |
+
align-items: center;
|
| 24 |
+
}
|
| 25 |
+
.logo {
|
| 26 |
+
font-size: 1.5rem;
|
| 27 |
+
font-weight: 700;
|
| 28 |
+
color: #ff6600;
|
| 29 |
+
text-decoration: none;
|
| 30 |
}
|
| 31 |
+
.nav-links {
|
| 32 |
+
display: flex;
|
| 33 |
+
gap: 2rem;
|
| 34 |
+
align-items: center;
|
| 35 |
+
}
|
| 36 |
+
.nav-links a {
|
| 37 |
+
color: #374151;
|
| 38 |
+
text-decoration: none;
|
| 39 |
+
font-weight: 500;
|
| 40 |
+
transition: all 0.3s ease;
|
| 41 |
+
}
|
| 42 |
+
.nav-links a:hover {
|
| 43 |
+
color: #ff6600;
|
| 44 |
+
}
|
| 45 |
+
.mobile-menu-btn {
|
| 46 |
display: none;
|
| 47 |
+
background: none;
|
| 48 |
+
border: none;
|
| 49 |
+
cursor: pointer;
|
| 50 |
+
color: #374151;
|
| 51 |
+
}
|
| 52 |
+
@media (max-width: 768px) {
|
| 53 |
+
.nav-links {
|
| 54 |
+
display: none;
|
| 55 |
+
position: absolute;
|
| 56 |
+
top: 100%;
|
| 57 |
+
left: 0;
|
| 58 |
+
right: 0;
|
| 59 |
+
}
|
| 60 |
}
|
| 61 |
+
</style>
|
| 62 |
<nav>
|
| 63 |
<div class="nav-container">
|
| 64 |
+
<a href="index.html" class="logo">NanoMatter</a>
|
| 65 |
+
<div class="nav-links">
|
| 66 |
+
<a href="index.html">Home</a>
|
| 67 |
+
<a href="products.html">Products</a>
|
| 68 |
+
<a href="index.html#about">About</a>
|
| 69 |
+
<a href="index.html#technologies">Technologies</a>
|
| 70 |
+
<a href="index.html#service">Services</a>
|
| 71 |
+
<a href="index.html#partnerships">Partnerships</a>
|
| 72 |
+
<a href="index.html#contact">Contact</a>
|
| 73 |
</div>
|
| 74 |
</div>
|
| 75 |
</nav>
|
index.html
CHANGED
|
@@ -30,7 +30,7 @@
|
|
| 30 |
</head>
|
| 31 |
<body class="bg-white text-gray-800 font-poppins">
|
| 32 |
<custom-navbar></custom-navbar>
|
| 33 |
-
|
| 34 |
<section id="hero" class="relative min-h-screen flex items-center justify-center overflow-hidden grid-pattern">
|
| 35 |
<div class="atom-animation" id="atomCanvas"></div>
|
| 36 |
<div class="relative z-20 text-center px-4 max-w-6xl mx-auto">
|
|
@@ -349,11 +349,10 @@
|
|
| 349 |
</div>
|
| 350 |
</div>
|
| 351 |
</section>
|
| 352 |
-
|
| 353 |
<custom-footer></custom-footer>
|
| 354 |
<script src="components/navbar.js"></script>
|
| 355 |
<script src="components/footer.js"></script>
|
| 356 |
-
|
| 357 |
<script>
|
| 358 |
// Initialize feather icons
|
| 359 |
feather.replace();
|
|
|
|
| 30 |
</head>
|
| 31 |
<body class="bg-white text-gray-800 font-poppins">
|
| 32 |
<custom-navbar></custom-navbar>
|
| 33 |
+
<!-- Hero Section -->
|
| 34 |
<section id="hero" class="relative min-h-screen flex items-center justify-center overflow-hidden grid-pattern">
|
| 35 |
<div class="atom-animation" id="atomCanvas"></div>
|
| 36 |
<div class="relative z-20 text-center px-4 max-w-6xl mx-auto">
|
|
|
|
| 349 |
</div>
|
| 350 |
</div>
|
| 351 |
</section>
|
|
|
|
| 352 |
<custom-footer></custom-footer>
|
| 353 |
<script src="components/navbar.js"></script>
|
| 354 |
<script src="components/footer.js"></script>
|
| 355 |
+
<script src="script.js"></script>
|
| 356 |
<script>
|
| 357 |
// Initialize feather icons
|
| 358 |
feather.replace();
|
products.html
CHANGED
|
@@ -20,8 +20,7 @@
|
|
| 20 |
</head>
|
| 21 |
<body class="bg-white text-gray-800 font-poppins">
|
| 22 |
<custom-navbar></custom-navbar>
|
| 23 |
-
|
| 24 |
-
<!-- Products Header -->
|
| 25 |
<section class="py-20 bg-gradient-to-br from-orange-50 to-white">
|
| 26 |
<div class="max-w-6xl mx-auto px-4 text-center">
|
| 27 |
<h1 class="text-5xl md:text-6xl font-bold mb-6 text-gray-900">
|
|
@@ -247,11 +246,10 @@
|
|
| 247 |
</a>
|
| 248 |
</div>
|
| 249 |
</section>
|
| 250 |
-
|
| 251 |
<custom-footer></custom-footer>
|
| 252 |
<script src="components/navbar.js"></script>
|
| 253 |
<script src="components/footer.js"></script>
|
| 254 |
-
|
| 255 |
<script>
|
| 256 |
feather.replace();
|
| 257 |
</script>
|
|
|
|
| 20 |
</head>
|
| 21 |
<body class="bg-white text-gray-800 font-poppins">
|
| 22 |
<custom-navbar></custom-navbar>
|
| 23 |
+
<!-- Products Header -->
|
|
|
|
| 24 |
<section class="py-20 bg-gradient-to-br from-orange-50 to-white">
|
| 25 |
<div class="max-w-6xl mx-auto px-4 text-center">
|
| 26 |
<h1 class="text-5xl md:text-6xl font-bold mb-6 text-gray-900">
|
|
|
|
| 246 |
</a>
|
| 247 |
</div>
|
| 248 |
</section>
|
|
|
|
| 249 |
<custom-footer></custom-footer>
|
| 250 |
<script src="components/navbar.js"></script>
|
| 251 |
<script src="components/footer.js"></script>
|
| 252 |
+
<script src="script.js"></script>
|
| 253 |
<script>
|
| 254 |
feather.replace();
|
| 255 |
</script>
|