mirror of
https://github.com/runyanjake/cooking.git
synced 2026-11-10 15:14:50 -08:00
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>
25 lines
719 B
TypeScript
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>
|
|
);
|
|
}
|