Success Messages Component 17
A bold and raw success messages component designed with Tailwind CSS featuring responsive effects and dark theme support.
HTML Code
<div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg max-w-sm mx-auto">
<div class="flex items-center mb-4">
<img src="https://picsum.photos/50/50" alt="Avatar" class="rounded-full border-2 border-green-500 mr-3">
<h2 class="text-xl font-bold text-green-700 dark:text-green-400">Success!</h2>
</div>
<p class="text-gray-700 dark:text-gray-300">
Your operation was completed successfully. Check your account for the latest updates!
</p>
<div class="flex justify-end mt-4">
<button class="bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
Close
</button>
</div>
</div>
<style>
@media (prefers-color-scheme: dark) {
.bg-white {
background-color: #2D3748;
}
.text-gray-700 {
color: #E2E8F0;
}
}
</style>
Related Components
Success Messages Component
A simple and clean success message component with responsive design and dark mode support.
Success Messages Component
A component that displays bold success messages with a brutalism design style, featuring high contrast, responsive effects, and dark theme support.
Success Messages Component
A component for displaying success messages with a 3D design style, responsive effects, and dark theme support using Tailwind CSS.