feat(redesign): aurora foundation — tokens, glass sidebar, dashboard
Foundation pass on the Aurora redesign: - app.css: full token swap to lavender/orchid/mint/sky pastel palette, vivid aurora gradient backdrop, frosted glass surface tokens, two themes (Aurora dark + Pearl light), shadow recipe for floating glass. - fonts: add Geist Sans / Geist Mono / Newsreader, drop DM Sans usage (legacy fontsource entries kept in package.json until full migration). - layout.svelte: sidebar becomes a floating glass rail with a conic- gradient brand orb, Newsreader italic 'Bridge' wordmark, soft glass hovers on nav links, gradient active indicator, gradient user avatar. - Card.svelte: glass surface + inner highlight + soft hover lift. - PageHeader.svelte: Newsreader serif display title. - +page.svelte (dashboard): stat cards become glass with colored accent 'orb', event timeline gets soft glass rows + slide-on-hover. Build clean (0 errors, pre-existing a11y warnings unchanged). Other pages still inherit old chrome via shared tokens but will need component-specific passes; tracked separately.
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
import MdiIcon from '$lib/components/MdiIcon.svelte';
|
||||
import EventChart from '$lib/components/EventChart.svelte';
|
||||
import IconGridSelect from '$lib/components/IconGridSelect.svelte';
|
||||
import EntitySelect from '$lib/components/EntitySelect.svelte';
|
||||
import ConfirmModal from '$lib/components/ConfirmModal.svelte';
|
||||
import { snackSuccess, snackError } from '$lib/stores/snackbar.svelte';
|
||||
import { eventTypeFilterItems, sortFilterItems, providerDefaultIcon } from '$lib/grid-items';
|
||||
@@ -409,20 +408,128 @@
|
||||
onconfirm={clearEvents} oncancel={() => confirmClearEvents = false} />
|
||||
|
||||
<style>
|
||||
.stat-card { position: relative; border-radius: 0.75rem; padding: 1px; background: linear-gradient(135deg, var(--accent), transparent 60%, var(--color-border)); transition: all 0.3s ease; }
|
||||
.stat-card:hover { box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 20%, transparent); }
|
||||
.stat-card-inner { background: var(--color-card); border-radius: calc(0.75rem - 1px); padding: 1.25rem; }
|
||||
.stat-icon { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; flex-shrink: 0; }
|
||||
.stat-value { font-size: 1.75rem; font-weight: 600; line-height: 1.2; animation: countUp 0.5s ease-out both; }
|
||||
.stat-value-text { font-size: 1rem; font-weight: 600; line-height: 1.3; animation: countUp 0.5s ease-out both; }
|
||||
/* === Aurora glass stat cards with colored "orb" === */
|
||||
.stat-card {
|
||||
position: relative;
|
||||
border-radius: 22px;
|
||||
background: var(--color-glass);
|
||||
backdrop-filter: blur(28px) saturate(160%);
|
||||
-webkit-backdrop-filter: blur(28px) saturate(160%);
|
||||
border: 1px solid var(--color-border);
|
||||
box-shadow: var(--shadow-card);
|
||||
overflow: hidden;
|
||||
transition: transform 0.25s cubic-bezier(.4,.4,0,1);
|
||||
cursor: pointer;
|
||||
}
|
||||
.stat-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 220px; height: 220px;
|
||||
border-radius: 50%;
|
||||
right: -100px; top: -90px;
|
||||
background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
|
||||
opacity: 0.45;
|
||||
pointer-events: none;
|
||||
filter: blur(20px);
|
||||
transition: transform 0.4s;
|
||||
}
|
||||
.stat-card::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(180deg, var(--color-highlight), transparent 30%);
|
||||
opacity: 0.4;
|
||||
}
|
||||
.stat-card:hover { transform: translateY(-3px); }
|
||||
.stat-card:hover::before { transform: scale(1.15); }
|
||||
.stat-card-inner { position: relative; z-index: 1; padding: 1.4rem; }
|
||||
.stat-icon {
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
width: 2.5rem; height: 2.5rem;
|
||||
border-radius: 0.85rem;
|
||||
flex-shrink: 0;
|
||||
background: var(--color-glass-elev) !important;
|
||||
border: 1px solid var(--color-border);
|
||||
box-shadow: inset 0 1px 0 var(--color-highlight);
|
||||
}
|
||||
.stat-value {
|
||||
font-size: 1.85rem;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.025em;
|
||||
font-variant-numeric: tabular-nums;
|
||||
animation: countUp 0.5s ease-out both;
|
||||
}
|
||||
.stat-value-text {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
animation: countUp 0.5s ease-out both;
|
||||
}
|
||||
.stat-suffix { font-size: 1rem; font-weight: 400; color: var(--color-muted-foreground); }
|
||||
.event-timeline { display: flex; flex-direction: column; }
|
||||
.event-item { display: flex; align-items: flex-start; gap: 0.75rem; position: relative; padding-bottom: 0.5rem; }
|
||||
.event-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; z-index: 1; }
|
||||
.event-line { position: absolute; left: 4px; top: 18px; bottom: 0; width: 2px; background: var(--color-border); }
|
||||
.event-content { flex: 1; min-width: 0; padding: 0.375rem 0.75rem; border-radius: 0.5rem; background: var(--color-card); border: 1px solid var(--color-border); transition: all 0.2s ease; }
|
||||
.event-content:hover { border-color: var(--color-primary); box-shadow: 0 0 12px var(--color-glow); }
|
||||
.event-badge { display: inline-block; font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.15rem 0.5rem; border-radius: 9999px; background: var(--color-muted); color: var(--color-muted-foreground); white-space: nowrap; font-family: var(--font-mono); }
|
||||
.clear-events-btn { color: var(--color-muted-foreground); background: transparent; }
|
||||
.clear-events-btn:hover { background: color-mix(in srgb, var(--color-error-fg) 10%, transparent); border-color: color-mix(in srgb, var(--color-error-fg) 40%, var(--color-border)); color: var(--color-error-fg); }
|
||||
|
||||
/* === Event timeline — softer, glass, gradient bullets === */
|
||||
.event-timeline { display: flex; flex-direction: column; gap: 0.25rem; }
|
||||
.event-item {
|
||||
display: flex; align-items: flex-start; gap: 0.85rem;
|
||||
position: relative; padding-bottom: 0.5rem;
|
||||
}
|
||||
.event-dot {
|
||||
width: 10px; height: 10px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
margin-top: 8px;
|
||||
z-index: 1;
|
||||
}
|
||||
.event-line {
|
||||
position: absolute;
|
||||
left: 4px; top: 20px; bottom: 0;
|
||||
width: 1px;
|
||||
background: var(--color-border);
|
||||
}
|
||||
.event-content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 0.6rem 0.9rem;
|
||||
border-radius: 14px;
|
||||
background: var(--color-glass);
|
||||
backdrop-filter: blur(20px) saturate(160%);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(160%);
|
||||
border: 1px solid var(--color-border);
|
||||
box-shadow: inset 0 1px 0 var(--color-highlight);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.event-content:hover {
|
||||
background: var(--color-glass-strong);
|
||||
border-color: var(--color-rule-strong);
|
||||
transform: translateX(2px);
|
||||
}
|
||||
.event-badge {
|
||||
display: inline-block;
|
||||
font-size: 0.65rem;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 0.15rem 0.55rem;
|
||||
border-radius: 9999px;
|
||||
background: var(--color-glass-strong);
|
||||
color: var(--color-muted-foreground);
|
||||
white-space: nowrap;
|
||||
font-family: var(--font-mono);
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
.clear-events-btn {
|
||||
color: var(--color-muted-foreground);
|
||||
background: var(--color-glass-strong) !important;
|
||||
border-radius: 10px !important;
|
||||
border: 1px solid var(--color-border) !important;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.clear-events-btn:hover {
|
||||
background: var(--color-error-bg) !important;
|
||||
border-color: color-mix(in srgb, var(--color-error-fg) 40%, var(--color-border)) !important;
|
||||
color: var(--color-error-fg);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user