diff --git a/src/app.css b/src/app.css index ca5249bbd..9d073d05d 100644 --- a/src/app.css +++ b/src/app.css @@ -16,6 +16,12 @@ font-display: swap; } +@font-face { + font-family: 'InstrumentSerif'; + src: url('/assets/fonts/InstrumentSerif-Regular.ttf'); + font-display: swap; +} + html { word-break: break-word; } @@ -26,6 +32,10 @@ code { width: auto; } +.font-secondary { + font-family: 'InstrumentSerif', sans-serif; +} + math { margin-top: 1rem; } diff --git a/src/lib/components/common/SlideShow.svelte b/src/lib/components/common/SlideShow.svelte new file mode 100644 index 000000000..cf48b62b5 --- /dev/null +++ b/src/lib/components/common/SlideShow.svelte @@ -0,0 +1,39 @@ + + +{#each imageUrls as imageUrl, idx (idx)} +
+{/each} + + diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index c4700d264..5c2f3d179 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -9,6 +9,7 @@ import { generateInitialsImage, canvasPixelTest } from '$lib/utils'; import { page } from '$app/stores'; import { getBackendConfig } from '$lib/apis'; + import SlideShow from '$lib/components/common/SlideShow.svelte'; const i18n = getContext('i18n'); @@ -104,259 +105,248 @@ -{#if loaded} -
-
-
- logo +
+
+ + + + + + {#if loaded} +
+
+
+ logo +
-
-
-
- {#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false} -
-
-
- {$i18n.t('Signing in to {{WEBUI_NAME}}', { WEBUI_NAME: $WEBUI_NAME })} -
+
+
+ {#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false} +
+
+
+ {$i18n.t('Signing in to {{WEBUI_NAME}}', { WEBUI_NAME: $WEBUI_NAME })} +
-
- +
+ +
-
- {:else} -
-
{ - submitHandler(); - }} - > -
-
- {#if mode === 'signin'} - {$i18n.t(`Sign in to {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })} - {:else} - {$i18n.t(`Sign up to {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })} + {:else} +
+ { + submitHandler(); + }} + > +
+
+ {#if mode === 'signin'} + {$i18n.t(`Sign in to {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })} + {:else} + {$i18n.t(`Sign up to {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })} + {/if} +
+ + {#if mode === 'signup'} +
+ ⓘ {$WEBUI_NAME} + {$i18n.t( + 'does not make any external connections, and your data stays securely on your locally hosted server.' + )} +
{/if}
- {#if mode === 'signup'} -
- ⓘ {$WEBUI_NAME} - {$i18n.t( - 'does not make any external connections, and your data stays securely on your locally hosted server.' - )} -
- {/if} -
+ {#if $config?.features.enable_login_form} +
+ {#if mode === 'signup'} +
+
{$i18n.t('Name')}
+ +
+ {/if} - {#if $config?.features.enable_login_form} -
- {#if mode === 'signup'} -
-
{$i18n.t('Name')}
+
+
{$i18n.t('Email')}
-
- {/if} +
+
{$i18n.t('Password')}
-
-
{$i18n.t('Email')}
- -
- -
-
{$i18n.t('Password')}
- - -
-
- {/if} - - {#if $config?.features.enable_login_form} -
- - - {#if $config?.features.enable_signup} -
- {mode === 'signin' - ? $i18n.t("Don't have an account?") - : $i18n.t('Already have an account?')} - - +
+
+ {/if} + + {#if $config?.features.enable_login_form} +
+ + + {#if $config?.features.enable_signup} +
+ {mode === 'signin' + ? $i18n.t("Don't have an account?") + : $i18n.t('Already have an account?')} + + +
+ {/if} +
+ {/if} + + + {#if Object.keys($config?.oauth?.providers ?? {}).length > 0} +
+
+ {#if $config?.features.enable_login_form} + {$i18n.t('or')} + {/if} + +
+
+
+ {#if $config?.oauth?.providers?.google} + + {/if} + {#if $config?.oauth?.providers?.microsoft} + + {/if} + {#if $config?.oauth?.providers?.oidc} + {/if}
{/if} - - - {#if Object.keys($config?.oauth?.providers ?? {}).length > 0} -
-
- {#if $config?.features.enable_login_form} - {$i18n.t('or')} - {/if} -
-
- {#if $config?.oauth?.providers?.google} - - {/if} - {#if $config?.oauth?.providers?.microsoft} - - {/if} - {#if $config?.oauth?.providers?.oidc} - - {/if} -
- {/if} -
- {/if} +
+ {/if} +
-
-{/if} - - + {/if} +
diff --git a/static/assets/fonts/InstrumentSerif-Italic.ttf b/static/assets/fonts/InstrumentSerif-Italic.ttf new file mode 100644 index 000000000..32c6b8e4a Binary files /dev/null and b/static/assets/fonts/InstrumentSerif-Italic.ttf differ diff --git a/static/assets/fonts/InstrumentSerif-Regular.ttf b/static/assets/fonts/InstrumentSerif-Regular.ttf new file mode 100644 index 000000000..7efd9364c Binary files /dev/null and b/static/assets/fonts/InstrumentSerif-Regular.ttf differ diff --git a/static/assets/images/adam.jpg b/static/assets/images/adam.jpg new file mode 100644 index 000000000..2d637d000 Binary files /dev/null and b/static/assets/images/adam.jpg differ diff --git a/static/assets/images/earth.jpg b/static/assets/images/earth.jpg new file mode 100644 index 000000000..39e51d5d7 Binary files /dev/null and b/static/assets/images/earth.jpg differ diff --git a/static/assets/images/galaxy.jpg b/static/assets/images/galaxy.jpg new file mode 100644 index 000000000..b4560af0b Binary files /dev/null and b/static/assets/images/galaxy.jpg differ diff --git a/static/assets/images/space.jpg b/static/assets/images/space.jpg new file mode 100644 index 000000000..5e05a01c3 Binary files /dev/null and b/static/assets/images/space.jpg differ