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-06 17:47:26 +02:00
|
|
|
import { resources } from "@lib/resources.ts";
|
2023-08-08 11:03:20 +02:00
|
|
|
import { RedirectSearchHandler } from "@islands/Search.tsx";
|
|
|
|
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 (
|
|
|
|
<>
|
2023-08-08 11:03:20 +02:00
|
|
|
<RedirectSearchHandler />
|
|
|
|
<KMenu type="main" context={false} />
|
2023-07-30 21:43:09 +02:00
|
|
|
<MainLayout url={props.url}>
|
2025-01-18 01:09:01 +01:00
|
|
|
<h1 class="text-4xl mb-4 mt-3 text-white flex gap-2">
|
|
|
|
<img src="/favicon.png" class="w-8 h-8 inline" />
|
|
|
|
Resources
|
|
|
|
</h1>
|
2023-08-12 18:32:56 +02:00
|
|
|
<div class="flex flex-wrap items-center gap-4">
|
|
|
|
{Object.values(resources).filter((v) => v.link !== "/").map((m) => {
|
2023-08-02 01:58:03 +02:00
|
|
|
return (
|
|
|
|
<Card
|
2023-08-09 15:20:14 +02:00
|
|
|
title={`${m.name}`}
|
|
|
|
backgroundSize={80}
|
|
|
|
image={`${
|
|
|
|
m.emoji.endsWith(".png")
|
|
|
|
? `/emojis/${encodeURIComponent(m.emoji)}`
|
|
|
|
: "/placeholder.svg"
|
|
|
|
}`}
|
2023-08-02 01:58:03 +02:00
|
|
|
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
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|