fix(all) Добавил раздачу картинок через бекенд
This commit is contained in:
@@ -20,22 +20,7 @@ export default function CardItem({ item, onAddToCart }) {
|
||||
return (
|
||||
<div className="flex flex-col text-white w-full">
|
||||
<div className="w-full rounded-md overflow-hidden bg-slate-800/60 flex flex-col h-100 items-center justify-center border border-slate-700/50 select-none">
|
||||
<svg
|
||||
className="w-12 h-12 text-slate-600 mb-2"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={1.5}
|
||||
d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 002-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"
|
||||
/>
|
||||
</svg>
|
||||
<span className="text-xs text-slate-500 font-medium uppercase tracking-wider">
|
||||
Изображение товара
|
||||
</span>
|
||||
<img src={item.avatar_url} alt={item.name} className="object-cover" />
|
||||
</div>
|
||||
|
||||
{/* Блок с информацией о товаре */}
|
||||
|
||||
Reference in New Issue
Block a user