HTML 코드
<div class="max-w-xs mx-auto bg-gray-800 rounded-lg shadow-lg overflow-hidden dark:bg-gray-900">
<div class="p-4">
<h2 class="text-2xl font-bold text-white mb-2">Wishlist</h2>
<ul class="space-y-4">
<li class="bg-gray-700 dark:bg-gray-800 p-3 rounded-md flex items-center justify-between">
<div class="flex items-center space-x-3">
<img src="https://picsum.photos/50/50" alt="Product Image" class="w-12 h-12 rounded-md shadow-md" />
<div>
<h3 class="text-lg text-white">Product Name 1</h3>
<p class="text-sm text-gray-400">$20.00</p>
</div>
</div>
<button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-1 px-3 rounded-md">Add to Cart</button>
</li>
<li class="bg-gray-700 dark:bg-gray-800 p-3 rounded-md flex items-center justify-between">
<div class="flex items-center space-x-3">
<img src="https://picsum.photos/50/51" alt="Product Image" class="w-12 h-12 rounded-md shadow-md" />
<div>
<h3 class="text-lg text-white">Product Name 2</h3>
<p class="text-sm text-gray-400">$30.00</p>
</div>
</div>
<button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-1 px-3 rounded-md">Add to Cart</button>
</li>
<li class="bg-gray-700 dark:bg-gray-800 p-3 rounded-md flex items-center justify-between">
<div class="flex items-center space-x-3">
<img src="https://picsum.photos/50/52" alt="Product Image" class="w-12 h-12 rounded-md shadow-md" />
<div>
<h3 class="text-lg text-white">Product Name 3</h3>
<p class="text-sm text-gray-400">$40.00</p>
</div>
</div>
<button class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-1 px-3 rounded-md">Add to Cart</button>
</li>
</ul>
</div>
</div>
관련 구성 요소
위시리스트 컴포넌트
레트로/빈티지 미학으로 디자인된 반응형 위시리스트 구성 요소로, 트라이어딕 색 구성표와 다크 모드 지원을 특징으로 하여 작업이나 제품을 전시하는 데 이상적입니다.
위시리스트 컴포넌트
3D 요소와 파스텔 색상이 있는 반응형 위시리스트 구성 요소로, 어두운 테마를 지원합니다. 여기에는 전자 상거래에 적합한 여러 대화형 요소가 포함되어 있습니다. JavaScript는 없으며 HTML 및 Tailwind CSS 만 있습니다.