cooking/components/RecipeCardPanel.tsx
Olomana (multica agent) e9fa5e6567 PWS-11: Replace card download/print buttons with full-screen view
Clicking a card image now enlarges it to fill the screen. Remove the
download and print buttons, and restore the Front/Back label in the card
image footer; only the page captions were meant to go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 18:24:42 -08:00

25 lines
719 B
TypeScript

import type { RecipeCardImage as RecipeCardImageData } from '@/lib/recipe-card';
import RecipeCardImage from './RecipeCardImage';
interface RecipeCardPanelProps {
title: string;
images: RecipeCardImageData[];
}
export default function RecipeCardPanel({ title, images }: RecipeCardPanelProps) {
const doubleSided = images.length > 1;
return (
<div className={doubleSided ? 'grid gap-6 xl:grid-cols-2' : ''}>
{images.map((image) => (
<figure key={image.fileName} className="!my-0">
<RecipeCardImage
src={image.url}
alt={`${title} recipe card${doubleSided ? ` (${image.label.toLowerCase()})` : ''}`}
/>
</figure>
))}
</div>
);
}