feat: Introduce new coffee shop images and remove tRPC integration.

This commit is contained in:
2025-12-05 01:58:49 -05:00
parent e56554b4ee
commit 97bcf5e61c
28 changed files with 26 additions and 379 deletions

View File

@@ -43,7 +43,13 @@ export default function Drawer({ shop, onClose }: DrawerProps) {
{/* Header Image */}
<div className="h-56 relative flex-shrink-0 bg-muted/20">
{imageLoading && (
<div className="absolute inset-0 z-10 flex items-center justify-center">
<div
className="absolute inset-0 z-10 flex items-center justify-center"
style={{
maskImage: 'linear-gradient(to bottom, black 50%, transparent 100%)',
WebkitMaskImage: 'linear-gradient(to bottom, black 50%, transparent 100%)'
}}
>
<Skeleton className="h-full w-full absolute inset-0" />
<Coffee className="h-12 w-12 text-muted-foreground/50 animate-pulse relative z-20" />
</div>

View File

@@ -22,8 +22,9 @@ interface CoffeeShop {
interface MapLoaderProps {
shops: CoffeeShop[];
onShopSelect: (shop: CoffeeShop) => void;
selectedShop: CoffeeShop | null;
}
export default function MapLoader({ shops, onShopSelect }: MapLoaderProps) {
return <Map shops={shops} onShopSelect={onShopSelect} />;
export default function MapLoader({ shops, onShopSelect, selectedShop }: MapLoaderProps) {
return <Map shops={shops} onShopSelect={onShopSelect} selectedShop={selectedShop} />;
}