File size: 1,222 Bytes
026d8db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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>
  );
}