From 2799da6cbbc63a8c146c84e04922869a40687ef7 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 4 Jan 2024 09:18:38 -0800 Subject: feat(tools): move all to cards --- src/app.css | 6 ++ src/lib/Tools/EpisodeDiscussionCollector.svelte | 4 +- src/lib/Tools/RandomFollower.svelte | 14 ++-- src/lib/Tools/SequelSpy.svelte | 8 +-- src/routes/tools/+page.svelte | 88 +++++++++++++------------ 5 files changed, 66 insertions(+), 54 deletions(-) (limited to 'src') diff --git a/src/app.css b/src/app.css index 7af85dbe..3e602dc1 100644 --- a/src/app.css +++ b/src/app.css @@ -110,3 +110,9 @@ button:active { .button-lined { transform: translateY(0.175em); } + +.card { + background-color: var(--base001); + padding: 1rem; + border-radius: 4px; +} diff --git a/src/lib/Tools/EpisodeDiscussionCollector.svelte b/src/lib/Tools/EpisodeDiscussionCollector.svelte index 98b426a7..447333a8 100644 --- a/src/lib/Tools/EpisodeDiscussionCollector.svelte +++ b/src/lib/Tools/EpisodeDiscussionCollector.svelte @@ -64,5 +64,7 @@

{/await} {:else} -

Enter a username to search for to continue.

+

+ + Enter a username to search for to continue. {/if} diff --git a/src/lib/Tools/RandomFollower.svelte b/src/lib/Tools/RandomFollower.svelte index 5b9a2319..88c1bd85 100644 --- a/src/lib/Tools/RandomFollower.svelte +++ b/src/lib/Tools/RandomFollower.svelte @@ -43,14 +43,16 @@ {:then users} {@const user = users[Math.floor(randomSeed * users.length)]} -

- - {user.name} - -

+

+ + + {user.name} + {:catch} {/await} {:else} -

Enter a username to search for to continue.

+

+ + Enter a username to search for to continue. {/if} diff --git a/src/lib/Tools/SequelSpy.svelte b/src/lib/Tools/SequelSpy.svelte index 5684463f..c5d9c4a2 100644 --- a/src/lib/Tools/SequelSpy.svelte +++ b/src/lib/Tools/SequelSpy.svelte @@ -85,9 +85,9 @@ {/await} -

- The count ratio is the number of episodes you've seen of any direct prequels, and the total number - of episodes of all direct prequels. -

+

+ +The count ratio is the number of episodes you've seen of any direct prequels, and the total number +of episodes of all direct prequels. diff --git a/src/routes/tools/+page.svelte b/src/routes/tools/+page.svelte index e677d183..4d2da5cf 100644 --- a/src/routes/tools/+page.svelte +++ b/src/routes/tools/+page.svelte @@ -69,54 +69,56 @@ -{#if !Object.keys(tools).includes(tool)} - +

+ {#if !Object.keys(tools).includes(tool)} + -

Tool not found.

+

Tool not found.

-
- Did you mean " (tool = suggestion)} - > - {suggestion === '...' ? '...' : tools[suggestion]}"? -
-{:else} - +
+ Did you mean " (tool = suggestion)} + > + {suggestion === '...' ? '...' : tools[suggestion]}"? +
+ {:else} + - {#if tool === 'default'} -

Select a tool to continue.

+ {#if tool === 'default'} +

Select a tool to continue.

-
    - {#each Object.keys(tools) as t} - {#if t !== 'default'} -
  • - (tool = t)}>{tools[t].name} - {#if tools[t].description} -
    {tools[t].description}
    - {/if} -
  • - {/if} - {/each} -
+
    + {#each Object.keys(tools) as t} + {#if t !== 'default'} +
  • + (tool = t)}>{tools[t].name} + {#if tools[t].description} +
    {tools[t].description}
    + {/if} +
  • + {/if} + {/each} +
+ +

-

Have any requests for cool tools that you think others might find useful? Send a message to @fuwn on AniList! -

- {:else if tool === 'activity_history'} - - {:else if tool === 'wrapped'} - - {:else if tool === 'discussions'} - - {:else if tool === 'birthdays'} - - {:else if tool === 'sequel_spy'} - - {:else if tool === 'random_follower'} - + {:else if tool === 'activity_history'} + + {:else if tool === 'wrapped'} + + {:else if tool === 'discussions'} + + {:else if tool === 'birthdays'} + + {:else if tool === 'sequel_spy'} + + {:else if tool === 'random_follower'} + + {/if} {/if} -{/if} +
-- cgit v1.2.3