mirror of
https://github.com/rjNemo/deno_hello
synced 2026-06-06 01:56:40 +00:00
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
export const htmlBody = (content: string) =>
|
|
`<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<style>
|
|
body {
|
|
max-width: 650px;
|
|
margin: 40px auto;
|
|
padding: 0 10px;
|
|
font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
color: #444
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
line-height: 1.2
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
color: white;
|
|
background: #444
|
|
}
|
|
|
|
a:link {
|
|
color: #5bf
|
|
}
|
|
|
|
a:visited {
|
|
color: #ccf
|
|
}
|
|
}
|
|
</style>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<meta name="description" content="Simple client for Hello deno back end">
|
|
<title>Hello client</title>
|
|
</head>
|
|
<body>
|
|
<h1>Hello client</h1>
|
|
<pre id="result">${content}</pre>
|
|
</body>
|
|
</html>`;
|