feat: add some more titles
This commit is contained in:
@ -15,7 +15,7 @@ export const handler: Handlers<Movie[] | null> = {
|
||||
|
||||
export default function Greet(props: PageProps<Movie[] | null>) {
|
||||
return (
|
||||
<MainLayout url={props.url}>
|
||||
<MainLayout url={props.url} title="Movies">
|
||||
<KMenu type="main" context={false} />
|
||||
<header class="flex gap-4 items-center mb-5 md:hidden">
|
||||
<a
|
||||
|
@ -19,9 +19,18 @@ export default function Greet(props: PageProps<Recipe>) {
|
||||
const portion = recipe.meta?.portion;
|
||||
const amount = useSignal(portion || 1);
|
||||
|
||||
const subline = [
|
||||
recipe?.meta?.time && `Duration ${recipe.meta.time}`,
|
||||
].filter(Boolean);
|
||||
|
||||
return (
|
||||
<MainLayout url={props.url} title={`Recipes > ${recipe.name}`}>
|
||||
<RecipeHero data={recipe} backlink="/recipes" />
|
||||
<RecipeHero
|
||||
data={recipe}
|
||||
backlink="/recipes"
|
||||
editLink={`https://notes.max-richter.dev/Recipes/${recipe.id}`}
|
||||
subline={subline}
|
||||
/>
|
||||
<div class="px-8 text-white mt-10">
|
||||
<div class="flex items-center gap-8">
|
||||
<h3 class="text-3xl my-5">Ingredients</h3>
|
||||
|
Reference in New Issue
Block a user