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 Form Modal</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-100 flex items-center justify-center min-h-screen p-6 antialiased" x-data="{ open: true }"> <button @click="open = true" class="px-8 py-3 bg-indigo-600 text-white rounded-2xl font-bold hover:bg-indigo-700 transition shadow-xl cursor-pointer">Register Core Node</button> <div x-show="open" class="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto px-4" style="display: none;" > <div x-show="open" x-transition:enter="ease-out duration-300" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="fixed inset-0 bg-slate-900/60 backdrop-blur-sm" @click="open = false"></div> <div x-show="open" x-transition:enter="ease-out duration-300 transform" x-transition:enter-start="opacity-0 scale-95" x-transition:enter-end="opacity-100 scale-100" class="relative bg-white rounded-[2.5rem] shadow-3xl w-full max-w-lg overflow-hidden" > <div class="px-10 py-12"> <div class="mb-10 text-center"> <h3 class="text-3xl font-black text-slate-900 tracking-tighter italic">Access Authorization.</h3> <p class="text-[10px] font-black text-slate-400 uppercase tracking-widest mt-2">Initialize your security credentials</p> </div> <form @submit.prevent="open = false" class="space-y-6"> <div> <label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest mb-2 ml-1">Identity Tag</label> <input type="text" placeholder="e.g. ALPHA-9" class="w-full h-14 bg-slate-50 border-2 border-transparent focus:border-indigo-600 focus:bg-white rounded-2xl px-6 font-bold text-slate-900 transition-all outline-none italic"> </div> <div> <label class="block text-[10px] font-black text-slate-400 uppercase tracking-widest mb-2 ml-1">Access Protocol</label> <input type="email" placeholder="network@node.io" class="w-full h-14 bg-slate-50 border-2 border-transparent focus:border-indigo-600 focus:bg-white rounded-2xl px-6 font-bold text-slate-900 transition-all outline-none italic"> </div> <div class="pt-4 flex gap-4"> <button type="submit" class="flex-1 h-14 bg-indigo-600 text-white rounded-2xl font-black text-xs uppercase tracking-widest hover:bg-slate-900 shadow-xl transition active:scale-95 cursor-pointer">Grant Access</button> <button type="button" @click="open = false" class="px-8 h-14 bg-slate-50 text-slate-400 rounded-2xl font-black text-xs uppercase tracking-widest hover:bg-slate-100 transition cursor-pointer">Abort</button> </div> </form> </div> </div> </div> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> </body> </html>