{% 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' %}">
	<link rel="stylesheet" href="{% static 'css/index.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 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">
			<div class='nav-item dropdown-center me-2'>
				<a id='languageDisplay' 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'>
					<button value='en' type='button' class="dropdown-item nav-link text-center py-1">🇬🇧 EN</button>
					<button value='fr' type='button' class="dropdown-item nav-link text-center py-1">🇫🇷 FR</button>
					<button value='tp' type='button' class="dropdown-item nav-link text-center py-1">🗣️👍🖼️❤️  toki pona</button>
					<button value='cr' type='button' class="dropdown-item nav-link text-center py-1" style="background-image: url(https://image.noelshack.com/fichiers/2023/06/1/1675686620-full.png); background-size: cover; background-position: center; background-repeat: no-repeat; background-color: transparent;">Crampté</button>
				</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' 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: max-content;'>
					<a data-i18n='navbarProfile' id='myProfileLink' href='' class="dropdow-item nav-link pt-1" data-link>My Profile</a>
					<a data-i18n='navbarSettings' href="/settings" 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 id="app" class="m-3"></div>
	<div class='toast-container position-fixed bottom-0 end-0 p-3' id='toastContainer'>
	</div>
	<script type="module" src="{% static 'js/index.js' %}"></script>
	<script src="{% static 'js/bootstrap/bootstrap.bundle.min.js' %}"></script>
</body>
</html>
