1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/** @jsxImportSource https://esm.sh/preact */
import { reactResponse } from "https://esm.town/v/moe/responses"
export default (req: Request) => {
const url = new URL(req.url)
const qp = url.searchParams.get("text")
// console.log(qp)
return reactResponse(
<html>
<head>
<title>Tailwind test</title>
<script src="https://cdn.tailwindcss.com" />
</head>
<body className="bg-sky-900 text-slate-100">
<div className="flex flex-col items-center justify-center h-screen">
<div className="text-3xl font-semibold">Hello world! {qp}</div>
</div>
</body>
</html>,
)
}