瀏覽代碼

refac: styling

Timothy J. Baek 6 月之前
父節點
當前提交
dbf14afa32
共有 2 個文件被更改,包括 4 次插入19 次删除
  1. 0 1
      backend/open_webui/config.py
  2. 4 18
      src/routes/auth/+page.svelte

+ 0 - 1
backend/open_webui/config.py

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

+ 4 - 18
src/routes/auth/+page.svelte

@@ -119,20 +119,6 @@
 	</div>
 
 	<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">
 			{#if ($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false}
 				<div class=" my-auto pb-10 w-full">
@@ -183,7 +169,7 @@
 										<input
 											bind:value={name}
 											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"
 											placeholder={$i18n.t('Enter Your Full Name')}
 											required
@@ -198,7 +184,7 @@
 									<input
 										bind:value={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"
 										placeholder={$i18n.t('Enter Your Email')}
 										required
@@ -211,7 +197,7 @@
 									<input
 										bind:value={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')}
 										autocomplete="current-password"
 										required
@@ -223,7 +209,7 @@
 						{#if $config?.features.enable_login_form}
 							<div class="mt-5">
 								<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"
 								>
 									{mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Create Account')}