Restyle to a clean, flat look and rename brand to SCOPENET
- Brand is now SCOPENET everywhere (defaults, UI, installer, docs) - Launcher: solid backgrounds (no animated orbs/grain), flat Play button without gradient/shine/glow, quieter rail with a simple active indicator, smaller type scale, Inter as default font, glass off by default, restyled sliders - Panel: same flat treatment; live preview mirrors the new launcher - New flat scope-reticle logo and app icons - Calmer default palette - Fix: lock the shared cargo cache in the Docker build (amd64/arm64 raced) - Fix: Windows-only clippy lint in sys.rs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ARcGWxLx21FwXJ3yfGriS
This commit is contained in:
69 files changed
+378
-426
No files matched your search
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="color-scheme" content="dark" />
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
||||
<title>ScopeNet Panel</title>
|
||||
<title>SCOPENET Panel</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#7c5cff"/><stop offset="1" stop-color="#22d3ee"/></linearGradient></defs><rect width="64" height="64" rx="16" fill="#0b0d17"/><path d="M32 10 52 21v22L32 54 12 43V21z" fill="none" stroke="url(#g)" stroke-width="5" stroke-linejoin="round"/><circle cx="32" cy="32" r="7" fill="url(#g)"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#16181e"/><circle cx="32" cy="32" r="14.5" fill="none" stroke="#ecedf1" stroke-width="4"/><circle cx="32" cy="32" r="4.5" fill="#6d6af5"/><path d="M32 12.5v7.5M32 44v7.5M12.5 32h7.5M44 32h7.5" stroke="#ecedf1" stroke-width="4" stroke-linecap="round"/></svg>
|
||||
|
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 361 B |
@@ -13,7 +13,7 @@
|
||||
import { logout, session, type Me } from './lib/session.svelte';
|
||||
import { toast } from './lib/toast.svelte';
|
||||
|
||||
let brand = $state<{ name: string; logo_url: string | null }>({ name: 'ScopeNet', logo_url: null });
|
||||
let brand = $state<{ name: string; logo_url: string | null }>({ name: 'SCOPENET', logo_url: null });
|
||||
let checking = $state(!!session.token);
|
||||
|
||||
$effect(() => {
|
||||
@@ -75,6 +75,6 @@
|
||||
.shell { display: flex; min-height: 100vh; }
|
||||
main { flex: 1; min-width: 0; }
|
||||
.boot { height: 100vh; display: grid; place-items: center; }
|
||||
.pulse { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); animation: pulse 1s ease-in-out infinite alternate; }
|
||||
.pulse { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
|
||||
@keyframes pulse { from { transform: scale(0.85); opacity: 0.6; } to { transform: scale(1); opacity: 1; } }
|
||||
</style>
|
||||
+44
-54
@@ -1,24 +1,24 @@
|
||||
:root {
|
||||
--bg: #090a12;
|
||||
--bg-2: #0e1019;
|
||||
--surface: #12141f;
|
||||
--surface-2: #181b29;
|
||||
--surface-3: #20243a;
|
||||
--bg: #0d0e12;
|
||||
--bg-2: #111217;
|
||||
--surface: #16181e;
|
||||
--surface-2: #1c1e25;
|
||||
--surface-3: #25272f;
|
||||
--line: rgba(255, 255, 255, 0.07);
|
||||
--line-strong: rgba(255, 255, 255, 0.13);
|
||||
--text: #eef0ff;
|
||||
--text-2: #b7bbdb;
|
||||
--muted: #7d82a8;
|
||||
--accent: #8b6cff;
|
||||
--accent-2: #22d3ee;
|
||||
--accent-soft: rgba(139, 108, 255, 0.14);
|
||||
--good: #34d399;
|
||||
--warn: #fbbf24;
|
||||
--bad: #f43f5e;
|
||||
--radius: 14px;
|
||||
--radius-sm: 9px;
|
||||
--shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
|
||||
--font: 'Outfit Variable', system-ui, sans-serif;
|
||||
--line-strong: rgba(255, 255, 255, 0.12);
|
||||
--text: #ecedf1;
|
||||
--text-2: #b4b7c0;
|
||||
--muted: #8b8f9a;
|
||||
--accent: #6d6af5;
|
||||
--accent-2: #8b88f8;
|
||||
--accent-soft: rgba(109, 106, 245, 0.14);
|
||||
--good: #3fb97c;
|
||||
--warn: #e2a336;
|
||||
--bad: #e5484d;
|
||||
--radius: 10px;
|
||||
--radius-sm: 7px;
|
||||
--shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
|
||||
--font: 'Inter Variable', system-ui, sans-serif;
|
||||
--mono: 'JetBrains Mono Variable', ui-monospace, monospace;
|
||||
color-scheme: dark;
|
||||
}
|
||||
@@ -34,17 +34,11 @@ body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font);
|
||||
font-size: 15px;
|
||||
font-size: 14.5px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
body {
|
||||
background:
|
||||
radial-gradient(1200px 600px at 110% -10%, rgba(139, 108, 255, 0.12), transparent 60%),
|
||||
radial-gradient(900px 500px at -10% 110%, rgba(34, 211, 238, 0.07), transparent 60%),
|
||||
var(--bg);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
body { background: var(--bg); }
|
||||
|
||||
a {
|
||||
color: var(--accent-2);
|
||||
@@ -53,11 +47,11 @@ a {
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
margin: 0;
|
||||
font-weight: 650;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
h1 { font-size: 1.75rem; }
|
||||
h1 { font-size: 1.5rem; }
|
||||
h2 { font-size: 1.2rem; }
|
||||
h3 { font-size: 1rem; }
|
||||
|
||||
@@ -69,7 +63,7 @@ code, .mono {
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: rgba(139, 108, 255, 0.4);
|
||||
background: rgba(109, 106, 245, 0.4);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
@@ -109,20 +103,16 @@ code, .mono {
|
||||
.tiny { font-size: 0.75rem; }
|
||||
|
||||
.card {
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)), var(--surface);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.card.hover {
|
||||
transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
.card.hover:hover {
|
||||
border-color: var(--line-strong);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow);
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
.card.hover:hover { border-color: var(--line-strong); }
|
||||
|
||||
.section-title {
|
||||
display: flex;
|
||||
@@ -151,29 +141,28 @@ button, .btn {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
font-weight: 550;
|
||||
transition: background 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.15s, opacity 0.15s;
|
||||
font-weight: 520;
|
||||
transition: background 0.15s, border-color 0.15s, opacity 0.15s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
button:hover { background: var(--surface-3); }
|
||||
button:active { transform: translateY(1px); }
|
||||
button:disabled { opacity: 0.5; cursor: not-allowed; }
|
||||
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
button.primary {
|
||||
background: linear-gradient(135deg, var(--accent), #6a4cf0);
|
||||
button.primary, a.btn.primary {
|
||||
background: var(--accent);
|
||||
border-color: transparent;
|
||||
box-shadow: 0 8px 24px -10px rgba(139, 108, 255, 0.8);
|
||||
color: white;
|
||||
}
|
||||
button.primary:hover { filter: brightness(1.1); }
|
||||
button.primary:hover, a.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
|
||||
|
||||
button.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
|
||||
button.ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
|
||||
button.danger { color: #ff8a9e; border-color: rgba(244, 63, 94, 0.3); background: rgba(244, 63, 94, 0.08); }
|
||||
button.danger:hover { background: rgba(244, 63, 94, 0.16); }
|
||||
button.danger { color: #f2999c; border-color: rgba(229, 72, 77, 0.3); background: rgba(229, 72, 77, 0.08); }
|
||||
button.danger:hover { background: rgba(229, 72, 77, 0.15); }
|
||||
button.icon { padding: 8px; }
|
||||
button.sm { padding: 6px 11px; font-size: 0.85rem; }
|
||||
|
||||
@@ -194,7 +183,10 @@ select { appearance: none; background-image: linear-gradient(45deg, transparent
|
||||
input[type='color'] { padding: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; overflow: hidden; }
|
||||
input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
|
||||
input[type='color']::-webkit-color-swatch { border: none; }
|
||||
input[type='range'] { padding: 0; accent-color: var(--accent); border: none; background: transparent; }
|
||||
input[type='range'] { -webkit-appearance: none; appearance: none; padding: 0; height: 18px; border: none; background: transparent; cursor: pointer; }
|
||||
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: var(--surface-3); }
|
||||
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); }
|
||||
input[type='range']:hover, input[type='range']:focus { background: transparent; }
|
||||
input[type='checkbox'] { width: auto; accent-color: var(--accent); }
|
||||
|
||||
label.field {
|
||||
@@ -212,15 +204,15 @@ label.field .help { color: var(--muted); font-weight: 400; font-size: 0.78rem; }
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 3px 9px;
|
||||
border-radius: 999px;
|
||||
border-radius: 5px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
font-weight: 520;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
color: var(--text-2);
|
||||
border: 1px solid var(--line);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.badge.accent { background: var(--accent-soft); color: #c4b5ff; border-color: rgba(139, 108, 255, 0.3); }
|
||||
.badge.accent { background: var(--accent-soft); color: #b9b7fb; border-color: rgba(109, 106, 245, 0.28); }
|
||||
.badge.good { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.25); }
|
||||
.badge.warn { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border-color: rgba(251, 191, 36, 0.25); }
|
||||
.badge.bad { background: rgba(244, 63, 94, 0.12); color: #fda4af; border-color: rgba(244, 63, 94, 0.25); }
|
||||
@@ -241,7 +233,7 @@ label.field .help { color: var(--muted); font-weight: 400; font-size: 0.78rem; }
|
||||
color: var(--muted);
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
.segmented button.active { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
|
||||
.segmented button.active { background: var(--surface-3); color: var(--text); }
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
@@ -271,8 +263,6 @@ table.table {
|
||||
color: var(--muted);
|
||||
font-weight: 500;
|
||||
font-size: 0.78rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
@@ -304,7 +294,7 @@ table.table {
|
||||
.spin { animation: spin 0.9s linear infinite; }
|
||||
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
||||
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.page { padding: 20px 16px 48px; }
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
svg { width: 100%; height: auto; display: block; overflow: visible; }
|
||||
.grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
|
||||
.tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
|
||||
.bar { fill: #8b6cff; transition: opacity 0.15s; }
|
||||
.bar { fill: #6d6af5; transition: opacity 0.15s; }
|
||||
.bar.dim { opacity: 0.4; }
|
||||
.tip {
|
||||
position: absolute; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; background: var(--surface-3);
|
||||
|
||||
@@ -1,26 +1,22 @@
|
||||
<script lang="ts">
|
||||
// A scaled-down replica of the launcher's home screen, driven by the
|
||||
// branding being edited, so admins see changes instantly.
|
||||
import { Play, Settings, Newspaper, Wifi } from '@lucide/svelte';
|
||||
import { Play, Settings } from '@lucide/svelte';
|
||||
import type { Branding } from '../lib/types';
|
||||
|
||||
let { b, instanceName = 'Survival SMP' }: { b: Branding; instanceName?: string } = $props();
|
||||
|
||||
const fontFamily = $derived(`'${b.font}', 'Outfit Variable', sans-serif`);
|
||||
const bgStyle = $derived(
|
||||
b.background.kind === 'image' && b.background.url
|
||||
? `url("${b.background.url}") center/cover`
|
||||
: `radial-gradient(120% 80% at 80% 0%, ${b.colors.accent}55, transparent 60%), radial-gradient(90% 70% at 0% 100%, ${b.colors.accent_2}33, transparent 60%), ${b.colors.background}`,
|
||||
);
|
||||
const fontFamily = $derived(`'${b.font} Variable', '${b.font}', 'Inter Variable', sans-serif`);
|
||||
const media = $derived(b.background.kind !== 'gradient' && b.background.url ? b.background.url : null);
|
||||
const news = $derived(b.news.slice(0, 2));
|
||||
const surf = $derived(b.glass && media ? `color-mix(in srgb, ${b.colors.surface} 75%, transparent)` : b.colors.surface);
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="frame"
|
||||
style:--acc={b.colors.accent}
|
||||
style:--acc2={b.colors.accent_2}
|
||||
style:--bg={b.colors.background}
|
||||
style:--surf={b.colors.surface}
|
||||
style:--surf={surf}
|
||||
style:--txt={b.colors.text}
|
||||
style:--mut={b.colors.muted}
|
||||
style:--ok={b.colors.success}
|
||||
@@ -28,109 +24,99 @@
|
||||
style:font-family={fontFamily}
|
||||
>
|
||||
<div class="inner">
|
||||
<div class="bg" style:background={bgStyle} style:filter="blur({b.background.blur * 0.5}px)">
|
||||
{#if b.background.kind === 'video' && b.background.url}
|
||||
<!-- svelte-ignore a11y_media_has_caption -->
|
||||
<video src={b.background.url} autoplay muted loop playsinline></video>
|
||||
{#if media}
|
||||
<div class="bg" style:filter="blur({b.background.blur * 0.5}px)">
|
||||
{#if b.background.kind === 'video'}
|
||||
<!-- svelte-ignore a11y_media_has_caption -->
|
||||
<video src={media} autoplay muted loop playsinline></video>
|
||||
{:else}
|
||||
<div class="img" style:background-image="url("{media}")"></div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="dim" style:--d={b.background.dim / 100}></div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="dim" style:opacity={b.background.dim / 100}></div>
|
||||
|
||||
<div class="titlebar">
|
||||
{#if b.logo_url}<img src={b.logo_url} alt="" />{:else}<span class="dot"></span>{/if}
|
||||
<span>{b.name}</span>
|
||||
<span class="spacer"></span>
|
||||
<i></i><i></i><i class="x"></i>
|
||||
</div>
|
||||
|
||||
<div class="rail" class:glass={b.glass}>
|
||||
<span class="inst active">{instanceName.slice(0, 1)}</span>
|
||||
<span class="inst">C</span>
|
||||
<span class="inst">V</span>
|
||||
<span class="spacer"></span>
|
||||
<Settings size={11} />
|
||||
<span class="avatar"></span>
|
||||
</div>
|
||||
|
||||
<div class="main">
|
||||
<div class="hero">
|
||||
<div class="chips"><span>1.21.1</span><span>Fabric</span></div>
|
||||
<h1>{instanceName}</h1>
|
||||
<p>{b.tagline}</p>
|
||||
<div class="titlebar">
|
||||
{#if b.logo_url}<img src={b.logo_url} alt="" />{:else}<span class="mark"></span>{/if}
|
||||
<span>{b.name}</span>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<button class="play"><Play size={11} fill="currentColor" /> PLAY</button>
|
||||
{#if b.features.server_status}
|
||||
<span class="status" class:glass={b.glass}><Wifi size={9} /> <b>42</b>/100 online</span>
|
||||
|
||||
<div class="rail">
|
||||
<span class="inst active">{instanceName.slice(0, 2).toUpperCase()}</span>
|
||||
<span class="inst">CB</span>
|
||||
<span class="inst">CA</span>
|
||||
<span class="spacer"></span>
|
||||
<Settings size={10} />
|
||||
<span class="avatar"></span>
|
||||
</div>
|
||||
|
||||
<div class="main">
|
||||
<div class="hero">
|
||||
<div class="chips"><span>1.21.1</span><span>Fabric</span></div>
|
||||
<h1>{instanceName}</h1>
|
||||
<p>{b.tagline}</p>
|
||||
<div class="row">
|
||||
<span class="play"><Play size={9} fill="currentColor" /> Play</span>
|
||||
{#if b.features.server_status}<span class="status"><i></i> 42/100 online</span>{/if}
|
||||
</div>
|
||||
</div>
|
||||
{#if b.features.news && news.length}
|
||||
<div class="news">
|
||||
<span class="news-h">News</span>
|
||||
{#each news as n}
|
||||
<div class="card">
|
||||
{#if n.image_url}<img src={n.image_url} alt="" />{/if}
|
||||
<div>
|
||||
{#if n.tag}<em>{n.tag}</em>{/if}
|
||||
<strong>{n.title || 'Untitled'}</strong>
|
||||
<small>{n.body}</small>
|
||||
</div>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{#if b.features.news && news.length}
|
||||
<div class="news">
|
||||
<span class="news-h"><Newspaper size={9} /> News</span>
|
||||
{#each news as n}
|
||||
<div class="card" class:glass={b.glass}>
|
||||
{#if n.image_url}<img src={n.image_url} alt="" />{/if}
|
||||
<div>
|
||||
{#if n.tag}<em>{n.tag}</em>{/if}
|
||||
<strong>{n.title || 'Untitled'}</strong>
|
||||
<small>{n.body}</small>
|
||||
</div>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.frame {
|
||||
position: relative; aspect-ratio: 1100 / 680; width: 100%; border-radius: 14px; overflow: hidden; color: var(--txt);
|
||||
background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
|
||||
container-type: inline-size;
|
||||
position: relative; aspect-ratio: 1120 / 700; width: 100%; border-radius: 10px; overflow: hidden; color: var(--txt);
|
||||
background: var(--bg); border: 1px solid var(--line-strong); container-type: inline-size;
|
||||
}
|
||||
/* cqw must be used inside the container, not on it */
|
||||
.inner { position: absolute; inset: 0; font-size: 1.85cqw; }
|
||||
.bg { position: absolute; inset: -10px; }
|
||||
.bg video { width: 100%; height: 100%; object-fit: cover; }
|
||||
.dim { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 70%), linear-gradient(0deg, var(--bg), transparent 50%); }
|
||||
.titlebar { position: absolute; top: 0; left: 0; right: 0; height: 6%; display: flex; align-items: center; gap: 1.2%; padding: 0 1.5%; font-size: 0.75em; font-weight: 600; z-index: 2; }
|
||||
.inner { position: absolute; inset: 0; font-size: 1.75cqw; }
|
||||
.bg { position: absolute; inset: -8px; }
|
||||
.bg video, .img { width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
|
||||
.dim { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) calc(var(--d) * 100%), transparent) 55%, color-mix(in srgb, var(--bg) calc(var(--d) * 70%), transparent) 100%); }
|
||||
.titlebar { position: absolute; top: 0; left: 0; right: 0; height: 5.6%; display: flex; align-items: center; gap: 0.6em; padding: 0 1.3%; font-size: 0.8em; font-weight: 650; letter-spacing: 0.08em; z-index: 2; }
|
||||
.titlebar img { height: 60%; border-radius: 3px; }
|
||||
.dot { width: 1.4%; aspect-ratio: 1; border-radius: 30%; background: linear-gradient(135deg, var(--acc), var(--acc2)); }
|
||||
.titlebar i { width: 1%; aspect-ratio: 1; border-radius: 50%; background: var(--mut); opacity: 0.5; }
|
||||
.titlebar i.x { background: #f43f5e; opacity: 0.8; }
|
||||
.spacer { flex: 1; }
|
||||
.mark { width: 0.9em; height: 0.9em; border-radius: 50%; border: 0.15em solid var(--acc); box-sizing: border-box; }
|
||||
.rail {
|
||||
position: absolute; left: 0; top: 6%; bottom: 0; width: 7%; display: flex; flex-direction: column; align-items: center;
|
||||
gap: 2.2%; padding: 1.5% 0; background: color-mix(in srgb, var(--surf) 85%, transparent); z-index: 2; color: var(--mut);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.06);
|
||||
position: absolute; left: 0; top: 5.6%; bottom: 0; width: 6.2%; display: flex; flex-direction: column; align-items: center;
|
||||
gap: 0.6em; padding: 0.9em 0; border-right: 1px solid rgba(255, 255, 255, 0.07); z-index: 2; color: var(--mut);
|
||||
background: color-mix(in srgb, var(--surf) 70%, transparent);
|
||||
}
|
||||
.rail.glass { background: color-mix(in srgb, var(--surf) 55%, transparent); backdrop-filter: blur(8px); }
|
||||
.inst { width: 62%; aspect-ratio: 1; border-radius: var(--r); background: var(--surf); display: grid; place-items: center; font-weight: 700; font-size: 1.1em; color: var(--txt); border: 1px solid rgba(255, 255, 255, 0.08); }
|
||||
.inst.active { background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--acc); }
|
||||
.avatar { width: 50%; aspect-ratio: 1; border-radius: 30%; background: linear-gradient(#6b4f2a 40%, #c9956b 40%); margin-top: 6%; }
|
||||
.main { position: absolute; left: 7%; top: 6%; right: 0; bottom: 0; padding: 4% 4.5%; z-index: 1; }
|
||||
.hero h1 { font-size: 3.6em; line-height: 1; margin: 0.25em 0 0.2em; letter-spacing: -0.02em; font-weight: 800; }
|
||||
.hero p { color: var(--mut); font-size: 1.1em; max-width: 50%; }
|
||||
.chips { display: flex; gap: 0.5em; }
|
||||
.chips span { font-size: 0.7em; padding: 0.25em 0.8em; border-radius: 99px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12); font-weight: 600; }
|
||||
.bottom { position: absolute; left: 4.5%; bottom: 7%; display: flex; align-items: center; gap: 1.2em; }
|
||||
.play {
|
||||
all: unset; display: flex; align-items: center; gap: 0.6em; padding: 0.9em 2.6em; border-radius: var(--r); font-weight: 800;
|
||||
font-size: 1.25em; letter-spacing: 0.08em; color: white; background: linear-gradient(135deg, var(--acc), var(--acc2));
|
||||
box-shadow: 0 0.6em 2em -0.5em var(--acc);
|
||||
}
|
||||
.status { display: flex; align-items: center; gap: 0.4em; font-size: 0.8em; padding: 0.5em 0.9em; border-radius: 99px; background: color-mix(in srgb, var(--surf) 85%, transparent); color: var(--mut); }
|
||||
.status.glass { background: color-mix(in srgb, var(--surf) 50%, transparent); backdrop-filter: blur(8px); }
|
||||
.status :global(svg) { color: var(--ok); }
|
||||
.status b { color: var(--txt); }
|
||||
.news { position: absolute; right: 3.5%; top: 6%; width: 30%; display: flex; flex-direction: column; gap: 0.7em; }
|
||||
.news-h { font-size: 0.75em; color: var(--mut); display: flex; align-items: center; gap: 0.4em; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
|
||||
.card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--surf) 90%, transparent); border: 1px solid rgba(255, 255, 255, 0.07); }
|
||||
.card.glass { background: color-mix(in srgb, var(--surf) 55%, transparent); backdrop-filter: blur(8px); }
|
||||
.inst { width: 64%; aspect-ratio: 1; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; font-weight: 600; font-size: 0.75em; color: var(--mut); }
|
||||
.inst.active { background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--txt); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 55%, transparent); }
|
||||
.spacer { flex: 1; }
|
||||
.avatar { width: 55%; aspect-ratio: 1; border-radius: 25%; background: #3fb97c; }
|
||||
.main { position: absolute; left: 6.2%; top: 5.6%; right: 0; bottom: 0; padding: 4% 4%; z-index: 1; display: flex; gap: 6%; }
|
||||
.hero { flex: 1; align-self: flex-end; display: flex; flex-direction: column; gap: 0.6em; }
|
||||
.hero h1 { font-size: 3.1em; line-height: 1.05; margin: 0; letter-spacing: -0.025em; font-weight: 700; }
|
||||
.hero p { color: var(--mut); font-size: 0.95em; margin: 0; }
|
||||
.chips { display: flex; gap: 0.4em; }
|
||||
.chips span { font-size: 0.7em; padding: 0.2em 0.55em; border-radius: 0.3em; background: rgba(255, 255, 255, 0.07); }
|
||||
.row { display: flex; align-items: center; gap: 0.8em; margin-top: 0.8em; }
|
||||
.play { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.85em 2.2em; border-radius: var(--r); font-weight: 600; font-size: 1em; color: white; background: var(--acc); }
|
||||
.status { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.75em; padding: 0.7em 0.9em; border-radius: var(--r); background: var(--surf); border: 1px solid rgba(255, 255, 255, 0.07); color: var(--mut); }
|
||||
.status i { width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--ok); }
|
||||
.news { width: 30%; display: flex; flex-direction: column; gap: 0.6em; }
|
||||
.news-h { font-size: 0.72em; color: var(--mut); }
|
||||
.card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surf); border: 1px solid rgba(255, 255, 255, 0.07); }
|
||||
.card img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
|
||||
.card div { padding: 0.7em 0.9em; display: flex; flex-direction: column; gap: 0.2em; }
|
||||
.card em { font-style: normal; font-size: 0.6em; color: var(--acc); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
|
||||
.card strong { font-size: 0.9em; }
|
||||
.card small { font-size: 0.7em; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.card div { padding: 0.7em 0.8em; display: flex; flex-direction: column; gap: 0.25em; }
|
||||
.card em { font-style: normal; font-size: 0.65em; color: var(--acc); font-weight: 560; }
|
||||
.card strong { font-size: 0.85em; font-weight: 600; }
|
||||
.card small { font-size: 0.68em; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
</style>
|
||||
@@ -28,17 +28,17 @@
|
||||
|
||||
<style>
|
||||
.backdrop {
|
||||
position: fixed; inset: 0; background: rgba(4, 5, 10, 0.7); backdrop-filter: blur(6px);
|
||||
position: fixed; inset: 0; background: rgba(5, 6, 9, 0.7);
|
||||
display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade 0.15s ease;
|
||||
}
|
||||
.modal {
|
||||
width: 100%; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface);
|
||||
border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
|
||||
border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow);
|
||||
animation: rise 0.2s ease;
|
||||
}
|
||||
header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; }
|
||||
.body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
|
||||
footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
|
||||
@keyframes fade { from { opacity: 0; } }
|
||||
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
|
||||
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
|
||||
</style>
|
||||
@@ -4,7 +4,7 @@
|
||||
import { logout, session } from '../lib/session.svelte';
|
||||
import Avatar from './Avatar.svelte';
|
||||
|
||||
let { brandName = 'ScopeNet', logo = null }: { brandName?: string; logo?: string | null } = $props();
|
||||
let { brandName = 'SCOPENET', logo = null }: { brandName?: string; logo?: string | null } = $props();
|
||||
|
||||
const items = [
|
||||
{ id: 'dashboard', label: 'Dashboard', icon: LayoutDashboard },
|
||||
@@ -54,12 +54,12 @@
|
||||
<style>
|
||||
aside {
|
||||
position: sticky; top: 0; height: 100vh; width: 248px; flex-shrink: 0; display: flex; flex-direction: column;
|
||||
padding: 20px 14px; border-right: 1px solid var(--line); background: rgba(9, 10, 18, 0.6); backdrop-filter: blur(20px);
|
||||
padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg-2);
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 24px; }
|
||||
.brand img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
|
||||
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
|
||||
.brand div { display: flex; flex-direction: column; min-width: 0; }
|
||||
.brand strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.brand strong { font-size: 0.95rem; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.brand span { font-size: 0.75rem; color: var(--muted); }
|
||||
nav { display: flex; flex-direction: column; gap: 2px; }
|
||||
nav a {
|
||||
@@ -67,12 +67,12 @@
|
||||
font-weight: 500; transition: background 0.15s, color 0.15s; position: relative;
|
||||
}
|
||||
nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
|
||||
nav a.active { background: var(--accent-soft); color: var(--text); }
|
||||
nav a.active { background: rgba(255, 255, 255, 0.06); color: var(--text); }
|
||||
nav a.active::before {
|
||||
content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0;
|
||||
background: linear-gradient(var(--accent), var(--accent-2));
|
||||
background: var(--accent);
|
||||
}
|
||||
nav a.active :global(svg) { color: var(--accent); }
|
||||
nav a.active :global(svg) { color: var(--text); }
|
||||
.docs { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); padding: 10px 12px; }
|
||||
.docs:hover { color: var(--text); }
|
||||
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; max-width: 420px; }
|
||||
.toast {
|
||||
display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px;
|
||||
background: rgba(24, 27, 41, 0.92); backdrop-filter: blur(12px); border: 1px solid var(--line-strong);
|
||||
background: var(--surface-2); border: 1px solid var(--line-strong);
|
||||
box-shadow: var(--shadow); animation: pop 0.2s ease; font-size: 0.9rem;
|
||||
}
|
||||
.toast span { flex: 1; }
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
}
|
||||
|
||||
const presets = [
|
||||
{ name: 'SCOPENET', c: { accent: '#6d6af5', accent_2: '#8b88f8', background: '#0d0e12', surface: '#16181e', text: '#ecedf1', muted: '#8b8f9a' } },
|
||||
{ name: 'Nebula', c: { accent: '#7c5cff', accent_2: '#22d3ee', background: '#0b0d17', surface: '#141828', text: '#eef0ff', muted: '#8b90b3' } },
|
||||
{ name: 'Creeper', c: { accent: '#22c55e', accent_2: '#a3e635', background: '#07110b', surface: '#0f1d15', text: '#ecfdf3', muted: '#86a893' } },
|
||||
{ name: 'Nether', c: { accent: '#f97316', accent_2: '#ef4444', background: '#130806', surface: '#22100c', text: '#fff1eb', muted: '#b48a7e' } },
|
||||
@@ -116,15 +117,14 @@
|
||||
<div class="presets">
|
||||
{#each presets as p}
|
||||
<button class="preset" onclick={() => applyPreset(p)} title={p.name}>
|
||||
<span class="sw" style:background="linear-gradient(135deg, {p.c.accent}, {p.c.accent_2})"></span>
|
||||
<span class="sw2" style:background={p.c.background}></span>
|
||||
<span class="sw" style:background={p.c.background}><i style:background={p.c.accent}></i><i style:background={p.c.surface}></i></span>
|
||||
<span>{p.name}</span>
|
||||
</button>
|
||||
{/each}
|
||||
</div>
|
||||
<div class="colors">
|
||||
<ColorInput bind:value={b.colors.accent} label="Accent" />
|
||||
<ColorInput bind:value={b.colors.accent_2} label="Accent 2 (gradient)" />
|
||||
<ColorInput bind:value={b.colors.accent_2} label="Accent 2" />
|
||||
<ColorInput bind:value={b.colors.background} label="Background" />
|
||||
<ColorInput bind:value={b.colors.surface} label="Surface" />
|
||||
<ColorInput bind:value={b.colors.text} label="Text" />
|
||||
@@ -137,14 +137,14 @@
|
||||
<div class="card col">
|
||||
<div class="segmented">
|
||||
{#each ['gradient', 'image', 'video'] as k}
|
||||
<button class:active={b.background.kind === k} onclick={() => b && (b.background.kind = k as Branding['background']['kind'])}>{k[0].toUpperCase() + k.slice(1)}</button>
|
||||
<button class:active={b.background.kind === k} onclick={() => b && (b.background.kind = k as Branding['background']['kind'])}>{k === 'gradient' ? 'Solid colour' : k[0].toUpperCase() + k.slice(1)}</button>
|
||||
{/each}
|
||||
</div>
|
||||
{#if b.background.kind !== 'gradient'}
|
||||
<ImageInput bind:value={b.background.url} label={b.background.kind === 'video' ? 'Video (mp4/webm)' : 'Image'} video={b.background.kind === 'video'}
|
||||
help={b.background.kind === 'video' ? 'Keep it short and under ~10 MB. Players can turn video off to save resources.' : 'At least 1600×900 looks sharp.'} />
|
||||
{:else}
|
||||
<p class="muted small">An animated gradient built from your accent colours. The lightest option on player PCs.</p>
|
||||
<p class="muted small">A plain background in your background colour. Clean, and the lightest option on player PCs.</p>
|
||||
{/if}
|
||||
<label class="field"><span class="row">Blur <span class="spacer"></span>{b.background.blur}px</span><input type="range" min="0" max="30" bind:value={b.background.blur} /></label>
|
||||
<label class="field"><span class="row">Darken <span class="spacer"></span>{b.background.dim}%</span><input type="range" min="0" max="90" bind:value={b.background.dim} /></label>
|
||||
@@ -162,7 +162,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<label class="field"><span class="row">Corner radius <span class="spacer"></span>{b.radius}px</span><input type="range" min="0" max="28" bind:value={b.radius} /></label>
|
||||
<Toggle bind:checked={b.glass} label="Frosted glass" help="Blurred translucent panels. Turn off for very old graphics cards." />
|
||||
<Toggle bind:checked={b.glass} label="Frosted glass" help="Translucent, blurred panels over image/video backgrounds. Off keeps panels solid." />
|
||||
</div>
|
||||
{:else if section === 'news'}
|
||||
<div class="col">
|
||||
@@ -236,8 +236,8 @@
|
||||
.lbl { font-size: 0.85rem; color: var(--text-2); font-weight: 500; }
|
||||
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
|
||||
.preset { flex-direction: column; gap: 6px; padding: 10px; background: var(--bg-2); font-size: 0.8rem; position: relative; }
|
||||
.sw { width: 100%; height: 28px; border-radius: 8px; }
|
||||
.sw2 { position: absolute; right: 16px; top: 16px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); }
|
||||
.sw { width: 100%; height: 28px; border-radius: 6px; display: flex; gap: 4px; align-items: center; padding: 0 6px; border: 1px solid var(--line); }
|
||||
.sw i { width: 14px; height: 14px; border-radius: 4px; }
|
||||
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
||||
.fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
||||
.font { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; background: var(--bg-2); font-weight: 400; }
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
const total = $derived(stats ? stats.launches.reduce((a: number, d: any) => a + d.launches, 0) : 0);
|
||||
|
||||
const steps = $derived([
|
||||
{ done: !!branding && (branding.name !== 'ScopeNet' || branding.logo_url), label: 'Make the launcher yours', href: '#/branding', icon: Palette },
|
||||
{ done: !!branding && (branding.name !== 'SCOPENET' || branding.logo_url), label: 'Make the launcher yours', href: '#/branding', icon: Palette },
|
||||
{ done: instances.length > 0, label: 'Create your first instance', href: '#/instances', icon: Boxes },
|
||||
{ done: !!stats?.launcher_download_url, label: 'Share the launcher download link', href: '#/settings', icon: Download },
|
||||
{ done: total > 0, label: 'Launch the game once', href: '#/instances', icon: Rocket },
|
||||
@@ -121,9 +121,9 @@
|
||||
.stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
|
||||
.stat { display: flex; flex-direction: column; gap: 4px; color: var(--text); position: relative; overflow: hidden; }
|
||||
.stat .icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; }
|
||||
.stat .value { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
|
||||
.stat .value { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
|
||||
.stat .label { color: var(--muted); font-size: 0.85rem; }
|
||||
.accent .icon { background: var(--accent-soft); color: #b8a6ff; }
|
||||
.accent .icon { background: var(--accent-soft); color: #b9b7fb; }
|
||||
.cyan .icon { background: rgba(34, 211, 238, 0.12); color: #67e8f9; }
|
||||
.warn .icon { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
|
||||
.green .icon { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
|
||||
@@ -141,7 +141,7 @@
|
||||
.top { display: grid; grid-template-columns: 140px 1fr 40px; gap: 12px; align-items: center; font-size: 0.9rem; }
|
||||
.top .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.meter { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
|
||||
.meter span { display: block; height: 100%; background: #8b6cff; border-radius: 99px; }
|
||||
.meter span { display: block; height: 100%; background: #6d6af5; border-radius: 99px; }
|
||||
.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
|
||||
.activity { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
|
||||
.activity > span:nth-child(2) { flex: 1; }
|
||||
|
||||
@@ -426,7 +426,7 @@
|
||||
<div class="row"><Server size={20} /><h3>Built-in server</h3></div>
|
||||
<p class="muted small">Adds your server to the in-game multiplayer list and shows its live status in the launcher.</p>
|
||||
<div class="grid srv">
|
||||
<label class="field">Display name<input bind:value={form.server.name} placeholder="ScopeNet SMP" /></label>
|
||||
<label class="field">Display name<input bind:value={form.server.name} placeholder="SCOPENET SMP" /></label>
|
||||
<label class="field">Address<input bind:value={form.server.address} placeholder="play.example.net" /></label>
|
||||
<label class="field">Port<input type="number" min="1" max="65535" bind:value={form.server.port} /></label>
|
||||
</div>
|
||||
@@ -549,12 +549,12 @@
|
||||
.chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
|
||||
.savebar {
|
||||
position: fixed; bottom: 20px; left: 50%; transform: translateX(calc(-50% + 124px)); display: flex; align-items: center; gap: 12px;
|
||||
padding: 10px 10px 10px 20px; border-radius: 14px; background: rgba(24, 27, 41, 0.92); backdrop-filter: blur(16px);
|
||||
padding: 10px 10px 10px 20px; border-radius: 10px; background: var(--surface-2);
|
||||
border: 1px solid var(--line-strong); box-shadow: var(--shadow); z-index: 20; animation: up 0.2s ease;
|
||||
}
|
||||
@media (max-width: 900px) { .savebar { transform: translateX(-50%); } }
|
||||
@keyframes up { from { opacity: 0; transform: translate(calc(-50% + 124px), 10px); } }
|
||||
.importing { position: fixed; inset: 0; background: rgba(4, 5, 10, 0.75); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 60; }
|
||||
.importing { position: fixed; inset: 0; background: rgba(5, 6, 9, 0.75); display: grid; place-items: center; z-index: 60; }
|
||||
.importing .card { align-items: center; text-align: center; max-width: 380px; padding: 32px; }
|
||||
.importing :global(svg) { color: var(--accent); }
|
||||
</style>
|
||||
@@ -126,7 +126,7 @@
|
||||
.inst { padding: 0; overflow: hidden; color: var(--text); display: flex; flex-direction: column; }
|
||||
.inst.disabled { opacity: 0.6; }
|
||||
.banner {
|
||||
height: 110px; background: radial-gradient(120% 120% at 100% 0%, rgba(139, 108, 255, 0.45), transparent 60%), radial-gradient(100% 100% at 0% 100%, rgba(34, 211, 238, 0.25), transparent 60%), var(--surface-2);
|
||||
height: 96px; background: var(--surface-2); border-bottom: 1px solid var(--line);
|
||||
background-size: cover; background-position: center; position: relative;
|
||||
}
|
||||
.badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
</script>
|
||||
|
||||
<div class="wrap">
|
||||
<div class="orb a"></div>
|
||||
<div class="orb b"></div>
|
||||
<form class="card login" onsubmit={submit}>
|
||||
<img src={logo ?? '/favicon.svg'} alt="" class="logo" />
|
||||
<h1>{brandName}</h1>
|
||||
@@ -45,13 +43,9 @@
|
||||
|
||||
<style>
|
||||
.wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
|
||||
.orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: 0.35; animation: drift 14s ease-in-out infinite alternate; }
|
||||
.orb.a { background: var(--accent); top: -160px; right: -120px; }
|
||||
.orb.b { background: var(--accent-2); bottom: -200px; left: -160px; opacity: 0.2; animation-delay: -7s; }
|
||||
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
|
||||
.login { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; padding: 36px; position: relative; backdrop-filter: blur(20px); background: rgba(18, 20, 31, 0.8); box-shadow: var(--shadow); animation: fade-in 0.4s ease; }
|
||||
.logo { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 4px; object-fit: cover; }
|
||||
h1 { font-size: 1.6rem; }
|
||||
.login { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; padding: 32px; position: relative; animation: fade-in 0.3s ease; }
|
||||
.logo { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 4px; object-fit: cover; }
|
||||
h1 { font-size: 1.4rem; letter-spacing: 0.04em; }
|
||||
.muted { margin-top: -10px; }
|
||||
.big { padding: 12px; margin-top: 6px; }
|
||||
.error { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.3); color: #fda4af; padding: 10px 12px; border-radius: 10px; font-size: 0.88rem; }
|
||||
|
||||
Reference in new issue
Block a user