diff --git a/components/Card.tsx b/components/Card.tsx index dcad4af..1ae3da3 100644 --- a/components/Card.tsx +++ b/components/Card.tsx @@ -9,6 +9,7 @@ export function Card( style={{ backgroundImage: `url(${image})`, backgroundSize: "cover", + //background: "#2B2930", }} class="text-white rounded-3xl shadow-md p-4 relative overflow-hidden lg:w-56 lg:h-56 @@ -23,7 +24,10 @@ export function Card( {title} -
+
); } diff --git a/components/RecipeHero.tsx b/components/RecipeHero.tsx index 6860989..0129e48 100644 --- a/components/RecipeHero.tsx +++ b/components/RecipeHero.tsx @@ -3,8 +3,9 @@ import { Recipe } from "@lib/recipes.ts"; import IconExternalLink from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/external-link.tsx"; import { Star } from "@components/Stars.tsx"; export function RecipeHero( - { data, backlink }: { + { data, subline, backlink }: { backlink: string; + subline?: string[]; data: { meta?: { image?: string; link?: string }; name: string }; }, ) { @@ -53,19 +54,32 @@ export function RecipeHero(
)} -
-

+
- {data.name} -

+

+ {data.name} +

- {data.meta?.rating && } + {data.meta?.rating && } +
+ {subline?.length && + ( +
+ {subline.map((s) => { + return {s}; + })} +
+ )}
); diff --git a/components/layouts/main.tsx b/components/layouts/main.tsx index cf8b3a4..1decd96 100644 --- a/components/layouts/main.tsx +++ b/components/layouts/main.tsx @@ -25,9 +25,12 @@ export const MainLayout = ({ children, url }: Props) => { ]; return ( -
+