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 Sidebar Content Layout</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-50 min-h-screen flex antialiased"> <!-- Sidebar --> <aside class="w-80 bg-white border-r border-slate-100 flex-shrink-0 hidden lg:flex flex-col"> <div class="h-24 px-10 flex items-center border-b border-slate-50"> <span class="text-xl font-black text-slate-900 tracking-tighter">VANGUARD</span> </div> <div class="flex-1 py-10 px-6 space-y-10"> <nav class="space-y-1"> <a href="#" class="flex items-center gap-4 p-4 bg-indigo-50 text-indigo-600 rounded-2xl group transition-all"> <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.5" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z" /></svg> <span class="text-xs font-black uppercase tracking-widest">Dashboard</span> </a> <a href="#" class="flex items-center gap-4 p-4 text-slate-400 hover:text-slate-900 hover:bg-slate-50 rounded-2xl group transition-all"> <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="M13 10V3L4 14h7v7l9-11h-7z" /></svg> <span class="text-xs font-black uppercase tracking-widest">Protocols</span> </a> <a href="#" class="flex items-center gap-4 p-4 text-slate-400 hover:text-slate-900 hover:bg-slate-50 rounded-2xl group transition-all"> <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 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" /></svg> <span class="text-xs font-black uppercase tracking-widest">Security</span> </a> </nav> <div class="px-4"> <h3 class="text-[9px] font-black text-slate-300 uppercase tracking-[0.4em] mb-4">Mirror Clusters</h3> <div class="space-y-4"> <div class="flex items-center justify-between"> <span class="text-xs font-bold text-slate-900">US-EAST-01</span> <div class="h-1.5 w-1.5 bg-emerald-500 rounded-full"></div> </div> <div class="flex items-center justify-between"> <span class="text-xs font-bold text-slate-900">EU-WEST-Apex</span> <div class="h-1.5 w-1.5 bg-emerald-500 rounded-full"></div> </div> </div> </div> </div> <div class="p-6 border-t border-slate-50"> <div class="bg-slate-900 rounded-[2rem] p-6 text-white text-center"> <p class="text-[9px] font-black uppercase tracking-widest text-indigo-400 mb-2">Alpha Plan</p> <button class="w-full py-2 bg-indigo-600 rounded-xl text-[9px] font-black uppercase tracking-widest">Upgrade</button> </div> </div> </aside> <!-- Main Area --> <div class="flex-1 flex flex-col"> <header class="h-24 px-12 flex items-center justify-between bg-white/50 backdrop-blur-md sticky top-0 z-10"> <h2 class="text-lg font-black text-slate-900 uppercase tracking-tighter">Sector Overview</h2> <div class="flex items-center gap-4"> <button class="h-12 w-12 rounded-2xl bg-white border border-slate-100 flex items-center justify-center text-slate-400 shadow-sm"><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="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></button> <div class="h-12 w-12 rounded-2xl bg-slate-900 border border-slate-900 shadow-lg"></div> </div> </header> <main class="p-12 space-y-12"> <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> <div class="h-40 bg-white rounded-[2.5rem] border border-slate-100 shadow-sm p-8"></div> <div class="h-40 bg-white rounded-[2.5rem] border border-slate-100 shadow-sm p-8"></div> <div class="h-40 bg-white rounded-[2.5rem] border border-slate-100 shadow-sm p-8"></div> </div> <div class="h-[60rem] bg-white rounded-[4rem] border border-slate-100 shadow-sm p-12"> <div class="h-full w-full bg-slate-50/50 rounded-[3rem] border border-dashed border-slate-200"></div> </div> </main> </div> </body> </html>