Neumorphism Toast Notifications 구성 요소
Neumorphism Toast Notifications 반응형 효과와 어두운 테마를 지원하는 구성 요소.
HTML 코드
<div class="flex items-center justify-center min-h-screen p-10">
<div class="w-full max-w-sm mx-auto">
<div class="flex items-center p-6 neumorphism-card rounded-xl">
<div class="flex-shrink-0">
<svg class="w-6 h-6 text-green-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<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" />
</svg>
</div>
<div class="ml-4">
<p class="font-semibold text-gray-700 dark:text-gray-200">Success!</p>
<p class="mt-1 text-sm text-gray-500 dark:text-gray-400">Your action was completed successfully.</p>
</div>
</div>
<!-- Add more toast notifications as needed -->
</div>
</div>
<style>
/* Base styles for neumorphism effect */
.neumorphism-card {
background: linear-gradient(145deg, #e0e0e0, #ffffff);
box-shadow: 8px 8px 16px #bebebe, -8px -8px 16px #ffffff;
}
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
.neumorphism-card {
background: linear-gradient(145deg, #2c2c2c, #383838);
box-shadow: 8px 8px 16px #232323, -8px -8px 16px #383838;
}
}
/* Responsive adjustments */
@media (max-width: 600px) {
.neumorphism-card {
padding: 1rem;
}
}
</style>
관련 구성 요소
Toast Notifications 구성 요소
Tailwind CSS를 사용하는 미니멀하고 생동감 넘치는 Toast Notifications 구성 요소입니다. 구성 요소는 포트폴리오를 위한 간단한 레이아웃으로 설계되고, 다크 모드를 지원하며, JavaScript 없이 반응합니다.
Toast Notifications 구성 요소
대시보드 애플리케이션용으로 설계된 다크 모드 토스트 알림 구성 요소로, 다양한 대화형 요소가 있는 보색 구성표를 특징으로 합니다.