Session Timeout Alert Component
A responsive session timeout alert component designed for e-commerce with engaging animations and a dark theme. It features a warning message, a countdown timer, and options to extend the session or log out.
HTML Code
<div class="fixed inset-0 flex items-center justify-center z-50 bg-gray-900 bg-opacity-80 dark:bg-opacity-90 transition-all duration-300 ease-in-out">
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 mx-4 w-full max-w-md">
<h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200 mb-4 animate-bounce">Session Timeout Warning</h2>
<p class="text-gray-700 dark:text-gray-300 mb-6">Your session is about to expire due to inactivity.</p>
<div class="flex items-center mb-4">
<span class="text-2xl font-bold text-gray-800 dark:text-gray-200 mr-2" id="countdown">02:30</span>
<span class="text-gray-500 dark:text-gray-400">Remaining</span>
</div>
<div class="flex justify-between mt-4">
<button class="bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded transition-all duration-200 ease-in-out dark:bg-blue-600 dark:hover:bg-blue-700">Extend Session</button>
<button class="bg-red-500 hover:bg-red-600 text-white font-semibold py-2 px-4 rounded transition-all duration-200 ease-in-out dark:bg-red-600 dark:hover:bg-red-700">Log Out</button>
</div>
</div>
</div>
Related Components
Session Timeout Alert Component
A responsive session timeout alert component featuring a 3D design style, dark theme support, and incorporating placeholder images.
Session Timeout Alert
A responsive session timeout alert component with dark theme support, designed with a minimalist/flat aesthetic using pastel colors. It features a clean layout with clear typography and subtle visual cues for user interaction, suitable for dashboard environments.
Session Timeout Alert
Retro/Vintage Session Timeout Alert Component with Earth tones, responsive design and dark theme support.