Dashboard 的拟物化成功消息,Complex with Complementary Colors 和 Dark Mode
<div class="min-h-screen bg-gray-100 dark:bg-gray-900 p-8 flex items-center justify-center"> <div class="bg-white dark:bg-gray-800 p-10 rounded-lg shadow-2xl w-full max-w-md border border-gray-200 dark:border-gray-700 relative overflow-hidden"> <!-- Skeuomorphic header - subtle gradient and border --> <div class="absolute top-0 left-0 right-0 h-16 bg-gradient-to-b from-green-400 to-green-500 dark:from-green-600 dark:to-green-700 rounded-t-lg border-b border-green-600 dark:border-green-800"></div> <!-- Content Area with subtle inner shadow --> <div class="relative z-10 pt-4"> <div class="text-center mb-8"> <!-- Skeuomorphic Icon - Embossed look --> <div class="mx-auto w-20 h-20 rounded-full bg-white dark:bg-gray-700 flex items-center justify-center shadow-inner mb-4"> <svg class="w-10 h-10 text-green-500 dark:text-green-300" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> </div> <h2 class="text-2xl font-bold text-gray-800 dark:text-gray-100 mb-2">Success!</h2> <p class="text-gray-600 dark:text-gray-400">Your operation was completed successfully.</p> </div> <!-- Detail Section - Elevated and Grouped --> <div class="bg-gray-50 dark:bg-gray-700 p-6 rounded-lg mb-6 shadow-md border border-gray-100 dark:border-gray-600"> <div class="flex justify-between items-center mb-4"> <span class="text-sm font-medium text-gray-700 dark:text-gray-300">Transaction ID:</span> <span class="text-sm text-gray-600 dark:text-gray-400">#XYZ123456789</span> </div> <div class="flex justify-between items-center"> <span class="text-sm font-medium text-gray-700 dark:text-gray-300">Status:</span> <span class="text-sm text-green-600 dark:text-green-400 font-semibold">Completed</span> </div> </div> <!-- Action Buttons - Bevel effect --> <div class="flex flex-col space-y-4"> <button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-3 px-6 rounded-lg shadow-lg transform transition duration-300 ease-in-out border-b-4 border-blue-700 dark:border-blue-800 hover:translate-y-1 hover:shadow-xl"> View Details </button> <button class="bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-3 px-6 rounded-lg shadow-lg transform transition duration-300 ease-in-out border-b-4 border-gray-500 dark:border-gray-600 hover:translate-y-1 hover:shadow-xl dark:bg-gray-600 dark:text-gray-200"> Close </button> </div> </div> </div> </div>
房地产平台的成功消息组件,采用深色背景、欢快的糖果色(泡泡糖粉、薄荷绿)和所有屏幕尺寸的响应能力(包括深色模式支持)而设计。
一个使用Tailwind CSS设计的仿生风格响应式成功消息组件,提供黑暗主题支持。
用于社交媒体的极简/扁平设计成功消息组件,具有浅色柔和的色彩和复杂的响应式布局。