mlmym/templates/root.html
2024-05-10 21:15:09 -04:00

29 lines
936 B
HTML

<!DOCTYPE html>
<head>
<title>mlmym</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
<link rel="stylesheet" href="/_/static/style.css?v=7">
{{- if or (not .Dark) (is .Dark) }}
<link rel="stylesheet" href="/_/static/dark.css?v={{ .Version }}" {{ if not .Dark }}media="(prefers-color-scheme:dark)"{{ end }}>
{{- end }}
</head>
<body>
<nav>
<div class="spacer"></div>
<span class="title">{{ .Title }}</span>
</nav>
<form class="root" method="POST">
<label>Enter a <a href="https://join-lemmy.org/instances" target="blank_">lemmy</a> domain or url
<div>
<input type="text" name="destination" autofocus>
<input type="submit" value="GO">
</div>
</label>
{{ if .Error }}
<div class="error">{{.Error}}</div>
{{ end }}
</form>
</body>
</html>