Memphis Pastel Success Message
A simple, responsive success message component with a Memphis design aesthetic using pastel colors. Features playful geometric shapes and supports dark mode.
HTML Code
<div class="p-4 sm:p-6 md:p-8 lg:p-10 flex items-center justify-center min-h-screen bg-gradient-to-br from-purple-100 via-pink-100 to-blue-100 dark:from-purple-800 dark:via-pink-800 dark:to-blue-800">
<div class="relative w-full max-w-lg bg-white dark:bg-gray-800 rounded-xl shadow-xl overflow-hidden p-6 sm:p-8 md:p-10 lg:p-12 border-4 border-dashed border-purple-300 dark:border-purple-600 animate-slide-in-up">
<!-- Memphis Design Elements -->
<div class="absolute -top-8 -left-8 w-24 h-24 bg-pink-300 dark:bg-pink-600 rounded-full opacity-70"></div>
<div class="absolute top-1/4 -right-10 w-20 h-20 bg-blue-300 dark:bg-blue-600 transform rotate-45 opacity-70"></div>
<div class="absolute -bottom-6 -right-6 w-16 h-16 bg-yellow-200 dark:bg-yellow-500 rounded-lg opacity-70"></div>
<div class="absolute bottom-1/2 -left-4 w-12 h-12 bg-green-200 dark:bg-green-500 rounded-full opacity-70"></div>
<div class="relative z-10 flex flex-col items-center text-center">
<div class="mb-4 sm:mb-6">
<svg class="w-16 h-16 sm:w-20 sm:h-20 text-green-500 dark:text-green-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path>
</svg>
</div>
<h2 class="text-3xl sm:text-4xl lg:text-5xl font-extrabold text-purple-600 dark:text-purple-300 mb-3 sm:mb-4 leading-tight">
Success!
</h2>
<p class="text-lg sm:text-xl text-gray-700 dark:text-gray-300 mb-6 sm:mb-8 max-w-md">
Your action was completed successfully. Enjoy the fresh content!
</p>
<button type="button" class="inline-flex items-center px-6 py-3 border border-transparent text-base font-bold rounded-full shadow-lg text-white bg-pink-500 hover:bg-pink-600 focus:outline-none focus:ring-4 focus:ring-offset-2 focus:ring-pink-300 dark:focus:ring-pink-700 transition ease-in-out duration-300 transform hover:scale-105 active:scale-95">
<span class="mr-2">Explore More</span>
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M10.293 15.707a1 1 0 010-1.414L14.586 10l-4.293-4.293a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z" clip-rule="evenodd"></path>
<path fill-rule="evenodd" d="M4.293 15.707a1 1 0 010-1.414L8.586 10 4.293 5.707a1 1 0 011.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z" clip-rule="evenodd"></path>
</svg>
</button>
</div>
</div>
</div>
<style>
@keyframes slide-in-up {
0% {
transform: translateY(20px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
.animate-slide-in-up {
animation: slide-in-up 0.7s ease-out forwards;
}
</style>
Related Components
Success Messages Component
A Success Messages Component designed in dark mode for blog/content reading. It features an analogous color scheme and is responsive.
Art Deco Success Message
An Art Deco inspired success message component with a retro/vintage color palette, designed for entertainment/media platforms. It features geometric patterns, luxurious styling, and is fully responsive with dark mode support.
Success Messages Component - Real Estate Dark Mode Candy Colors
A success message component for real estate platforms, designed with a dark background, cheerful candy colors (bubblegum pink, mint green), and responsiveness for all screen sizes, including dark mode support.