move things around

This commit is contained in:
Chris Wanstrath 2025-07-28 09:54:31 -07:00
parent 4d7041f2b1
commit 2613e241fa
5 changed files with 12 additions and 2 deletions

View File

@ -12,7 +12,7 @@ export function Layout({ children, title }: LayoutProps) {
<meta name="color-scheme" content="light dark" />
<meta charset="utf-8" />
<link rel="stylesheet" href="/css/pico.fuchsia.css" />
<link rel="stylesheet" href="/css/main.css" />
<link rel="stylesheet" href="/src/css/main.css" />
</head>
<body>
<main>

View File

@ -46,7 +46,7 @@ export function Project({ name, readme, files }: ProjectProps) {
</div>
</div>
</div>
<script src="/js/project.js"></script>
<script src="/src/js/project.js"></script>
</>
)
}

View File

@ -13,8 +13,18 @@ const WORKSHOP_REPO = "https://github.com/probablycorey/the-rabbit-hole"
const CUBBY_DIR = "./cubby"
const app = new Hono()
app.use("*", async (c, next) => {
const start = Date.now()
await next()
const end = Date.now()
console.log(`${c.req.method} ${c.req.url} - ${c.res.status} (${end - start}ms)`)
})
app.use('/css/*', serveStatic({ root: './public' }))
app.use('/js/*', serveStatic({ root: './public' }))
app.use('/src/css/*', serveStatic({ root: '.' }))
app.use('/src/js/*', serveStatic({ root: '.' }))
async function projects(): Promise<string[]> {
const subdirs = readdirSync(PROJECTS_DIR, { withFileTypes: true })