{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bozo Pong</title>
	<link rel="stylesheet" href="{% static 'css/bootstrap/bootstrap.min.css' %}">
</head>
<body data-bs-theme="dark">
	<nav class="navbar navbar-expand-lg bg-body-tertiary rounded m-2">
	<div class="container-fluid">
		<div class="navbar-nav d-flex flex-row gap-2">
			<a href="/" class="nav-link" data-link>Dashboard</a>
			<a data-i18n='navbarSearch' href="/search" class="nav-link" data-link>Search</a>
			<a data-i18n='navbarHome' href="/home" class="nav-link" data-link>Home</a>
		</div>
		<div class="navbar-nav justify-content-end d-flex flex-row gap-2">
			<div class='nav-item dropdown-center me-2'>
				<a class='nav-link dropdown-toggle' role='button' data-bs-toggle='dropdown'>
					Lang.
				</a>
				<div id='languageSelector' class='dropdown-menu dropdown-menu-end position-absolute text-center px-2' style='min-width: 65px'>
					<button value='en' type='button' class="dropdow-item nav-link text-center py-1">&#127468;&#127463; EN</a>
					<button value='fr' type='button' class="dropdow-item nav-link text-center py-1">&#127467;&#127479; FR</a>
				</div>
			</div>
			<div id='navbarLoggedOut' class='d-flex flex-row gap-2'>
				<a data-i18n='navbarLogin' href="/login" class="nav-link" data-link>Login</a>
				<a data-i18n='navbarRegister' href="/register" class="nav-link" data-link>Register</a>
			</div>
			<div id='navbarLoggedIn' class='d-none nav-item dropdown'>
				<a id='navbarDropdownButton' class='nav-link dropdown-toggle' href='#' role='button' data-bs-toggle='dropdown' aria-expanded='false'>
					Me
				</a>
				<div class='dropdown-menu dropdown-menu-end position-absolute text-end px-2' style='min-width: 100px'>
					<a data-i18n='navbarProfile' id='myProfileLink' href='' class="dropdow-item nav-link pt-1" data-link>My Profile</a>
					<a data-i18n='navbarSettings' href="/me" class="dropdow-item nav-link pt-0" data-link>Settings</a>
					<hr class='dropdown-separator my-auto mx-1'></hr>
					<a data-i18n='navbarLogout' href="/logout" class="dropdow-item nav-link pb-1" data-link>Logout</a>
				</div>
			</div>
		</div>
	</div>
	</nav>
	<div class="notice">
		<span id="popup"></span>
	</div>
	<div id="app" class="m-3"></div>
	<script type="module" src="{% static 'js/index.js' %}"></script>
	<script src="{% static 'js/bootstrap/bootstrap.bundle.min.js' %}"></script>
</body>
</html>
