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

会话超时警报组件

一个会触发引人入胜动画的会话超时警报组件。它具有响应式设计,适用于拥有柔和色彩方案和暗主题支持的仪表板。它包括交互元素,允许用户延长会话或注销.

预览

HTML 代码

<div class="fixed inset-0 flex items-center justify-center bg-white dark:bg-gray-800 z-50 rounded-lg shadow-lg transition-all duration-300 p-5">
    <div class="bg-pastel-green rounded-md p-4 shadow-md transition-transform transform hover:scale-105">
        <h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200">Session Timeout Alert</h2>
        <p class="mt-2 text-gray-600 dark:text-gray-400">Your session is about to expire. Would you like to extend it?</p>
        <div class="flex justify-around mt-4">
            <button class="bg-blue-500 text-white dark:bg-blue-700 rounded-md px-4 py-2 transition-colors hover:bg-blue-600 dark:hover:bg-blue-600">Extend</button>
            <button class="bg-red-500 text-white dark:bg-red-700 rounded-md px-4 py-2 transition-colors hover:bg-red-600 dark:hover:bg-red-600">Log Out</button>
        </div>
    </div>
    <div class="absolute bottom-2 right-2">
        <img src="https://picsum.photos/50/50" alt="Illustrative Image" class="rounded-full border-2 border-white dark:border-gray-800 shadow-lg" />
    </div>
</div>

相关组件

会话超时警报组件

一个响应式会话超时警报组件,专为电子商务设计,具有吸引人的动画和黑暗主题。它包含警告消息、倒计时器,以及延长会话或注销的选项。

打开

会话超时提醒组件

一个响应式、兼容黑暗主题的会话超时警报组件,采用玻璃形态风格,地球色调,使用 Tailwind CSS 的复杂布局。具有磨砂玻璃效果、模糊效果和多个适合作品集的交互元素。

打开

会话超时警报

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

打开