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

会话超时警报组件

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

预览

HTML 代码

<div class="fixed top-0 left-0 right-0 z-50 p-4 flex justify-between items-center bg-white dark:bg-gray-800 flex-col sm:flex-row rounded-lg shadow-lg">
    <div class="flex items-center space-x-3">
        <img src="https://picsum.photos/50/50" alt="Session Timeout" class="w-12 h-12 rounded-full shadow-lg" />
        <div class="text-gray-900 dark:text-white">
            <h2 class="text-lg font-semibold">Session Timeout</h2>
            <p class="text-sm">Your session is about to expire. Please take action to continue shopping.</p>
        </div>
    </div>
    <div class="flex space-x-2 mt-4 sm:mt-0">
        <button class="px-4 py-2 font-semibold text-white bg-gray-900 rounded-md transition duration-300 ease-in-out hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-gray-600 dark:bg-gray-600 dark:hover:bg-gray-500">Stay Logged In</button>
        <button class="px-4 py-2 font-semibold text-gray-900 border border-gray-900 rounded-md transition duration-300 ease-in-out hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-300 dark:text-white dark:border-white dark:hover:bg-gray-700">Log Out</button>
    </div>
</div>

相关组件

会话超时警报

复古/复古会话超时警报组件,采用大地色调,响应式设计和深色主题支持。

打开

会话超时警报组件

一个复杂的响应式会话超时警报组件,适用于政府/公共服务网站,采用有机/自然灵感设计和酷炫的中性色。包括倒数计时器、扩展或注销选项以及完整的深色模式支持。

打开

会话超时警报组件 - Art Deco Candy 主题

一个简单、响应式的会话超时警报组件,采用装饰艺术风格的设计,使用明亮的糖果色。针对文档/wiki 站点进行了优化,支持深色模式。

打开