async function server(request: Request): Promise<Response> {
return new Response(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unga Bunga Bezier Magic</title>
<style>
body {
font-family: 'Comic Sans MS', cursive, sans-serif;
background-color: #f0e6d2;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="10" y="50" font-size="50">🦴</text></svg>');
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px;
box-sizing: border-box;
}
.container {
background-color: #d2b48c;
border: 8px solid #8b4513;
border-radius: 15px;
padding: 20px;
text-align: center;
max-width: 500px;
width: 100%;
box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
h1 {
color: #8b4513;
font-size: 28px;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
#curve {
background-color: #fff;
border: 4px solid #8b4513;
border-radius: 10px;
margin-bottom: 20px;
}
.sliders {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 20px;
}
.slider {
display: flex;
align-items: center;
justify-content: space-between;
}
.slider label {
flex: 1;
text-align: right;
margin-right: 10px;
font-weight: bold;
color: #5a3d2b;
}
.slider input {
flex: 2;
}
.explanation {
font-size: 16px;
color: #5a3d2b;
margin-bottom: 20px;
}
.source-link {
color: #8b4513;
text-decoration: none;
font-weight: bold;
}
.source-link:hover {
text-decoration: underline;
}
.easter-egg {
font-size: 24px;
cursor: pointer;
user-select: none;
}
#cssOutput {
background-color: #fff;
border: 2px solid #8b4513;
border-radius: 5px;
padding: 10px;
margin-top: 10px;
font-family: monospace;
white-space: pre-wrap;
}
#opacityDemo {
font-size: 48px;
margin: 20px 0;
}
</style>
</head>
<body>
<div class="container">
<h1>Unga Bunga Bezier Magic <span class="easter-egg" onclick="this.textContent = cavePaint()">🪨</span></h1>