Session Timeout Alert

A simple, dark mode session timeout alert component for e-commerce sites, designed with pastel colors and responsiveness using TailwindCSS.

Preview

HTML Code

<div class="fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center p-4">
  <div class="bg-gray-800 dark:bg-gray-900 p-6 rounded-lg shadow-xl max-w-sm w-full border border-pink-300">
    <h3 class="text-lg font-bold text-pink-200 mb-4">Session expiring soon!</h3>
    <p class="text-gray-300 text-sm mb-4">Your session will time out in 60 seconds. Please save your work or extend your session.</p>
    <div class="flex justify-end space-x-2">
      <button class="px-4 py-2 bg-gray-700 dark:bg-gray-800 text-gray-200 rounded hover:bg-gray-600 dark:hover:bg-gray-700 text-sm transition duration-300">Cancel</button>
      <button class="px-4 py-2 bg-pink-500 text-white rounded hover:bg-pink-600 text-sm transition duration-300">Extend Session</button>
    </div>
  </div>
</div>

Related Components

Session Timeout Alert Component

A complex, responsive session timeout alert component for government/public service websites, featuring an organic/nature-inspired design with cool neutrals. Includes a countdown timer, options to extend or log out, and full dark mode support.

Open

Session Timeout Alert

Retro/Vintage Session Timeout Alert Component with Earth tones, responsive design and dark theme support.

Open

Session Timeout Alert Component

A complex, Neumorphic-style session timeout alert component for e-commerce, featuring a monochromatic color scheme and responsive design with dark mode support.

Open