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

会话超时警报组件

一个为电子商务网站设计的极简会话超时警报组件,采用单色调配色方案,并支持黑暗主题和响应式设计,使用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>

相关组件

会话超时警报

一个简单的单色材料设计会话超时警报组件,适用于社交媒体,具有响应式设计和深色主题支持。

打开

会话超时警报组件

一个响应式会话超时警报组件,采用 glassmorphism 风格设计,适用于深色主题。它具有柔和的配色方案、带有模糊效果的磨砂玻璃状半透明元素,以及一些交互式功能,如倒数计时器和作按钮。

打开

会话超时警报组件

会话超时警报组件在设计时考虑了微交互,利用灰度配色方案和响应式设计,并支持深色主题。非常适合电子商务平台提醒用户会话过期。

打开