import { Hono } from 'hono' import { IndexPage, ProfileExamplesPage, ButtonExamplesPage, NavigationExamplesPage, FormExamplesPage } from './examples/ssr/pages' import { LandingPage } from './examples/ssr/landing' import { stylesToCSS } from './src' const app = new Hono() app.get('/', c => c.html()) app.get('/main.css', c => c.text(stylesToCSS(), 200, { 'Content-Type': 'text/css; charset=utf-8', })) app.get('/ssr', c => c.html()) app.get('/ssr/profile', c => c.html()) app.get('/ssr/buttons', c => c.html()) app.get('/ssr/navigation', c => c.html()) app.get('/ssr/form', c => c.html()) app.get('/styles', c => c.text(stylesToCSS())) app.get('/spa/*', async c => c.html(await Bun.file('./examples/spa/index.html').text())) app.get('/spa.js', async c => { const file = Bun.file('./dist/spa.js') return new Response(file, { headers: { 'Content-Type': 'application/javascript', }, }) }) export default { port: 3300, fetch: app.fetch, }