1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Respond with fun HTML content and silly gradients on every HTTP request
export default async function(req: Request): Promise<Response> {
const htmlContent = `
<html>
<head>
<style>
body {
background: linear-gradient(to right, #ff758c, #ff7eb3);
font-family: Arial, sans-serif;
text-align: center;
padding: 50px;
}
h1 {
color: #fff;
font-size: 3rem;
text-shadow: 2px 2px 4px #000;
}
p {
color: #fff;
font-size: 2rem;
}
</style>
</head>
<body>
<h1>This is a Silly Val</h1>
<p>Enjoy the crazy CSS and silly gradients!</p>
</body>
</html>
`;
return new Response(htmlContent, { headers: { "Content-Type": "text/html" } });
}