1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export default async (request: Request): Promise<Response> => {
return new Response(
/* html */ `<html>
<head>
<script type="module" src="https://esm.sh/@stefanjudis/sparkly-text"></script>
</head>
<body style="max-height:600px;max-width:475px;background-color:#f0f0f0;">
<sparkly-text
number-of-sparkles="5"
style="--sparkly-text-size: 2.5em"
>
Hello sparkles
</sparkly-text>
</body>
</html>`,
{ headers: { "Content-Type": "text/html" } },
);
};