feat: better layout in a lot of places

This commit is contained in:
2023-08-02 01:58:03 +02:00
parent ff3e7f6667
commit 3cfa2274a8
23 changed files with 208 additions and 110 deletions

View File

@ -1,4 +1,5 @@
import { ComponentChildren } from "preact";
import { menu } from "@lib/menus.ts";
export type Props = {
children: ComponentChildren;
@ -9,25 +10,6 @@ export type Props = {
};
export const MainLayout = ({ children, url }: Props) => {
const menu = [
{
name: "🏡 Home",
link: "/",
},
{
name: "🍽️ Recipes",
link: "/recipes",
},
{
name: "🍿 Movies",
link: "/movies",
},
{
name: "📝 Articles",
link: "/articles",
},
];
return (
<div
class="md:grid mx-auto"