会话超时警报

一个用于电子商务网站的简单深色模式会话超时警报组件,使用 TailwindCSS 设计具有柔和的色彩和响应能力。

预览

HTML 代码

<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>

相关组件

会话超时警报组件

响应式会话超时告警组件,采用多色渐变彩虹设计,适用于政府和公共服务网站。具有暗模式支持和平滑过渡。

打开

会话超时警报组件 - 水彩/艺术

一个复杂的响应式会话超时警报组件,用于电子商务,具有水彩/艺术设计、渐变彩虹配色方案和深色模式支持。包括用于扩展或注销的选项。

打开

会话超时警告

一个响应式会话超时警报组件,采用3D设计,三元色调,支持暗黑模式,使用Tailwind CSS。

打开