fix(ui): complete floating labels on login with proper text
This commit is contained in:
@@ -144,6 +144,20 @@ body {
|
||||
image-rendering: crisp-edges;
|
||||
}
|
||||
|
||||
.login-logo-fallback {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin: 0 auto 1.25rem;
|
||||
border-radius: 16px;
|
||||
background: var(--bg2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--orange);
|
||||
font-size: 2rem;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.login-header h1 {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 800;
|
||||
@@ -170,8 +184,9 @@ body {
|
||||
|
||||
.form-group label {
|
||||
position: absolute;
|
||||
top: 1.125rem;
|
||||
top: 50%;
|
||||
left: 1.25rem;
|
||||
transform: translateY(-50%);
|
||||
font-size: 0.875rem;
|
||||
color: var(--fg3);
|
||||
pointer-events: none;
|
||||
@@ -180,6 +195,9 @@ body {
|
||||
padding: 0 0.375rem;
|
||||
z-index: 2;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.form-group input:focus ~ label,
|
||||
@@ -189,10 +207,11 @@ body {
|
||||
font-size: 0.7rem;
|
||||
color: var(--orange);
|
||||
font-weight: 600;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
padding: 1.625rem 1.25rem 1rem 1.25rem;
|
||||
padding: 1rem 1.25rem;
|
||||
background: var(--bg0);
|
||||
border: 2px solid var(--bg3);
|
||||
border-radius: 12px;
|
||||
@@ -200,6 +219,7 @@ body {
|
||||
color: var(--fg1);
|
||||
transition: all 0.3s;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
@@ -225,6 +245,8 @@ body {
|
||||
gap: 0.5rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin: 0 auto;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.login-btn:hover {
|
||||
@@ -280,7 +302,7 @@ body {
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.login-logo {
|
||||
.login-logo, .login-logo-fallback {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||
<link rel="icon" href="img/logo-icon.png" type="image/png" sizes="any">
|
||||
<link rel="apple-touch-icon" href="img/logo-icon.png">
|
||||
<link rel="apple-touch-icon" href="img/LLMProxyLogo.png">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/luxon@3.4.4/build/global/luxon.min.js"></script>
|
||||
@@ -18,23 +17,30 @@
|
||||
<div id="login-screen" class="login-container">
|
||||
<div class="login-card">
|
||||
<div class="login-header">
|
||||
<img src="img/logo-full.png" alt="LLM Proxy Logo" class="login-logo">
|
||||
<img src="img/logo-full.png" alt="LLM Proxy Logo" class="login-logo" onerror="this.style.display='none'; this.nextElementSibling.style.display='block';">
|
||||
<i class="fas fa-robot login-logo-fallback" style="display: none;"></i>
|
||||
<h1>LLM Proxy Gateway</h1>
|
||||
<p class="login-subtitle">Admin Dashboard</p>
|
||||
</div>
|
||||
<form id="login-form" class="login-form">
|
||||
<div class="form-group">
|
||||
<input type="text" id="username" name="username" placeholder="Username" required>
|
||||
<div class="form-group">
|
||||
<input type="text" id="username" name="username" placeholder=" " required>
|
||||
<label for="username">
|
||||
<i class="fas fa-user"></i>
|
||||
<i class="fas fa-user"></i> Username
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" id="password" name="password" placeholder="••••••••" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" id="password" name="password" placeholder=" " required>
|
||||
<label for="password">
|
||||
<i class="fas fa-lock"></i>
|
||||
<i class="fas fa-lock"></i> Password
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" id="password" name="password" placeholder=" " required>
|
||||
<label for="password">
|
||||
<i class="fas fa-lock"></i> Password
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="login-btn">
|
||||
<i class="fas fa-sign-in-alt"></i> Sign In
|
||||
|
||||
Reference in New Issue
Block a user