위시리스트 컴포넌트
Tailwind CSS를 사용하는 Glassmorphism 디자인 스타일의 반응형 위시리스트 구성 요소로, 젖빛 유리와 같은 효과와 임의의 자리 표시자 이미지가 있는 다크 모드를 지원합니다.
HTML 코드
<div class="flex flex-col items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900 p-4">
<div class="bg-white dark:bg-gray-800 backdrop-blur-md bg-opacity-30 rounded-lg shadow-lg p-6 w-11/12 max-w-md">
<h2 class="text-2xl font-bold text-gray-800 dark:text-gray-200 text-center mb-4">My Wishlist</h2>
<ul class="space-y-4">
<li class="flex items-center justify-between p-4 rounded-lg bg-white dark:bg-gray-700 shadow-md">
<img src="https://picsum.photos/50/50" alt="Item Image" class="rounded-full" />
<div class="flex-grow mx-4">
<h3 class="font-semibold text-gray-800 dark:text-gray-200">Item Title</h3>
<p class="text-gray-600 dark:text-gray-400">Description of the item goes here.</p>
</div>
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
</li>
<li class="flex items-center justify-between p-4 rounded-lg bg-white dark:bg-gray-700 shadow-md">
<img src="https://picsum.photos/50/50" alt="Item Image" class="rounded-full" />
<div class="flex-grow mx-4">
<h3 class="font-semibold text-gray-800 dark:text-gray-200">Item Title</h3>
<p class="text-gray-600 dark:text-gray-400">Description of the item goes here.</p>
</div>
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
</li>
<li class="flex items-center justify-between p-4 rounded-lg bg-white dark:bg-gray-700 shadow-md">
<img src="https://picsum.photos/50/50" alt="Item Image" class="rounded-full" />
<div class="flex-grow mx-4">
<h3 class="font-semibold text-gray-800 dark:text-gray-200">Item Title</h3>
<p class="text-gray-600 dark:text-gray-400">Description of the item goes here.</p>
</div>
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Add to Cart</button>
</li>
</ul>
</div>
</div>