adds dark mode (infopage only currently)
This commit is contained in:
parent
e6dc4475e6
commit
37ca98ad30
|
@ -61,8 +61,25 @@ export function renderPage(info: ServiceInfo) {
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
<title>${title}</title>
|
<title>${title}</title>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font-family: sans-serif;
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background-color: #222;
|
||||||
|
color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:link, a:visited {
|
||||||
|
color: #bbe;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body style="font-family: sans-serif; background-color: #f0f0f0; padding: 1em;">
|
<body>
|
||||||
${headerHtml}
|
${headerHtml}
|
||||||
<hr />
|
<hr />
|
||||||
<h2>Service Info</h2>
|
<h2>Service Info</h2>
|
||||||
|
|
Loading…
Reference in New Issue