Build a full CRM web application for Home-Based Lunch Delivery Order Management using Laravel or Next.js.
6bdd29e
verified
| class AdminNavbar extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| nav { | |
| background: #4f46e5; | |
| color: white; | |
| padding: 1rem 2rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); | |
| } | |
| .logo { | |
| font-weight: bold; | |
| font-size: 1.5rem; | |
| } | |
| ul { | |
| display: flex; | |
| gap: 2rem; | |
| list-style: none; | |
| } | |
| a { | |
| color: white; | |
| text-decoration: none; | |
| font-weight: 500; | |
| transition: all 0.3s ease; | |
| } | |
| a:hover { | |
| opacity: 0.8; | |
| } | |
| .active { | |
| border-bottom: 2px solid white; | |
| } | |
| </style> | |
| <nav> | |
| <div class="logo">LunchBox Commander</div> | |
| <ul> | |
| <li><a href="/admin/dashboard.html" class="active">Dashboard</a></li> | |
| <li><a href="/admin/orders.html">Orders</a></li> | |
| <li><a href="/admin/products.html">Products</a></li> | |
| <li><a href="/admin/reports.html">Reports</a></li> | |
| <li><a href="/admin/settings.html">Settings</a></li> | |
| </ul> | |
| </nav> | |
| `; | |
| } | |
| } | |
| customElements.define('admin-navbar', AdminNavbar); |