export default function(req: Request): Response {
const css = `
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(to right, #ff7e5f, #feb47b);
margin: 0;
font-family: 'Arial', sans-serif;
}
h1 {
font-size: 4rem;
color: white;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
`;
const html = `
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>${css}</style>
<title>Hello World</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
`;
return new Response(html, {
headers: { "Content-Type": "text/html" },
});
}