feur
This commit is contained in:
parent
8b6a86f17a
commit
3aea126342
14 changed files with 205 additions and 67 deletions
|
@ -4,11 +4,16 @@ import { jsx } from "https://deno.land/x/hono@v4.3.10/middleware.ts"
|
|||
import { BasePage } from "./components/base.tsx"
|
||||
import Main from "./components/main.tsx";
|
||||
import Heading from "./components/heading.tsx";
|
||||
import { get_user } from "../lib/auth.ts";
|
||||
import { Context } from "https://deno.land/x/hono@v4.3.10/mod.ts";
|
||||
import { FeurEnv } from "../main.ts";
|
||||
import { BlankInput } from "https://deno.land/x/hono@v4.3.10/types.ts";
|
||||
|
||||
export default function HomePage() {
|
||||
export default async function HomePage(context: Context<FeurEnv, string, BlankInput>) {
|
||||
const user = await get_user(context);
|
||||
return (
|
||||
<BasePage name="Home">
|
||||
<Heading></Heading>
|
||||
<Heading username={await user?.get("username") ?? null}></Heading>
|
||||
<Main>Main</Main>
|
||||
</BasePage>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue