diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 4a075f587c..37c4267e67 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -60,12 +60,20 @@ * Handle initial load. */ if (!$page.url.pathname.startsWith('/auth')) { - const acceptedRoutes = ['/login', '/register', '/recover', '/invite', '/card']; + const acceptedRoutes = [ + '/login', + '/register', + '/recover', + '/invite', + '/card', + '/hackathon' + ]; if ($user) { if ( !$page.url.pathname.startsWith('/console') && !$page.url.pathname.startsWith('/invite') && - !$page.url.pathname.startsWith('/card') + !$page.url.pathname.startsWith('/card') && + !$page.url.pathname.startsWith('/hackathon') ) { await goto(`${base}/console`, { replaceState: true diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index d16bd6216d..72d08d69e3 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -32,7 +32,8 @@ export const load: LayoutLoad = async ({ depends, url }) => { '/auth/magic-url', '/auth/oauth2/success', '/auth/oauth2/failure', - '/card' + '/card', + '/hackathon' ]; if (!acceptedRoutes.some((n) => url.pathname.startsWith(n))) { diff --git a/src/routes/card/[uid]/+page.svelte b/src/routes/card/[uid]/+page.svelte index 5b32df8191..040459bbc5 100644 --- a/src/routes/card/[uid]/+page.svelte +++ b/src/routes/card/[uid]/+page.svelte @@ -100,29 +100,12 @@
- {#if variant === 'owner'} -
- - Cloud Beta hoodies - Cloud Beta hoodies -
- {/if}
-
-

Cloud is live in public

-

Beta

-
-

- {#if variant === 'owner'} - Share your Cloud card for a chance to win an exclusive Cloud hoodie! - {:else} - Create your Cloud account and unlock your exclusive card! - {/if} -

+ {#if variant === 'owner'} +

Share your card

+ {:else if variant === 'external'} +

Share card

+ {/if} {#if variant === 'external'}
The front of the card -