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

会话超时警报组件

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

预览

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样式,并利用picsum.photos和randomuser.me的占位符图像。

打开