mirror of
https://github.com/rjNemo/deno_hello
synced 2026-06-10 20:06:39 +00:00
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import { Locale } from "./src/repositories/locales.ts";
|
|
|
|
export const htmlBody = ({ locale: language, message: hello }: Locale) =>
|
|
`<!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}</h1>
|
|
<p>Language: ${language}</p>
|
|
</body>
|
|
</html>`;
|