Toggle navigation
☰
HTML
CSS
Scripting
Database
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tailwind CSS Admin Dashboard Layout</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-50 flex min-h-screen antialiased" x-data="{ sidebarOpen: true }"> <!-- Sidebar --> <aside class="bg-slate-900 text-slate-400 w-64 fixed inset-y-0 left-0 transform transition-transform duration-300 z-30 lg:relative lg:translate-x-0" :class="sidebarOpen ? 'translate-x-0' : '-translate-x-full'" > <div class="h-full flex flex-col p-6"> <div class="flex items-center gap-3 mb-10"> <div class="h-10 w-10 bg-indigo-600 rounded-xl flex items-center justify-center text-white shadow-lg shadow-indigo-900/50 shrink-0"> <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg> </div> <span class="text-xl font-black text-white tracking-tighter" x-show="sidebarOpen">Vanguard</span> </div> <nav class="flex-1 space-y-1"> <a href="#" class="flex items-center gap-3 px-4 py-3 bg-white/5 text-white rounded-xl transition-colors font-medium"> <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" /></svg> Dashboard </a> <a href="#" class="flex items-center gap-3 px-4 py-3 hover:bg-white/5 hover:text-white rounded-xl transition-colors font-medium"> <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" /></svg> Analytics </a> <a href="#" class="flex items-center gap-3 px-4 py-3 hover:bg-white/5 hover:text-white rounded-xl transition-colors font-medium"> <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z" /></svg> Users </a> <a href="#" class="flex items-center gap-3 px-4 py-3 hover:bg-white/5 hover:text-white rounded-xl transition-colors font-medium"> <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /></svg> Settings </a> </nav> <div class="mt-auto border-t border-white/5 pt-6"> <a href="#" class="flex items-center gap-3 px-4 py-3 text-rose-400 hover:bg-rose-400/10 rounded-xl transition-colors font-medium"> <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4-4H7m6 4v1h8M13 13h3m7 1v1h-8" /></svg> Logout </a> </div> </div> </aside> <!-- Main Content --> <main class="flex-1 flex flex-col min-w-0"> <!-- Header --> <header class="bg-white border-b border-slate-100 h-16 flex items-center justify-between px-6 shrink-0 sticky top-0 z-20"> <button @click="sidebarOpen = !sidebarOpen" class="lg:hidden h-10 w-10 flex items-center justify-center text-slate-500 hover:bg-slate-50 rounded-lg transition-colors" > <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /></svg> </button> <div class="flex-1 max-w-xl mx-8 hidden md:block"> <div class="relative"> <svg class="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg> <input type="text" placeholder="Search system manifests..." class="w-full pl-10 pr-4 py-2 bg-slate-50 border border-slate-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500 transition-all"> </div> </div> <div class="flex items-center gap-4"> <button class="h-10 w-10 flex items-center justify-center text-slate-500 hover:bg-slate-50 rounded-lg transition-colors relative"> <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><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-2.5 right-2.5 h-2 w-2 bg-rose-500 rounded-full border-2 border-white"></span> </button> <div class="h-8 w-px bg-slate-100 mx-2"></div> <div class="flex items-center gap-3"> <div class="text-right hidden sm:block"> <p class="text-sm font-bold text-slate-900 leading-none">Alexander Sterling</p> <p class="text-[10px] font-bold text-slate-400 uppercase tracking-widest mt-1">Lead Architect</p> </div> <div class="h-10 w-10 rounded-xl bg-indigo-50 border border-indigo-100 overflow-hidden shadow-sm"> <img src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=100&h=100&fit=crop" class="h-full w-full object-cover"> </div> </div> </div> </header> <!-- Content Area --> <div class="p-6 md:p-8 space-y-8 flex-1 overflow-y-auto"> <div class="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4"> <h1 class="text-2xl font-black text-slate-900 tracking-tight">System Performance</h1> <div class="flex items-center gap-2"> <span class="flex items-center gap-1.5 px-3 py-1.5 bg-emerald-50 text-emerald-600 rounded-lg text-xs font-bold ring-1 ring-emerald-100"> <span class="h-1.5 w-1.5 bg-emerald-500 rounded-full animate-pulse"></span> All Cores Operational </span> </div> </div> <!-- Content Placeholder --> <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> <div class="h-64 bg-white rounded-[2rem] border border-slate-100 shadow-sm flex items-center justify-center text-slate-300"> Chart Area </div> <div class="h-64 bg-white rounded-[2rem] border border-slate-100 shadow-sm flex items-center justify-center text-slate-300"> Analytics View </div> <div class="h-64 bg-white rounded-[2rem] border border-slate-100 shadow-sm flex items-center justify-center text-slate-300"> Manifest Log </div> </div> </div> </main> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> </body> </html>