style(landing): polish the public index, login and register screens
Gitea Actions Runner Test / test-job (push) Successful in 1s
CI / check (push) Failing after 26s
CI / tests-unit (push) Skipped
CI / tests-integration (push) Skipped
CI / tests-ui (push) Skipped
CI / preflight (push) Skipped
CI / deploy (push) Skipped

- add theme-aware helpers: btn-brand, btn-glass-dark, auth-input, auth-label,
  auth-alert, explore-pill, avatar-tile, aurora blobs and a hero scroll cue
- reorder backdrop-filter declarations so the glass blur survives the
  production CSS optimizer in modern Chromium
- hero: aurora glow, frosted recent-users chip, premium CTA buttons and cue
- explore nav: icon pills with hover arrows; features: gradient icon tiles
- stats: single glass panel with column dividers; join CTA: aurora + ring
- auth forms: visible labels, icon inputs, eye/password toggle, gradient
  submit and pill footer links
- auth pages: gradient card frame, aurora accents on the intro panel and
  hover-lift avatar tiles; unified pill-shaped top bar
- drop the hard-coded register banner image in favor of the framed card
This commit is contained in:
openhands committed 2026-10-06 22:00:02 +02:00
1 parent 5b2eb91c5c
commit 57710a7fe3
8 files changed
+879 -521

No files matched your search

