From 200186fe6870d1e48040fe58c182355fd9309073 Mon Sep 17 00:00:00 2001 From: Tirey Morris Date: Thu, 23 May 2024 18:31:44 -0500 Subject: [PATCH] stage2 --- public/styles/uno.css | 1 + src/server.tsx | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/public/styles/uno.css b/public/styles/uno.css index a7560e8..44668dd 100644 --- a/public/styles/uno.css +++ b/public/styles/uno.css @@ -23,6 +23,7 @@ .m-0{margin:0;} .h-8{height:2rem;} .flex{display:flex;} +.flex-col{flex-direction:column;} .cursor-pointer{cursor:pointer;} .items-center{align-items:center;} .justify-center{justify-content:center;} diff --git a/src/server.tsx b/src/server.tsx index 90288d3..c826312 100644 --- a/src/server.tsx +++ b/src/server.tsx @@ -1,14 +1,25 @@ import { Hono } from "hono"; import { serveStatic } from "hono/bun"; import { logger } from "hono/logger"; -import Layout from "./components/Layout.tsx"; const app = new Hono(); -// app.use("/styles/*", serveStatic({ root: "./public/" })); - +app.use("/styles/*", serveStatic({ root: "./public/" })); app.use("*", logger()); -app.get("/", (c) => c.text("Hello world!")); + +app.get("/", (c) => + c.html( + + + 🌊 hyperwave + + + +

🌊 welcome to hyperwave

+ + , + ), +); export default { port: process.env.PORT || 1234,