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 Card Form Layout</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-50 flex items-center justify-center min-h-screen p-6 antialiased"> <div class="w-full max-w-2xl bg-white rounded-[3rem] shadow-3xl overflow-hidden border border-white"> <!-- Card Header --> <div class="px-12 py-10 bg-slate-900 text-white relative"> <div class="relative z-10"> <h2 class="text-3xl font-black tracking-tighter italic">Card Protocol.</h2> <p class="text-[10px] font-black text-white/40 uppercase tracking-[0.3em] mt-2">Workspace Configuration</p> </div> <div class="absolute right-10 top-1/2 -translate-y-1/2 h-16 w-16 bg-white/5 rounded-full flex items-center justify-center border border-white/10 group"> <svg class="h-8 w-8 text-white group-hover:rotate-12 transition-transform" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"/></svg> </div> </div> <!-- Card Body --> <div class="p-12"> <form class="space-y-8"> <div class="grid grid-cols-1 md:grid-cols-2 gap-8"> <div> <label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest mb-3 ml-2 text-shadow-sm">System Alias</label> <input type="text" placeholder="nexus-01" class="w-full h-14 bg-slate-50 border-2 border-slate-50 rounded-2xl px-6 font-bold text-slate-900 focus:outline-none focus:border-indigo-600 focus:bg-white transition-all shadow-sm italic"> </div> <div> <label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest mb-3 ml-2">Node Region</label> <select class="w-full h-14 bg-slate-50 border-2 border-slate-50 rounded-2xl px-6 font-bold text-slate-900 focus:outline-none focus:border-indigo-600 focus:bg-white transition-all shadow-sm appearance-none cursor-pointer italic"> <option>Global Edge</option> <option>US East</option> <option>EU West</option> </select> </div> </div> <div> <label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest mb-3 ml-2">Security Description</label> <textarea rows="3" class="w-full bg-slate-50 border-2 border-slate-50 rounded-2xl p-6 font-bold text-slate-900 focus:outline-none focus:border-indigo-600 focus:bg-white transition-all shadow-sm resize-none italic"></textarea> </div> <div class="flex items-center justify-end gap-6 pt-4"> <button type="button" class="text-[10px] font-black text-slate-400 uppercase tracking-widest hover:text-rose-600 transition-colors cursor-pointer">Revert Changes</button> <button type="submit" class="px-10 h-16 bg-slate-900 text-white rounded-2xl font-black text-[10px] uppercase tracking-[0.2em] shadow-2xl hover:bg-indigo-600 transition active:scale-95 cursor-pointer">Commit Protocol</button> </div> </form> </div> </div> </body> </html>