startpage/templates/index.html

48 lines
1.3 KiB
HTML
Raw Normal View History

2022-05-08 14:32:13 +02:00
<!DOCTYPE html>
<html lang="{{ .Language }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Translate "Homepage" }}</title>
2022-09-05 14:17:07 +02:00
<link rel="stylesheet" type="text/css" href="/style.css" />
<style>
:root {
--bookmark-border-radius: {{ .Settings.BorderRadius }};
}
body {
background-color: {{ .Settings.Background }};
color: {{ .Settings.Foreground }};
}
</style>
2022-05-08 14:32:13 +02:00
</head>
<body>
2022-09-05 14:17:07 +02:00
<main id="main-container">
<a id="button" href="/customize">
<span class="material-icons">settings</span>
</a>
2022-05-08 14:32:13 +02:00
<section id="search">
<form method="post" action="/search">
2022-05-12 21:15:55 +02:00
<datalist id="bookmarks">
{{ range .Bookmarks }}
<option value="{{ .SmallLink }}">
{{ end }}
</datalist>
<input type="search" id="query" list="bookmarks" placeholder='{{ .Translate "Search" }}' name="query" autofocus><label title="search" for="submit"><span class="material-icons">search</span></label>
2022-05-08 14:32:13 +02:00
<input id="submit" type="submit" title="search">
</form>
</section>
<section id="bookmark-container">
{{ range .Bookmarks }}
{{ template "bookmark.html" . }}
{{ end }}
</section>
</main>
</body>
2022-09-05 14:17:07 +02:00
</html>