组件 成功消息 成功消息组件

成功消息组件

一个 3D 设计风格的成功消息组件,具备响应效果和暗黑主题支持,并提供图像和头像的占位符。

预览

HTML 代码

<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900">
    <div class="bg-white dark:bg-gray-800 shadow-lg rounded-lg p-6 max-w-md w-full transform transition-transform hover:scale-105">
        <div class="flex items-center space-x-4">
            <img src="https://picsum.photos/60/60" alt="Avatar" class="w-14 h-14 rounded-full shadow-md">
            <div class="flex-1">
                <h2 class="text-lg font-semibold text-gray-800 dark:text-gray-200">Success!</h2>
                <p class="text-gray-600 dark:text-gray-300">Your operation was completed successfully.</p>
            </div>
        </div>
        <div class="mt-4 space-x-2">
            <a href="#" class="inline-block px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md shadow hover:bg-blue-500 transition duration-300">Okay</a>
            <a href="#" class="inline-block px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-200 dark:bg-gray-700 rounded-md shadow hover:bg-gray-300 dark:hover:bg-gray-600 transition duration-300">Dismiss</a>
        </div>
    </div>
</div>

相关组件

成功消息组件 - Material Design Complementary

博客/内容网站的 Material Design 样式成功消息组件,使用互补配色方案。响应式,支持深色主题。无 JavaScript。

打开

成功消息组件

响应式成功消息组件,支持深色模式和适用于电子商务的 Glassmorphism 样式。

打开

成功消息组件

一个极简的成功消息组件,具有响应效果,支持使用 Tailwind CSS 的明暗主题。

打开