refac: styling

This commit is contained in:
Timothy J. Baek 2024-11-03 02:00:31 -08:00
parent 330ad0131c
commit dbf14afa32
2 changed files with 4 additions and 19 deletions

View File

@ -422,7 +422,6 @@ OAUTH_ADMIN_ROLES = PersistentConfig(
) )
def load_oauth_providers(): def load_oauth_providers():
OAUTH_PROVIDERS.clear() OAUTH_PROVIDERS.clear()
if GOOGLE_CLIENT_ID.value and GOOGLE_CLIENT_SECRET.value: if GOOGLE_CLIENT_ID.value and GOOGLE_CLIENT_SECRET.value:

View File

@ -119,20 +119,6 @@
</div> </div>
<div class=" bg-white dark:bg-gray-950 min-h-screen w-full flex justify-center font-primary"> <div class=" bg-white dark:bg-gray-950 min-h-screen w-full flex justify-center font-primary">
<!-- <div class="hidden lg:flex lg:flex-1 px-10 md:px-16 w-full bg-yellow-50 justify-center">
<div class=" my-auto pb-16 text-left">
<div>
<div class=" font-semibold text-yellow-600 text-4xl">
{$i18n.t('Get up and running with')} <br /> {$i18n.t('large language models, locally.')}
</div>
<div class="mt-2 text-yellow-600 text-xl">
{$i18n.t('Run Llama 2, Code Llama, and other models. Customize and create your own.')}
</div>
</div>
</div>
</div> -->
<div class="w-full sm:max-w-md px-10 min-h-screen flex flex-col text-center"> <div class="w-full sm:max-w-md px-10 min-h-screen flex flex-col text-center">
{#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false} {#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false}
<div class=" my-auto pb-10 w-full"> <div class=" my-auto pb-10 w-full">
@ -183,7 +169,7 @@
<input <input
bind:value={name} bind:value={name}
type="text" type="text"
class=" px-5 py-3 rounded-2xl w-full text-sm outline-none border dark:border-none dark:bg-gray-900" class="w-full text-sm outline-none bg-transparent"
autocomplete="name" autocomplete="name"
placeholder={$i18n.t('Enter Your Full Name')} placeholder={$i18n.t('Enter Your Full Name')}
required required
@ -198,7 +184,7 @@
<input <input
bind:value={email} bind:value={email}
type="email" type="email"
class=" px-5 py-3 rounded-2xl w-full text-sm outline-none border dark:border-none dark:bg-gray-900" class=" w-full text-sm outline-none bg-transparent"
autocomplete="email" autocomplete="email"
placeholder={$i18n.t('Enter Your Email')} placeholder={$i18n.t('Enter Your Email')}
required required
@ -211,7 +197,7 @@
<input <input
bind:value={password} bind:value={password}
type="password" type="password"
class=" px-5 py-3 rounded-2xl w-full text-sm outline-none border dark:border-none dark:bg-gray-900" class="w-full text-sm outline-none bg-transparent"
placeholder={$i18n.t('Enter Your Password')} placeholder={$i18n.t('Enter Your Password')}
autocomplete="current-password" autocomplete="current-password"
required required
@ -223,7 +209,7 @@
{#if $config?.features.enable_login_form} {#if $config?.features.enable_login_form}
<div class="mt-5"> <div class="mt-5">
<button <button
class=" bg-gray-900 hover:bg-gray-800 w-full rounded-2xl text-white font-medium text-sm py-3 transition" class=" bg-gray-900 hover:bg-gray-800 w-full rounded-2xl text-white font-medium text-sm py-2.5 transition"
type="submit" type="submit"
> >
{mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Create Account')} {mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Create Account')}