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 Confirmation 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-rose-600 text-white rounded-2xl font-bold shadow-xl hover:bg-rose-700 transition cursor-pointer">Decommission Node</button> <div x-show="open" class="fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6" style="display: none;" > <!-- Overlay --> <div x-show="open" x-transition:enter="transition ease-out duration-300" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" class="fixed inset-0 bg-slate-900/40 backdrop-blur-sm" @click="open = false"></div> <div x-show="open" x-transition:enter="transition 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-[2rem] shadow-3xl w-full max-w-md p-10 text-center" > <div class="h-20 w-20 bg-rose-50 text-rose-600 rounded-3xl flex items-center justify-center mx-auto mb-8 animate-pulse"> <svg class="h-10 w-10" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" /></svg> </div> <h3 class="text-2xl font-black text-slate-900 tracking-tight italic mb-3">Confirm Decommission.</h3> <p class="text-slate-500 font-medium text-sm leading-relaxed mb-10 italic">This will permanently detach node <span class="text-rose-600 font-bold">X-42</span> from the global manifest. This action cannot be reverted without root authorization.</p> <div class="flex flex-col gap-3"> <button @click="open = false" class="w-full h-14 bg-rose-600 text-white rounded-2xl font-black text-xs uppercase tracking-widest hover:bg-rose-700 transition active:scale-95 shadow-xl">Purge Node Data</button> <button @click="open = false" class="w-full h-14 bg-slate-50 text-slate-400 rounded-2xl font-black text-xs uppercase tracking-widest hover:bg-slate-100 hover:text-slate-600 transition active:scale-95">Retain Connection</button> </div> </div> </div> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> </body> </html>