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:
Claude committed 2026-09-28 05:30:19 +00:00
1 parent 214aa6ad19
commit 1b1bb984bc
69 files changed
+378 -426

No files matched your search

+1 -1
View File
@@ -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);
+84 -98
View File
@@ -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(&quot;{media}&quot;)"></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>
+3 -3
View File
@@ -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>
+7 -7
View File
@@ -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); }
+1 -1
View File
@@ -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; }