export default async function main(): Promise<Response> {
const htmlContent = `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello World</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Permanent+Marker&display=swap');
body {
font-family: 'Caveat', cursive;
background: linear-gradient(45deg, #ff6ec4, #7873f5);
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
padding: 0;
color: white;
overflow: hidden;
}
h1 {
font-family: 'Permanent Marker', cursive;
font-size: 5rem;
text-shadow: 0 0 10px rgba(0,0,0,0.3);
animation: neon 1.5s infinite alternate;
}
@keyframes neon {
from {
text-shadow: 0 0 10px rgba(0,0,0,0.3), 0 0 20px rgba(0,0,0,0.3), 0 0 30px rgba(0,0,0,0.3), 0 0 40px #ff6ec4, 0 0 70px #ff6ec4, 0 0 80px #ff6ec4, 0 0 100px #ff6ec4, 0 0 150px #ff6ec4;
}
to {
text-shadow: 0 0 5px rgba(0,0,0,0.3), 0 0 10px rgba(0,0,0,0.3), 0 0 15px rgba(0,0,0,0.3), 0 0 20px #7873f5, 0 0 35px #7873f5, 0 0 40px #7873f5, 0 0 50px #7873f5, 0 0 75px #7873f5;
}
}
</style>
</head>
<body>
<h1>Hello, world!</h1>
</body>
</html>
`;
return new Response(htmlContent, {
headers: {
"Content-Type": "text/html",
},
});
}