move things around
This commit is contained in:
parent
4d7041f2b1
commit
2613e241fa
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user