aboutsummaryrefslogtreecommitdiff
path: root/src/routes/tools
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-04 17:51:15 -0800
committerFuwn <[email protected]>2024-01-04 17:51:15 -0800
commit4ae25847a2c13a703babb90443efe536250d8156 (patch)
tree5682e97247df0c4c31c64e221ea21bdda5801f21 /src/routes/tools
parentfeat(schedule): details (diff)
downloaddue.moe-4ae25847a2c13a703babb90443efe536250d8156.tar.xz
due.moe-4ae25847a2c13a703babb90443efe536250d8156.zip
refactor(tools): better cards
Diffstat (limited to 'src/routes/tools')
-rw-r--r--src/routes/tools/+page.svelte43
1 files changed, 22 insertions, 21 deletions
diff --git a/src/routes/tools/+page.svelte b/src/routes/tools/+page.svelte
index 4d2da5cf..066ccd2f 100644
--- a/src/routes/tools/+page.svelte
+++ b/src/routes/tools/+page.svelte
@@ -69,10 +69,9 @@
</select>
</blockquote>
-<div class="card">
- {#if !Object.keys(tools).includes(tool)}
- <HeadTitle route="Tools" path="/tools" />
-
+{#if !Object.keys(tools).includes(tool)}
+ <HeadTitle route="Tools" path="/tools" />
+ <div class="card">
<p>Tool not found.</p>
<blockquote>
@@ -84,10 +83,12 @@
{suggestion === '...' ? '...' : tools[suggestion]}</a
>"?
</blockquote>
- {:else}
- <HeadTitle route={tools[tool].name} path={`/tools?tool=${tool}`} />
+ </div>
+{:else}
+ <HeadTitle route={tools[tool].name} path={`/tools?tool=${tool}`} />
- {#if tool === 'default'}
+ {#if tool === 'default'}
+ <div class="card">
<p>Select a tool to continue.</p>
<ul>
@@ -107,18 +108,18 @@
Have any requests for cool tools that you think others might find useful? Send a message to
<a href="https://anilist.co/user/fuwn" target="_blank" rel="noopener">@fuwn</a> on AniList!
- {:else if tool === 'activity_history'}
- <ActivityHistory user={data.user} />
- {:else if tool === 'wrapped'}
- <Wrapped user={data.user} />
- {:else if tool === 'discussions'}
- <EpisodeDiscussionCollector />
- {:else if tool === 'birthdays'}
- <CharacterBirthdays />
- {:else if tool === 'sequel_spy'}
- <SequelSpy user={data.user} />
- {:else if tool === 'random_follower'}
- <RandomFollower />
- {/if}
+ </div>
+ {:else if tool === 'activity_history'}
+ <ActivityHistory user={data.user} />
+ {:else if tool === 'wrapped'}
+ <Wrapped user={data.user} />
+ {:else if tool === 'discussions'}
+ <EpisodeDiscussionCollector />
+ {:else if tool === 'birthdays'}
+ <CharacterBirthdays />
+ {:else if tool === 'sequel_spy'}
+ <SequelSpy user={data.user} />
+ {:else if tool === 'random_follower'}
+ <RandomFollower />
{/if}
-</div>
+{/if}