import { renderToString } from "npm:react-dom/server";
export default async function(req: Request) {
return new Response(
renderToString(
<html>
<head>
<title>is Lily Jordan online?</title>
</head>
<body>
{}
<main>
<div id="yes">
<h1>yes</h1>
{}
<p>
all systems normal
</p>
</div>
<div id="kinda">
<h1>kinda</h1>
{}
<p>
expect slow replies
</p>
</div>
<div id="no">
<h1>no</h1>
{}
<p>
I am offline and probably not responding to anything for a bit. if it's an emergency come find me
</p>
</div>
<script type="text/javascript" src="./index.js"></script>
</main>
</body>
</html>,
),
{
headers: {
"Content-Type": "text/html",
},
},
);
}
const itemStyle = {
padding: "10px",
color: "white",
backgroundColor: "#ff748d",
borderRadius: "20px",
textDecoration: "none",
boxShadow: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
};