Spaces:
Running
Running
навигационное верхнее меню не отображается
Browse files- components/navbar.js +5 -0
- style.css +14 -0
components/navbar.js
CHANGED
|
@@ -59,3 +59,8 @@ class CustomNavbar extends HTMLElement {
|
|
| 59 |
<a href="/seo-spetsialist-seo-optimizator" class="text-zinc-700 hover:text-primary transition duration-300 py-2">Вакансии</a>
|
| 60 |
</div>
|
| 61 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
<a href="/seo-spetsialist-seo-optimizator" class="text-zinc-700 hover:text-primary transition duration-300 py-2">Вакансии</a>
|
| 60 |
</div>
|
| 61 |
</div>
|
| 62 |
+
</div>
|
| 63 |
+
</nav>
|
| 64 |
+
`;
|
| 65 |
+
}
|
| 66 |
+
}
|
style.css
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
/* Custom animations */
|
| 2 |
@keyframes fadeIn {
|
| 3 |
from { opacity: 0; transform: translateY(20px); }
|
|
|
|
| 1 |
+
|
| 2 |
+
/* Navbar styles */
|
| 3 |
+
.navbar {
|
| 4 |
+
position: fixed;
|
| 5 |
+
width: 100%;
|
| 6 |
+
z-index: 50;
|
| 7 |
+
transition: all 0.3s ease;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
.navbar.scrolled {
|
| 11 |
+
background-color: white !important;
|
| 12 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
/* Custom animations */
|
| 16 |
@keyframes fadeIn {
|
| 17 |
from { opacity: 0; transform: translateY(20px); }
|