一个用于电子商务网站的简单深色模式会话超时警报组件,使用 TailwindCSS 设计具有柔和的色彩和响应能力。
<div class="fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center p-4"> <div class="bg-gray-800 dark:bg-gray-900 p-6 rounded-lg shadow-xl max-w-sm w-full border border-pink-300"> <h3 class="text-lg font-bold text-pink-200 mb-4">Session expiring soon!</h3> <p class="text-gray-300 text-sm mb-4">Your session will time out in 60 seconds. Please save your work or extend your session.</p> <div class="flex justify-end space-x-2"> <button class="px-4 py-2 bg-gray-700 dark:bg-gray-800 text-gray-200 rounded hover:bg-gray-600 dark:hover:bg-gray-700 text-sm transition duration-300">Cancel</button> <button class="px-4 py-2 bg-pink-500 text-white rounded hover:bg-pink-600 text-sm transition duration-300">Extend Session</button> </div> </div> </div>
一个简单、响应迅速的会话超时警报组件,具有多色渐变背景,专为活动和会议网站而设计。包括深色模式支持。
会话超时警报组件在设计时考虑了微交互,利用灰度配色方案和响应式设计,并支持深色主题。非常适合电子商务平台提醒用户会话过期。
一个响应式会话超时警报组件,采用3D设计,三元色调,支持暗黑模式,使用Tailwind CSS。