Skip to content

Commit b2b2a64

Browse files
committed
style: move branding to top-left corner on login
1 parent 5c9befa commit b2b2a64

2 files changed

Lines changed: 33 additions & 51 deletions

File tree

public/css/style.css

Lines changed: 30 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -132,39 +132,28 @@ a:hover { color: var(--accent-1); }
132132
background-size: 512px 512px;
133133
}
134134

135-
.login-left-content {
136-
position: relative;
135+
.login-left-top {
136+
position: absolute;
137+
top: 28px;
138+
left: 32px;
137139
z-index: 2;
138-
text-align: center;
139-
padding: 40px;
140-
}
141-
142-
.login-left-logo {
143-
width: 80px;
144-
height: 80px;
145-
margin-bottom: 24px;
146-
opacity: 0.9;
147-
filter: drop-shadow(0 0 40px rgba(238, 129, 50, 0.3));
148-
}
149-
150-
.login-left-brand {
151-
display: block;
152-
font-size: 2.8rem;
153-
font-weight: 800;
154-
letter-spacing: -0.03em;
155-
color: var(--text-primary);
156-
margin-bottom: 12px;
140+
display: flex;
141+
align-items: center;
142+
gap: 10px;
157143
}
158144

159-
.login-left-brand span {
160-
color: var(--accent-1);
145+
.login-left-top img {
146+
width: 28px;
147+
height: 28px;
148+
border-radius: var(--radius-sm);
149+
opacity: 0.8;
161150
}
162151

163-
.login-left-tagline {
164-
font-size: 1.05rem;
152+
.login-left-top span {
153+
font-size: 0.9rem;
154+
font-weight: 600;
165155
color: var(--text-muted);
166-
max-width: 300px;
167-
line-height: 1.6;
156+
letter-spacing: -0.01em;
168157
}
169158

170159
.login-right {
@@ -219,20 +208,18 @@ a:hover { color: var(--accent-1); }
219208
flex: none;
220209
}
221210

222-
.login-left-logo {
223-
width: 56px;
224-
height: 56px;
225-
margin-bottom: 16px;
211+
.login-left-top {
212+
top: 20px;
213+
left: 24px;
226214
}
227215

228-
.login-left-brand {
229-
font-size: 2rem;
230-
margin-bottom: 8px;
216+
.login-left-top img {
217+
width: 24px;
218+
height: 24px;
231219
}
232220

233-
.login-left-tagline {
234-
font-size: 0.9rem;
235-
max-width: 260px;
221+
.login-left-top span {
222+
font-size: 0.82rem;
236223
}
237224

238225
.login-right {
@@ -252,18 +239,14 @@ a:hover { color: var(--accent-1); }
252239
min-height: 180px;
253240
}
254241

255-
.login-left-logo {
256-
width: 44px;
257-
height: 44px;
258-
margin-bottom: 12px;
242+
.login-left-top {
243+
top: 16px;
244+
left: 20px;
259245
}
260246

261-
.login-left-brand {
262-
font-size: 1.6rem;
263-
}
264-
265-
.login-left-tagline {
266-
display: none;
247+
.login-left-top img {
248+
width: 22px;
249+
height: 22px;
267250
}
268251

269252
.login-right {

public/js/app.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,9 @@ function renderLoginPage() {
541541
app.innerHTML = html`
542542
<div class="login-page">
543543
<div class="login-left">
544-
<div class="login-left-content">
545-
<img src="https://img.zero-host.org/assets/picto.png" alt="ZeroHost" class="login-left-logo" />
546-
<span class="login-left-brand">Zero<span>Host</span></span>
547-
<p class="login-left-tagline">Deploy, manage, and scale your infrastructure.</p>
544+
<div class="login-left-top">
545+
<img src="https://img.zero-host.org/assets/picto.png" alt="ZeroHost" />
546+
<span>| Dashboard</span>
548547
</div>
549548
</div>
550549
<div class="login-right">

0 commit comments

Comments
 (0)