Spaces:
Running
Running
Delete the Tasks Calendar Analytics with Profile button at the top left corner as well as the two small gray images above it.
Browse files- components/navbar.js +4 -54
components/navbar.js
CHANGED
|
@@ -40,69 +40,19 @@ class NavHeader extends HTMLElement {
|
|
| 40 |
}
|
| 41 |
|
| 42 |
@media (max-width: 768px) {
|
| 43 |
-
|
| 44 |
-
transform: translateX(100%);
|
| 45 |
-
transition: transform 0.3s ease;
|
| 46 |
-
}
|
| 47 |
-
|
| 48 |
-
.mobile-menu.active {
|
| 49 |
-
transform: translateX(0);
|
| 50 |
-
}
|
| 51 |
-
}
|
| 52 |
</style>
|
| 53 |
-
|
| 54 |
<nav class="navbar sticky top-0 z-40 px-4 md:px-6 py-4">
|
| 55 |
-
<div class="container mx-auto flex justify-
|
| 56 |
<div class="flex items-center gap-2">
|
| 57 |
<i data-feather="check-square" class="w-8 h-8 text-primary-500"></i>
|
| 58 |
<span class="logo">TaskMail</span>
|
| 59 |
</div>
|
| 60 |
-
<button class="md:hidden" id="mobileMenuBtn">
|
| 61 |
-
<i data-feather="menu" class="w-6 h-6 text-gray-700"></i>
|
| 62 |
-
</button>
|
| 63 |
-
</div>
|
| 64 |
-
|
| 65 |
-
<!-- Mobile Menu -->
|
| 66 |
-
<div class="mobile-menu fixed top-0 right-0 w-64 h-full bg-white shadow-2xl md:hidden" id="mobileMenu">
|
| 67 |
-
<div class="p-6">
|
| 68 |
-
<button class="absolute top-4 right-4" id="closeMobileMenu">
|
| 69 |
-
<i data-feather="x" class="w-6 h-6 text-gray-700"></i>
|
| 70 |
-
</button>
|
| 71 |
-
|
| 72 |
-
<div class="mt-8 space-y-4">
|
| 73 |
-
<a href="#" class="block text-gray-700 hover:text-primary-500 font-medium py-2">
|
| 74 |
-
Tasks
|
| 75 |
-
</a>
|
| 76 |
-
<a href="#" class="block text-gray-700 hover:text-primary-500 font-medium py-2">
|
| 77 |
-
Calendar
|
| 78 |
-
</a>
|
| 79 |
-
<a href="#" class="block text-gray-700 hover:text-primary-500 font-medium py-2">
|
| 80 |
-
Analytics
|
| 81 |
-
</a>
|
| 82 |
-
<button class="w-full bg-primary-500 text-white px-4 py-2 rounded-lg hover:bg-primary-600 transition-colors flex items-center justify-center gap-2 mt-4">
|
| 83 |
-
<i data-feather="user" class="w-4 h-4"></i>
|
| 84 |
-
Profile
|
| 85 |
-
</button>
|
| 86 |
-
</div>
|
| 87 |
-
</div>
|
| 88 |
</div>
|
| 89 |
</nav>
|
|
|
|
| 90 |
`;
|
| 91 |
-
|
| 92 |
-
// Mobile menu functionality
|
| 93 |
-
const mobileMenuBtn = this.shadowRoot.getElementById('mobileMenuBtn');
|
| 94 |
-
const closeMobileMenu = this.shadowRoot.getElementById('closeMobileMenu');
|
| 95 |
-
const mobileMenu = this.shadowRoot.getElementById('mobileMenu');
|
| 96 |
-
|
| 97 |
-
mobileMenuBtn.addEventListener('click', () => {
|
| 98 |
-
mobileMenu.classList.add('active');
|
| 99 |
-
});
|
| 100 |
-
|
| 101 |
-
closeMobileMenu.addEventListener('click', () => {
|
| 102 |
-
mobileMenu.classList.remove('active');
|
| 103 |
-
});
|
| 104 |
-
|
| 105 |
-
// Initialize feather icons
|
| 106 |
setTimeout(() => {
|
| 107 |
feather.replace();
|
| 108 |
}, 0);
|
|
|
|
| 40 |
}
|
| 41 |
|
| 42 |
@media (max-width: 768px) {
|
| 43 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
</style>
|
|
|
|
| 45 |
<nav class="navbar sticky top-0 z-40 px-4 md:px-6 py-4">
|
| 46 |
+
<div class="container mx-auto flex justify-center items-center">
|
| 47 |
<div class="flex items-center gap-2">
|
| 48 |
<i data-feather="check-square" class="w-8 h-8 text-primary-500"></i>
|
| 49 |
<span class="logo">TaskMail</span>
|
| 50 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
</div>
|
| 52 |
</nav>
|
| 53 |
+
</nav>
|
| 54 |
`;
|
| 55 |
+
// Initialize feather icons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
setTimeout(() => {
|
| 57 |
feather.replace();
|
| 58 |
}, 0);
|