2023-07-26 13:47:01 +02:00
|
|
|
import { Head } from "$fresh/runtime.ts";
|
2023-07-30 18:27:45 +02:00
|
|
|
import { MainLayout } from "@components/layouts/main.tsx";
|
|
|
|
import { Card } from "@components/Card.tsx";
|
2023-07-30 21:43:09 +02:00
|
|
|
import { PageProps } from "$fresh/server.ts";
|
2023-08-02 01:58:03 +02:00
|
|
|
import { menu } from "@lib/menus.ts";
|
2023-08-04 22:35:25 +02:00
|
|
|
import { KMenu } from "@islands/KMenu.tsx";
|
2023-07-26 13:47:01 +02:00
|
|
|
|
2023-07-30 21:43:09 +02:00
|
|
|
export default function Home(props: PageProps) {
|
2023-07-26 13:47:01 +02:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Head>
|
|
|
|
<title>app</title>
|
|
|
|
</Head>
|
2023-08-04 22:35:25 +02:00
|
|
|
<KMenu type="main" context={null} />
|
2023-07-30 21:43:09 +02:00
|
|
|
<MainLayout url={props.url}>
|
2023-08-02 01:58:03 +02:00
|
|
|
<div class="flex flex-wrap items-center gap-4 px-4">
|
|
|
|
{menu.map((m) => {
|
|
|
|
return (
|
|
|
|
<Card
|
|
|
|
title={m.name}
|
|
|
|
image="/placeholder.svg"
|
|
|
|
link={m.link}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
})}
|
2023-07-26 13:47:01 +02:00
|
|
|
</div>
|
2023-07-30 18:27:45 +02:00
|
|
|
</MainLayout>
|
2023-07-26 13:47:01 +02:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|