组件 会话超时警报 会话超时警报组件

会话超时警报组件

一个为电子商务网站设计的极简会话超时警报组件,采用单色调配色方案,并支持黑暗主题和响应式设计,使用Tailwind CSS。

预览

HTML 代码

<div class="fixed inset-0 flex items-center justify-center bg-gray-800 bg-opacity-90 dark:bg-gray-900">
    <div class="max-w-sm w-full bg-gray-200 dark:bg-gray-700 rounded-lg shadow-lg p-5">
        <h2 class="text-xl font-semibold text-gray-900 dark:text-gray-100 mb-2">Session Timeout Warning</h2>
        <p class="text-gray-700 dark:text-gray-300 mb-4">Your session is about to expire due to inactivity. Please take action to continue your shopping experience. </p>
        <div class="flex justify-between">
            <button class="bg-gray-300 dark:bg-gray-600 text-gray-900 dark:text-gray-100 font-semibold py-2 px-4 rounded hover:bg-gray-400 dark:hover:bg-gray-500 transition">Stay Logged In</button>
            <button class="bg-red-500 dark:bg-red-700 text-white font-semibold py-2 px-4 rounded hover:bg-red-600 dark:hover:bg-red-800 transition">Log Out</button>
        </div>
    </div>
</div>

相关组件

会话超时警报组件

一个采用粗犷风格设计的会话超时警报组件,具有原始、大胆的美学、高对比度和响应式效果。该组件支持黑暗主题,使用Tailwind CSS样式,并利用picsum.photos和randomuser.me的占位符图像。

打开

会话超时警报

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

打开

Art Deco 会话超时警报

时尚且响应迅速的会话超时警报组件,采用装饰艺术风格的设计,具有几何图案、暖色中性色和深色模式支持,适用于娱乐平台。

打开