+307 -2
View File
@@ -2162,14 +2162,14 @@ details[open] > summary .details-open\:rotate-180 {
/* Glass morphism */
.glass {
background: color-mix(in srgb, var(--color-surface) 70%, transparent);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 10%, transparent);
}
.glass-strong {
background: color-mix(in srgb, var(--color-surface) 85%, transparent);
backdrop-filter: blur(32px);
-webkit-backdrop-filter: blur(32px);
backdrop-filter: blur(32px);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 12%, transparent);
}
@@ -2532,3 +2532,308 @@ html {
letter-spacing: 0.12em;
color: var(--color-text-muted);
}
/* ── Public page polish: buttons ──────────────────────────────────── */
.btn-brand {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
border-radius: 999px;
background: linear-gradient(
120deg,
var(--color-primary) 0%,
color-mix(in srgb, var(--color-primary) 72%, var(--color-accent)) 55%,
color-mix(in srgb, var(--color-accent) 85%, var(--color-primary)) 100%
);
color: var(--color-primary-foreground);
box-shadow:
0 10px 26px -12px color-mix(in srgb, var(--color-primary) 75%, transparent),
inset 0 1px 0 0 color-mix(in srgb, white 35%, transparent);
transition:
transform 0.22s ease,
box-shadow 0.22s ease,
filter 0.22s ease;
}
.btn-brand:hover {
transform: translateY(-2px);
filter: brightness(1.05);
box-shadow:
0 18px 36px -14px color-mix(in srgb, var(--color-primary) 85%, transparent),
inset 0 1px 0 0 color-mix(in srgb, white 45%, transparent);
}
.btn-brand:active {
transform: translateY(0) scale(0.985);
}
.btn-brand:focus-visible {
outline: none;
box-shadow:
0 0 0 3px color-mix(in srgb, var(--color-primary) 35%, transparent),
0 14px 32px -14px color-mix(in srgb, var(--color-primary) 80%, transparent);
}
/* Frosted CTA meant to sit on top of the dark hero image. */
.btn-glass-dark {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
border-radius: 999px;
color: #fff;
background: color-mix(in srgb, #ffffff 10%, transparent);
border: 1px solid color-mix(in srgb, #ffffff 34%, transparent);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
box-shadow: inset 0 1px 0 0 color-mix(in srgb, #ffffff 25%, transparent);
transition:
background 0.22s ease,
border-color 0.22s ease,
transform 0.22s ease;
}
.btn-glass-dark:hover {
background: color-mix(in srgb, #ffffff 20%, transparent);
border-color: color-mix(in srgb, #ffffff 60%, transparent);
transform: translateY(-2px);
}
.btn-glass-dark:active {
transform: translateY(0);
}
.btn-glass-dark:focus-visible {
outline: none;
border-color: #fff;
box-shadow: 0 0 0 3px
color-mix(in srgb, var(--color-primary) 55%, transparent);
}
/* ── Public page polish: auth fields ──────────────────────────────── */
.auth-label {
display: block;
font-size: 11px;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--color-text-muted);
margin-bottom: 0.4rem;
}
.auth-input {
width: 100%;
border-radius: 14px;
border: 1.5px solid
color-mix(in srgb, var(--color-text-muted) 22%, transparent);
background: color-mix(
in srgb,
var(--color-background) 88%,
var(--color-surface)
);
padding: 0.78rem 1rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-readable);
transition:
border-color 0.2s ease,
box-shadow 0.2s ease,
background-color 0.2s ease;
}
.auth-input::placeholder {
color: color-mix(in srgb, var(--color-text-muted) 75%, transparent);
font-weight: 500;
}
.auth-input:hover:not(:disabled):not(:focus) {
border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
}
.auth-input:focus {
outline: none;
border-color: var(--color-primary);
background: var(--color-surface);
box-shadow:
0 0 0 3px color-mix(in srgb, var(--color-primary) 16%, transparent),
0 0 24px -8px color-mix(in srgb, var(--color-primary) 60%, transparent);
}
.auth-input:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.auth-input.has-icon {
padding-left: 2.75rem;
}
.auth-input.has-action {
padding-right: 2.75rem;
}
/* Alert box used for form errors. */
.auth-alert {
display: flex;
align-items: flex-start;
gap: 0.5rem;
border-radius: 14px;
padding: 0.7rem 0.85rem;
font-size: 0.85rem;
font-weight: 700;
color: color-mix(
in srgb,
var(--color-danger) 85%,
var(--color-text-readable)
);
background: color-mix(in srgb, var(--color-danger) 10%, transparent);
border: 1px solid color-mix(in srgb, var(--color-danger) 32%, transparent);
}
/* ── Public page polish: explore pills ────────────────────────────── */
.explore-pill {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 1.15rem;
border-radius: 999px;
font-size: 0.85rem;
font-weight: 700;
color: var(--color-text-readable);
background: color-mix(in srgb, var(--color-surface) 55%, transparent);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 16%, transparent);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
transition:
background 0.25s ease,
border-color 0.25s ease,
transform 0.25s ease,
box-shadow 0.25s ease;
}
.explore-pill:hover {
background: color-mix(
in srgb,
var(--color-primary) 16%,
var(--color-surface)
);
border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
transform: translateY(-2px);
box-shadow: 0 12px 26px -14px
color-mix(in srgb, var(--color-primary) 80%, transparent);
}
.explore-pill .pill-arrow {
opacity: 0;
transform: translateX(-4px);
transition:
opacity 0.25s ease,
transform 0.25s ease;
}
.explore-pill:hover .pill-arrow {
opacity: 1;
transform: translateX(0);
}
.explore-pill:focus-visible {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px
color-mix(in srgb, var(--color-primary) 20%, transparent);
}
/* ── Public page polish: avatar tiles ─────────────────────────────── */
.avatar-tile {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.4rem;
padding: 0.55rem 0.3rem;
border-radius: 14px;
background: color-mix(in srgb, var(--color-primary) 6%, transparent);
border: 1px solid color-mix(in srgb, var(--color-primary) 14%, transparent);
transition:
transform 0.25s ease,
border-color 0.25s ease,
box-shadow 0.25s ease,
background 0.25s ease;
}
.avatar-tile:hover {
transform: translateY(-3px);
background: color-mix(in srgb, var(--color-primary) 12%, transparent);
border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
box-shadow: 0 12px 24px -14px
color-mix(in srgb, var(--color-primary) 85%, transparent);
}
.avatar-name {
font-size: 9.5px;
font-weight: 800;
letter-spacing: 0.04em;
color: var(--color-text-muted);
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.avatar-tile:hover .avatar-name {
color: var(--color-text-readable);
}
.avatar-online {
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--color-accent);
box-shadow: 0 0 0 2px var(--color-surface);
}
/* ── Public page polish: drifting aurora blobs ────────────────────── */
.aurora-blob {
position: absolute;
border-radius: 999px;
filter: blur(70px);
pointer-events: none;
will-change: transform;
animation: aurora-drift 16s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
from {
transform: translate3d(0, 0, 0) scale(1);
opacity: 0.55;
}
to {
transform: translate3d(30px, -24px, 0) scale(1.15);
opacity: 0.85;
}
}
/* Small bobbing scroll cue at the bottom of the hero. */
.hero-cue {
animation: float 2.4s ease-in-out infinite;
will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
.aurora-blob,
.hero-cue {
animation: none;
}
.btn-brand:hover,
.btn-glass-dark:hover,
.explore-pill:hover,
.avatar-tile:hover {
transform: none;
}
}
/* Dividers between the four counters in the stats panel. */
.stat-cell {
position: relative;
}
@media (min-width: 1024px) {
.stat-cell:not(:first-child)::before {
content: "";
position: absolute;
left: -0.5rem;
top: 18%;
height: 64%;
width: 1px;
background: color-mix(in srgb, var(--color-text-muted) 20%, transparent);
}
}
@media (max-width: 1023px) {
.stat-cell:nth-child(3)::before {
content: "";
position: absolute;
left: -0.5rem;
top: 10%;
height: 80%;
width: 1px;
background: color-mix(in srgb, var(--color-text-muted) 20%, transparent);
}
}