diff --git a/frontend/src/Header.svelte b/frontend/src/Header.svelte index fedd7b2..30d5d22 100644 --- a/frontend/src/Header.svelte +++ b/frontend/src/Header.svelte @@ -1,5 +1,4 @@ - - - - - - - - - Open main menu - - - - - - - - - - - {#if isAniListLoggedIn} - AniList: {currentAniListUser.data.Viewer.name} - {:else} - - AniList - - {/if} - - - {#if isMALLoggedIn} - MAL: {currentMALUser.name} - {:else} - - MAL - - {/if} - - - {#if isSimklLoggedIn} - Simkl: {currentSimklUser.user.name} - {:else} - - Simkl - - {/if} - - - - - + + + + + + + + + + + { + let menu = document.querySelector("#navbar-user") + menu.classList.toggle("hidden") + }} type="button" + class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg min-[950px]:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600" + aria-controls="navbar-user" aria-expanded="false"> + Open main menu + + + + + + + + + {#if isAniListLoggedIn} + + AniList: {currentAniListUser.data.Viewer.name} + + {:else} + + AniList Login + + {/if} + + + {#if isMALLoggedIn} + + MyAnimeList: {currentMALUser.name} + + {:else} + + MyAnimeList Login + + {/if} + + + {#if isSimklLoggedIn} + + Simkl: {currentSimklUser.user.name} + + {:else} + + Simkl Login + + {/if} + + + + - - + + diff --git a/frontend/src/Search.svelte b/frontend/src/Search.svelte index 0f70788..e60b9fe 100644 --- a/frontend/src/Search.svelte +++ b/frontend/src/Search.svelte @@ -24,7 +24,7 @@ - + Find Anime