Session Timeout Alert Component
A session timeout alert component designed with microinteractions in mind, utilizing a grayscale color scheme and responsive design with dark theme support. Ideal for e-commerce platforms to alert users about session expiration.
HTML Code
<div class="fixed top-0 left-0 right-0 z-50 p-4 flex justify-between items-center bg-white dark:bg-gray-800 flex-col sm:flex-row rounded-lg shadow-lg">
<div class="flex items-center space-x-3">
<img src="https://picsum.photos/50/50" alt="Session Timeout" class="w-12 h-12 rounded-full shadow-lg" />
<div class="text-gray-900 dark:text-white">
<h2 class="text-lg font-semibold">Session Timeout</h2>
<p class="text-sm">Your session is about to expire. Please take action to continue shopping.</p>
</div>
</div>
<div class="flex space-x-2 mt-4 sm:mt-0">
<button class="px-4 py-2 font-semibold text-white bg-gray-900 rounded-md transition duration-300 ease-in-out hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-600 dark:bg-gray-600 dark:hover:bg-gray-500">Stay Logged In</button>
<button class="px-4 py-2 font-semibold text-gray-900 border border-gray-900 rounded-md transition duration-300 ease-in-out hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-300 dark:text-white dark:border-white dark:hover:bg-gray-700">Log Out</button>
</div>
</div>
Related Components
Session Timeout Alert
A responsive Session Timeout Alert Component with 3D design, triadic color scheme, and dark mode support using Tailwind CSS.
Session Timeout Alert Component
A session timeout alert component that triggers an engaging animation. It features a responsive design, suitable for dashboards with a pastel color scheme and dark theme support. It includes interactive elements, allowing users to extend their session or log out.
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.