From fae9cc81542effa61e8d13155bb090c3bc8c9e51 Mon Sep 17 00:00:00 2001 From: monoid Date: Thu, 26 Oct 2023 22:11:26 +0900 Subject: [PATCH] feat: better index css --- routes/index.tsx | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/routes/index.tsx b/routes/index.tsx index 0dfebab..6feee06 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -1,25 +1,21 @@ import { Head } from "$fresh/runtime.ts"; -import { useSignal } from "@preact/signals"; -import {Button} from "../components/Button.tsx"; -import { PageDescription, get_pages_meta } from "../pages.ts"; +import { get_pages_meta, PageDescription } from "../pages.ts"; import { Handlers, PageProps } from "$fresh/server.ts"; export const handler: Handlers = { - async GET(_req, ctx){ - const [pages,_] = await get_pages_meta(); + async GET(_req, ctx) { + const [pages, _] = await get_pages_meta(); return await ctx.render(pages); - } -} + }, +}; -export default function Home({data}: PageProps) { - const count = useSignal(3); - +export default function Home({ data }: PageProps) { return ( <> stock-front -
+
) {

Stock