Initial commit - Admin Template HTML
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
class CRMTopbar3 extends HTMLElement {
|
||||
connectedCallback() {
|
||||
this.innerHTML = `
|
||||
<header class="sticky top-0 z-30 bg-white border-b border-gray-200 h-16 px-4 md:px-6 flex items-center justify-between">
|
||||
<div class="flex items-center gap-4">
|
||||
<button x-on:click="side = !side" class="p-2 rounded-lg hover:bg-gray-100 transition"><svg class="w-5 h-5 text-gray-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/></svg></button>
|
||||
</div>
|
||||
<div class="flex items-center gap-3">
|
||||
<button class="relative p-2 rounded-lg hover:bg-gray-100 transition">
|
||||
<svg class="w-5 h-5 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/></svg>
|
||||
<span class="absolute -top-0.5 -right-0.5 w-4 h-4 rounded-full bg-indigo-500 text-white text-[10px] flex items-center justify-center font-bold">3</span>
|
||||
</button>
|
||||
<div class="flex items-center gap-2 pl-3 ml-1 border-l border-gray-200">
|
||||
<div class="w-8 h-8 rounded-full flex items-center justify-center text-white font-bold text-xs" style="background: linear-gradient(135deg, #6366f1, #4f46e5);">JD</div>
|
||||
<div class="hidden sm:block text-sm leading-tight"><p class="font-semibold text-gray-800">John Doe</p><p class="text-gray-400 text-xs">Sales Admin</p></div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
`;
|
||||
}
|
||||
}
|
||||
customElements.define('crm-topbar-3', CRMTopbar3);
|
||||
Reference in New Issue
Block a user