aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-12-18 22:52:39 -0800
committerFuwn <[email protected]>2023-12-18 22:52:39 -0800
commit118d84be7a49c1562313216e736c643c13ba7283 (patch)
treef61f87838726c1b6f5b4f955e5b762f1bdfc49d9
parentfix(layout): mobile hover header (diff)
downloaddue.moe-118d84be7a49c1562313216e736c643c13ba7283.tar.xz
due.moe-118d84be7a49c1562313216e736c643c13ba7283.zip
feat(layout): smaller desktop navigation bar
-rw-r--r--src/routes/+layout.svelte27
1 files changed, 11 insertions, 16 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index ee826f28..2a0862e0 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -47,22 +47,6 @@
</div>
{:else}
<div id="header">
- <p />
-
- <h1><a href="/">期限</a></h1>
-
- {#if data.user === undefined}
- <a
- href={`https://anilist.co/api/v2/oauth/authorize?client_id=${env.PUBLIC_ANILIST_CLIENT_ID}&redirect_uri=${env.PUBLIC_ANILIST_REDIRECT_URI}&response_type=code`}
- >
- Log in with AniList
- </a>
- {:else}
- <a href="/api/authentication/log-out">Log out from AniList ({currentUserIdentity.name})</a>
- {/if}
-
- <p />
-
<p id="desktop-navigation-bar">
「 <a href="/">Home</a> • <a href="/completed">Completed</a> •
<a href="/schedule">Anime Schedule</a> •
@@ -70,6 +54,17 @@
<a href="/tools">Tools</a> • {#if data.user}
<a href={`/user/${currentUserIdentity.name}`}>Profile</a> •
{/if} <a href="/settings">Settings</a> 」
+
+ {#if data.user === undefined}
+ <a
+ href={`https://anilist.co/api/v2/oauth/authorize?client_id=${env.PUBLIC_ANILIST_CLIENT_ID}&redirect_uri=${env.PUBLIC_ANILIST_REDIRECT_URI}&response_type=code`}
+ >
+ Log in with AniList
+ </a>
+ {:else}
+ <a href="/api/authentication/log-out">Log out from AniList ({currentUserIdentity.name})</a
+ >
+ {/if}
</p>
<div id="mobile-navigation-bar">