From c36bdb2158a7bebae9a16881ac477a3a2ee40b5d Mon Sep 17 00:00:00 2001 From: zapguilded <167898252+zapguilded@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:35:07 +0000 Subject: [PATCH 1/7] progressfr --- src/app.html | 2 +- src/app.postcss | 7 ++ src/routes/(auth)/login/+page.svelte | 33 +++---- src/routes/(auth)/login/[userId]/+page.svelte | 86 ++++++------------ src/routes/+layout.svelte | 47 ++++------ src/routes/+page.svelte | 54 ++++++----- static/proof.png | Bin 0 -> 4566 bytes 7 files changed, 100 insertions(+), 129 deletions(-) create mode 100644 static/proof.png diff --git a/src/app.html b/src/app.html index e31c74e..19b1e28 100644 --- a/src/app.html +++ b/src/app.html @@ -6,7 +6,7 @@ %sveltekit.head% - +
%sveltekit.body%
diff --git a/src/app.postcss b/src/app.postcss index fb368c8..67ffc03 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -1,3 +1,5 @@ +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap'); + @tailwind base; @tailwind components; @tailwind utilities; @@ -8,6 +10,7 @@ html, body { @apply h-full; + font-family: 'Inter'; } @font-face { @@ -19,3 +22,7 @@ body { --theme-font-family-base: 'Inter', sans-serif; --theme-font-family-heading: 'Inter', sans-serif; } + +.inter { + font-family: 'Inter'; +} diff --git a/src/routes/(auth)/login/+page.svelte b/src/routes/(auth)/login/+page.svelte index dca7f3f..4337c70 100644 --- a/src/routes/(auth)/login/+page.svelte +++ b/src/routes/(auth)/login/+page.svelte @@ -56,28 +56,18 @@ }); -
+
{#if message}

{message}

{/if} -

Link Guilded

+

Link Guilded

- We need to verify your identity! Please complete following steps to confirm your - identity: + in order to verify your identity, Please input your Username or ID below.

-
    -
  1. - Make sure you are signed in to Guilded with the Guilded account - you choose on this page. -
  2. -
  3. - Why do we need you to do this? Read Here. -
  4. -
-
- +
+
-
+
{#each users as user}
-

Or

+
OR
+ - +
diff --git a/src/routes/(auth)/login/[userId]/+page.svelte b/src/routes/(auth)/login/[userId]/+page.svelte index e6a64ac..efaeeb6 100644 --- a/src/routes/(auth)/login/[userId]/+page.svelte +++ b/src/routes/(auth)/login/[userId]/+page.svelte @@ -1,58 +1,30 @@ - - -
-

Are you really who you say you are?

-

- We need to verify your identity! Please complete following steps to confirm your - identity: -

-
    -
  1. - Go to Your Profile -
  2. -
  3. - Make sure you are signed in to the account you chose on the previous page and click on "Write a post" -
  4. -
  5. - Make the title of the post - - {data.userAuthToken} - - - . You can fill the body with anything! (Flex being a cool cardboard user!) -
  6. -
  7. - Click "Post" and then press "Check" over here. -
  8. -
-
- -
-
+export default { + darkMode: 'class', // <-- + content: [ + './src/**/*.{html,js,svelte,ts}', + join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}') + ], + theme: { + extend: {} + }, + plugins: [ + forms, + typography, + skeleton({ + themes: { + preset: [ + { + name: 'crimson', + enhancements: true + } + ] + } + }) + ] +} satisfies Config; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 8dcf949..9dc7154 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,6 +3,19 @@ import { beforeNavigate } from '$app/navigation'; import { updated } from '$app/stores'; + import { onNavigate } from '$app/navigation'; + + onNavigate((navigation) => { + if (!document.startViewTransition) return; + + return new Promise((resolve) => { + document.startViewTransition(async () => { + resolve(); + await navigation.complete; + }); + }); + }); + beforeNavigate(({ willUnload, to }) => { if ($updated && !willUnload && to?.url) { location.href = to.url.href; @@ -76,14 +89,17 @@
- Link Guilded + Link Guilded {/if} {#if $page.data.user} @@ -215,7 +208,7 @@ {#if $page.data.user} -
- +
diff --git a/src/routes/(protected)/settings/your-apps/new/+page.svelte b/src/routes/(protected)/settings/your-apps/new/+page.svelte index 84fb3bf..fe50e88 100644 --- a/src/routes/(protected)/settings/your-apps/new/+page.svelte +++ b/src/routes/(protected)/settings/your-apps/new/+page.svelte @@ -4,9 +4,9 @@ const { form, errors, constraints } = superForm(data.form); -

Create an app

+

Create an app

-
- {#if !$page.data.user} - - -
-
-
-
Mode
- -
-
-
-
Link Guilded - {/if} - {#if $page.data.user} - {$page.data.user.displayName} + {$page.data.user.displayName}
- + + +
{/if}
@@ -208,43 +127,51 @@ {#if $page.data.user} -
\ No newline at end of file diff --git a/src/routes/(protected)/settings/+page.svelte b/src/routes/(protected)/settings/+page.svelte index 210f5b2..4862edd 100644 --- a/src/routes/(protected)/settings/+page.svelte +++ b/src/routes/(protected)/settings/+page.svelte @@ -1,2 +1,2 @@ -

Welcome to settings!

+

Welcome to settings!

Choose an option from sidebar to get configuring! đŸ”Ĩ

diff --git a/src/routes/(protected)/settings/authorized-apps/+page.svelte b/src/routes/(protected)/settings/authorized-apps/+page.svelte index 9d55916..9fc430f 100644 --- a/src/routes/(protected)/settings/authorized-apps/+page.svelte +++ b/src/routes/(protected)/settings/authorized-apps/+page.svelte @@ -14,7 +14,7 @@ href={`/settings/authorized-apps/${appManager.app.id}`} class="card card-hover container bg-initial overflow-hidden flex flex-col w-[420px] justify-self-center" > -
+
User Banner -

+

{appManager.app.name}

-

Description

-

+

Description

+

{appManager.app.description}

-
+

-
- - Created By: {appManager.app.ownerUser.username} - - - Created At: {appManager.app.createdAt.toLocaleString()} +
+ + Creator: {appManager.app.ownerUser.username} {#if appManager.app.supportServer != ''} - - App Support: + Support Server{appManager.app.supportServer} + rel="noopener noreferrer"> + {/if}
@@ -70,4 +67,4 @@ {#if appManagers.length < 1}

You have no authorized apps.

{/if} -
+
\ No newline at end of file diff --git a/src/routes/(protected)/settings/authorized-apps/[id]/+page.svelte b/src/routes/(protected)/settings/authorized-apps/[id]/+page.svelte index 0851aa1..7bf824d 100644 --- a/src/routes/(protected)/settings/authorized-apps/[id]/+page.svelte +++ b/src/routes/(protected)/settings/authorized-apps/[id]/+page.svelte @@ -7,8 +7,8 @@
-

- Manage Your {appName?.name} Sessions +

+ Manage Your Sessions

@@ -23,7 +23,7 @@
{#if sessions.length === 0} -

+

You have no active sessions of {appName?.name}.

{:else} @@ -33,7 +33,7 @@
-
+
{app.id}