feat: enhance layout of search
This commit is contained in:
@@ -2,7 +2,7 @@ import { Head } from "$fresh/runtime.ts";
|
||||
import { MainLayout } from "@components/layouts/main.tsx";
|
||||
import { Card } from "@components/Card.tsx";
|
||||
import { PageProps } from "$fresh/server.ts";
|
||||
import { menu } from "@lib/menus.ts";
|
||||
import { resources } from "@lib/resources.ts";
|
||||
import { KMenu } from "@islands/KMenu.tsx";
|
||||
|
||||
export default function Home(props: PageProps) {
|
||||
@@ -14,10 +14,10 @@ export default function Home(props: PageProps) {
|
||||
<KMenu type="main" context={null} />
|
||||
<MainLayout url={props.url}>
|
||||
<div class="flex flex-wrap items-center gap-4 px-4">
|
||||
{menu.map((m) => {
|
||||
{Object.values(resources).map((m) => {
|
||||
return (
|
||||
<Card
|
||||
title={m.name}
|
||||
title={`${m.emoji} ${m.name}`}
|
||||
image="/placeholder.svg"
|
||||
link={m.link}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user