<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>a·muse</title>
		<link rel="stylesheet" href="/static/style/style.css" />
		<link rel="icon" type="image/svg+xml" href="/static/img/logo.svg">
		<link rel="apple-touch-icon" type="image/svg+xml" href="/static/img/logo.svg">
	</head>
	<body>
		<header class="w12 padding-bottom-_25 flex flex-row flex-justify-space flex-align-centre">
			<a href="/" class="decoration-none">
				<h1 class="inline valign-mid text sans margin-lr-1">a·muse</h1>
			</a>
			<div class="margin-lr-1 text">
				{{ if .State.User.IsEmpty }}
				<a href="/login" class="decoration-none sans">{{.Strings.Global.log_in}}</a>
				—
				<a href="/signup" class="decoration-none sans">{{.Strings.Global.sign_up}}</a>
				{{ else }}
				<nav>
					<label for="hamburger" class="cursor-hand">
						<img src="/users/{{.State.User.Username}}/avatar?size=small" class="border-radius-25 width-1_5"/>
					</label>
					<input type="checkbox" id="hamburger" class="display-none" />
					<ul class="absolute right top-1 padding-lr-1 padding-tb-_5 bg align-right list-style-none sans">
						<!--<li><a href="/users/{{.State.User.Username}}" class="decoration-none text-accent">{{.Strings.Global.account}}</a><span class="material-icon padding-lr-_5">&#xe851;</span></li>-->
						<li><a href="/users/{{.State.User.Username}}/watchlist" class="decoration-none text-accent">{{.Strings.Global.watchlist}}</a><span class="material-icon padding-lr-_5">&#xe04a;</span></li>
						<li><a href="/users/{{.State.User.Username}}/tvqueue" class="decoration-none text-accent">{{.Strings.Global.tv_queue}}</a><span class="material-icon padding-lr-_5">&#xe1b2;</span></li>
						<li><a href="/users/{{.State.User.Username}}/readlist" class="decoration-none text-accent">{{.Strings.Global.readlist}}</a><span class="material-icon padding-lr-_5">&#xe431;</span></li>
						<li><a href="/users/{{.State.User.Username}}/experiences" class="decoration-none text-accent">{{.Strings.Global.experiences}}</a><span class="material-icon padding-lr-_5">&#xe042;</span></li>
						<li class="bg-error">
							<form action="/users/{{.State.User.Username}}/sessions/{{.State.User.Session}}" method="POST" class="inline">
								<input type="hidden" value="DELETE" name="method" />
								<input type="submit" value="{{.Strings.Global.log_out}}" class="border-none bg-none font-normal text-accent padding-lr-0 cursor-hand font-1" />
							</form><span class="material-icon padding-lr-_5">&#xe7ff;</span>
						</li>
					</ul>
				</nav>
				{{ end }}
			</div>
		</header>
		<main class="margin-lr-1">
			<div class="absolute move-centre sans font-3 w12 left border-box flex flex-row flex-wrap">
				{{.LetAmuse0}}
				<form action="/items/" method="get" class="phome-max-width-8 border-bottom inline margin-lr-1">
					<input autofocus type="search" name="q" placeholder="{{.Data}}" class="border-none text bg-none sans font-3 phone-max-width-20"/>
				</form>
				{{.LetAmuse1}}
			</div>
		</main>
		<footer class="absolute flex flex-centre bottom font-1_5 w12 margin-tb-1 flex-align-bottom">
			<a href="https://notabug.org/apiote/amuse" class="margin-lr-1 decoration-none" title="{{.Strings.Index.source_link_title}}">
				<span class="text-grey material-icon">&#xe86f</span>
			</a>
			<a href="/about" class="margin-lr-1 decoration-none" title="{{.Strings.Index.about_link_title}}">
				<span class="text-grey material-icon">&#xe88e</span>
			</a>
			<!-- here goes translation link -->
			<code class="margin-lr-1 font-_875 text-grey">v0.4.0</code>
		</footer>
	</body>
</html>
