navbar is broken , remove all text and add a navbar with colour rgb(44 51 77);
Browse files- components/navbar.js +9 -35
components/navbar.js
CHANGED
|
@@ -1,47 +1,21 @@
|
|
|
|
|
| 1 |
class CustomNavbar extends HTMLElement {
|
| 2 |
connectedCallback() {
|
| 3 |
this.attachShadow({ mode: 'open' });
|
| 4 |
this.shadowRoot.innerHTML = `
|
| 5 |
<style>
|
| 6 |
.navbar {
|
| 7 |
-
background-color:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
transition: color 0.2s;
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
.nav-link:hover {
|
| 16 |
-
color: #6366f1;
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
.active {
|
| 20 |
-
color: #6366f1;
|
| 21 |
-
border-bottom: 2px solid #6366f1;
|
| 22 |
}
|
| 23 |
</style>
|
| 24 |
-
<nav class="navbar
|
| 25 |
-
<div class="container mx-auto
|
| 26 |
-
<div class="flex items-center space-x-8">
|
| 27 |
-
<a href="#" class="text-xl font-bold text-gray-800">FailTrack</a>
|
| 28 |
-
<div class="hidden md:flex space-x-6">
|
| 29 |
-
<a href="#" class="nav-link text-gray-600 active">Dashboard</a>
|
| 30 |
-
<a href="#" class="nav-link text-gray-600">Analytics</a>
|
| 31 |
-
<a href="#" class="nav-link text-gray-600">Settings</a>
|
| 32 |
-
</div>
|
| 33 |
-
</div>
|
| 34 |
-
<div class="flex items-center space-x-4">
|
| 35 |
-
<button class="p-2 rounded-full hover:bg-gray-100">
|
| 36 |
-
<i data-feather="bell"></i>
|
| 37 |
-
</button>
|
| 38 |
-
<div class="flex items-center space-x-2">
|
| 39 |
-
<span class="text-sm font-medium text-gray-700">Admin</span>
|
| 40 |
-
</div>
|
| 41 |
-
</div>
|
| 42 |
-
</div>
|
| 43 |
</nav>
|
| 44 |
-
|
| 45 |
}
|
| 46 |
}
|
| 47 |
|
|
|
|
| 1 |
+
|
| 2 |
class CustomNavbar extends HTMLElement {
|
| 3 |
connectedCallback() {
|
| 4 |
this.attachShadow({ mode: 'open' });
|
| 5 |
this.shadowRoot.innerHTML = `
|
| 6 |
<style>
|
| 7 |
.navbar {
|
| 8 |
+
background-color: rgb(44 51 77);
|
| 9 |
+
height: 60px;
|
| 10 |
+
display: flex;
|
| 11 |
+
align-items: center;
|
| 12 |
+
padding: 0 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
</style>
|
| 15 |
+
<nav class="navbar">
|
| 16 |
+
<div class="container mx-auto"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
</nav>
|
| 18 |
+
`;
|
| 19 |
}
|
| 20 |
}
|
| 21 |
|