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

会话超时警报组件

一个具有3D设计风格的响应式会话超时提醒组件,支持暗色主题,并包含占位符图片。

预览

HTML 代码

<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
    <div class="w-full max-w-md p-6 bg-white dark:bg-gray-800 rounded-lg shadow-lg transform transition-all hover:scale-105">
        <div class="flex items-center mb-4">
            <img src="https://randomuser.me/api/portraits/men/46.jpg" alt="User Avatar" class="w-16 h-16 rounded-full shadow-md">
            <div class="ml-4">
                <h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Session Timeout Alert</h2>
                <p class="text-gray-600 dark:text-gray-400">Your session will expire soon.</p>
            </div>
        </div>
        <div class="mb-4">
            <img src="https://picsum.photos/400/200" alt="Alert Image" class="w-full h-32 object-cover rounded-lg shadow-md">
        </div>
        <p class="text-gray-600 dark:text-gray-400">To maintain security, please save your work and log back in soon.</p>
        <div class="mt-6 flex justify-between">
            <button class="px-4 py-2 text-white bg-blue-500 hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-blue-400 rounded-lg shadow-md">Stay Logged In</button>
            <button class="px-4 py-2 text-gray-700 bg-gray-300 hover:bg-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-300 rounded-lg shadow-md">Log Out</button>
        </div>
    </div>
</div>

相关组件

拟物化会话超时警报

一个简单的拟物化风格的会话超时警报组件,具有灰度颜色,专为博客/内容网站设计。它包括响应式设计和深色模式支持。

打开

会话超时警报

一个响应式会话超时警报组件,支持黑暗主题,采用极简/平面美学设计,使用柔和的色彩。它拥有干净的布局,清晰的排版和细微的视觉提示,适合仪表板环境。

打开

会话超时提醒组件

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

打开