<template>
	<div class="bg-light-0 my-8 py-3 dark:bg-dark-0 top-0 z-40 w-96 lg:z-50 border-r border-light-30 dark:border-dark-30 flex flex-col justify-between">
		<div class="relative bottom-6 flex flex-1 flex-col gap-4 px-6">
			<div class="flex justify-between items-center">
				<NuxtLink class=" text-light-100 dark:text-dark-100 hover:text-opacity-70" aria-label="Accueil" :to="{ path: '/', force: true }"><ThemeIcon class="inline" icon="logo" :width=56 :height=56 /></NuxtLink>
				<div class="flex gap-4 items-center">
					<ThemeSwitch />
					<NuxtLink class="" :to="{ path: '/user/profile', force: true }"><ThemeIcon icon="user" :width=32 :height=32 /></NuxtLink>
				</div>
			</div>
			<div class="flex"><SearchView /></div>
			<NuxtLink class="px-6 text-lg tracking-wider flex items-center font-semibold text-light-100 dark:text-dark-100 hover:text-opacity-70" aria-label="Projets" :to="{ path: `/explorer`, force: true }">Projets</NuxtLink>
			<NuxtLink class="px-6 text-lg tracking-wider flex items-center font-semibold text-light-100 dark:text-dark-100 hover:text-opacity-70" aria-label="Editeur" :to="{ path: '/editing', force: true }">Editeur</NuxtLink>
			<hr class="border-light-35 dark:border-dark-35"/>
			<ExplorerNavigation></ExplorerNavigation>
		</div>
		<div class="text-center text-sm text-light-70 dark:text-dark-70">
			<NuxtLink class="hover:underline italic" :to="{ path: '/third-party', force: true }">Mentions légales</NuxtLink>
			<p>Copyright Peaceultime - 2024</p>
		</div>
	</div>
	<div class="flex-1 flex items-baseline overflow-auto">
		<slot></slot>
	</div>
</template>