Spaces:
Sleeping
Sleeping
Download components/StoreCard.jsx from ryeisi/anycoder-7491f760: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/spaces/ryeisi/anycoder-7491f760/resolve/main/components/StoreCard.jsx
- Command line
-
hf download hf://spaces/ryeisi/anycoder-7491f760/components/StoreCard.jsx
-
curl -L -o StoreCard.jsx https://huggingface.co/spaces/ryeisi/anycoder-7491f760/resolve/main/components/StoreCard.jsx
1.22 kB
| import Link from 'next/link'; | |
| export default function StoreCard({ store }) { | |
| return ( | |
| <div className="bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div className="p-4"> | |
| <div className="flex items-center mb-4"> | |
| <div className="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center overflow-hidden"> | |
| {store.logo ? ( | |
| <img src={store.logo} alt={store.name} className="w-full h-full object-contain" /> | |
| ) : ( | |
| <span className="text-gray-400 text-xl">{store.name.charAt(0)}</span> | |
| )} | |
| </div> | |
| <div className="ml-4"> | |
| <h3 className="font-semibold text-lg">{store.name}</h3> | |
| <span className="text-sm text-gray-500">{store.category}</span> | |
| </div> | |
| </div> | |
| <p className="text-gray-600 mb-4 line-clamp-2">{store.description}</p> | |
| <Link | |
| href={store.url} | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| className="block w-full text-center bg-primary text-white py-2 rounded-md hover:bg-primary-dark transition" | |
| > | |
| Visit Store | |
| </Link> | |
| </div> | |
| </div> | |
| ); | |
| } |