diff --git a/src/lib/layout/unauthenticated.svelte b/src/lib/layout/unauthenticated.svelte index ad877e9ca..042430c8f 100644 --- a/src/lib/layout/unauthenticated.svelte +++ b/src/lib/layout/unauthenticated.svelte @@ -28,15 +28,6 @@ 'kotlin', 'swift' ]; - - function onGithubLogin() { - sdkForConsole.account.createOAuth2Session( - 'github', - window.location.origin, - window.location.origin, - ['read:user', 'user:email'] - ); - }
@@ -160,14 +151,6 @@ -

Or sign in with:

- -
- -
- {#if isCloud}
Public beta
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 61f79194f..1c68b0541 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -149,4 +149,23 @@ border-right-color: hsl(var(--p-tooltip--bg-color)); } } + + .with-separators { + display: flex; + align-items: center; + gap: 1rem; + + text-transform: uppercase; + width: 100%; + + color: hsl(var(--color-neutral-100)); + + &::before, + &::after { + content: ''; + flex: 1; + height: 1px; + background: hsl(var(--color-neutral-200)); + } + } diff --git a/src/routes/cloud-beta-card/Card.svelte b/src/routes/cloud-beta-card/Card.svelte index 461a94d4c..b9f13a7e5 100644 --- a/src/routes/cloud-beta-card/Card.svelte +++ b/src/routes/cloud-beta-card/Card.svelte @@ -236,43 +236,12 @@ --center: ${$centerProximity}; `; - // Lifecycle - onMount(() => { - let cb: number | null = null; - const animate = () => { - if (active) return (cb = window.requestAnimationFrame(animate)); - - // Rotate - springRotate.update((old) => { - const step = old.x % 360 > 90 && old.x % 360 < 270 ? 0.5 : 0.25; - - return { - ...old, - x: old.x + step * 4, - y: 15 - }; - }); - - // Set glare opacity - springGlare.update((old) => ({ - ...old, - x: 50, - y: 50, - o: opacityFromDegree(old.x) - })); - - cb = window.requestAnimationFrame(animate); - }; - // animate(); - - return () => { - cb && window.cancelAnimationFrame(cb); - }; - }); - - const frontImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud?userId=${userId}`; - // const frontImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud?mock=employee`; - const backImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud-back?userId=${userId}`; + // const frontImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud?userId=${userId}`; + const frontImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud?mock=employee`; + // const frontImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud?mock=normal`; + // const backImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud-back?userId=${userId}`; + const backImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud-back?mock=golden`; + // const backImg = `${VARS.APPWRITE_ENDPOINT}/cards/cloud-back?mock=normal`; diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte index b2f488a90..1a965b836 100644 --- a/src/routes/login/+page.svelte +++ b/src/routes/login/+page.svelte @@ -37,6 +37,15 @@ trackError(error, Submit.AccountCreate); } } + + function onGithubLogin() { + sdkForConsole.account.createOAuth2Session( + 'github', + window.location.origin, + window.location.origin, + ['read:user', 'user:email'] + ); + } @@ -66,6 +75,13 @@ + or + + + diff --git a/src/routes/register/+page.svelte b/src/routes/register/+page.svelte index 1acbc0b1c..0d98bca58 100644 --- a/src/routes/register/+page.svelte +++ b/src/routes/register/+page.svelte @@ -37,6 +37,15 @@ trackError(error, Submit.AccountCreate); } } + + function onGithubLogin() { + sdkForConsole.account.createOAuth2Session( + 'github', + window.location.origin, + window.location.origin, + ['read:user', 'user:email'] + ); + } @@ -84,6 +93,13 @@ + or + + +