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

会话超时警报组件

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

预览

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>

相关组件

会话超时警告

一个响应式会话超时警报组件,采用3D设计,三元色调,支持暗黑模式,使用Tailwind CSS。

打开

会话超时警报

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

打开

会话超时警报组件

一个为电子商务网站设计的极简会话超时警报组件,采用单色调配色方案,并支持黑暗主题和响应式设计,使用Tailwind CSS。

打开