<div className="bg-white p-10 rounded-3xl shadow-sm ">
<div className="flex mb-5 justify-between items-center">
<span>⬅️</span>
<div className="space-x-3">
<span>⭐ 4.9</span>
<span className="shadow-xl p-2 rounded-md">❤️</span>
</div>
</div>
<div className="bg-zinc-400 h-72 mb-5" />
<div className="flex flex-col">
<span className="font-medium mb-1.5 text-xl">swoon lounge</span>
<span className="text-xs text-gray-500">chair</span>
<div className="mt-3 mb-5 flex justify-between items-center">
<div>
<input type="radio" />
<input type="radio" />
<input type="radio" />
</div>
<div className="flex items-center space-x-5">
<button className="p-1.5 rounded-lg bg-blue-200 flex justify-center items-center aspect-square w-8 text-xl text-gray-500">
-
</button>
<span>1</span>
<button className="p-1.5 rounded-lg bg-blue-200 flex justify-center items-center aspect-square w-8 text-xl text-gray-500">
+
</button>
</div>
</div>
</div>
<div className="flex justify-between items-center">
<span className="font-medium text-2xl">$450</span>
<button className="bg-blue-500 text-center py-2 px-8 text-sm text-white rounded-lg">Add to Cart</button>
</div>
</div>
</div>
aspect-square 은 정사각형 만들때 사용
'프로그래밍 > Html\Css' 카테고리의 다른 글
tailwind 스피너와 로딩스켈레톤추가 (0) | 2024.01.22 |
---|---|
tailwind 연습 1 (0) | 2023.12.20 |
[html]엔터디코드,이스케이핑문자 (0) | 2023.09.06 |
[CSS]display level 디스플레이 레벨 (0) | 2023.09.06 |