mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
new www
This commit is contained in:
+21
-1
@@ -3,7 +3,27 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>RecFlare</title>
|
<title>RecFlare — an open source implementation of the 2023 RecNet servers</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="RecFlare is an open source implementation of the 2023 RecNet servers, designed for the cloud and running on Cloudflare Workers."
|
||||||
|
/>
|
||||||
|
<meta name="theme-color" content="#14100c" />
|
||||||
|
<!-- Inline so the mark costs no request: the orange spark from the RecFlare logo. -->
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%2314100c'/%3E%3Cpath d='M16 5c1.8 4.2 4.3 6 6.4 8.1a8.9 8.9 0 1 1-12.8 0C11.7 11 14.2 9.2 16 5z' fill='%23fe7101'/%3E%3C/svg%3E"
|
||||||
|
/>
|
||||||
|
<!--
|
||||||
|
Archivo sets the nameplate; IBM Plex Sans/Mono is the machine's own voice
|
||||||
|
(body copy and the mono metadata on the photo feed).
|
||||||
|
-->
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
|
<link
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap"
|
||||||
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
+168
-48
@@ -1,4 +1,18 @@
|
|||||||
import { useCallback, useEffect, useState, type ReactNode } from 'react'
|
import { useCallback, useEffect, useState } from 'react'
|
||||||
|
|
||||||
|
import type { ReactNode } from 'react'
|
||||||
|
|
||||||
|
/** The community Discord — the join instructions and the build both live there. */
|
||||||
|
const DISCORD_INVITE = 'https://discord.gg/HhmMAKhrz'
|
||||||
|
|
||||||
|
/** Where the stage's "Download for PC" button goes: the client's release listing. */
|
||||||
|
const DOWNLOAD_URL = 'https://github.com/djdevin/recflare-client/releases'
|
||||||
|
|
||||||
|
/** The public source repo, linked from the homepage and footer. */
|
||||||
|
const SOURCE_REPO = 'https://github.com/djdevin/recflare'
|
||||||
|
|
||||||
|
/** The repo's licence, behind the footer's "MIT licensed". */
|
||||||
|
const LICENSE_URL = `${SOURCE_REPO}/blob/main/LICENSE`
|
||||||
|
|
||||||
/** The self-account shape returned by the www BFF (`/api/me`, `/api/login`, …). */
|
/** The self-account shape returned by the www BFF (`/api/me`, `/api/login`, …). */
|
||||||
interface SelfAccount {
|
interface SelfAccount {
|
||||||
@@ -105,10 +119,33 @@ export function App() {
|
|||||||
) : (
|
) : (
|
||||||
<HomePage />
|
<HomePage />
|
||||||
)}
|
)}
|
||||||
|
<SiteFooter />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Footer: where to go next, plus the affiliation disclaimer. */
|
||||||
|
function SiteFooter() {
|
||||||
|
return (
|
||||||
|
<footer className="footer">
|
||||||
|
<span>
|
||||||
|
<a href={LICENSE_URL} target="_blank" rel="noreferrer">
|
||||||
|
MIT licensed
|
||||||
|
</a>{' '}
|
||||||
|
· a fan project, not affiliated with Rec Room Inc.
|
||||||
|
</span>
|
||||||
|
<nav>
|
||||||
|
<a href={DISCORD_INVITE} target="_blank" rel="noreferrer">
|
||||||
|
Discord
|
||||||
|
</a>
|
||||||
|
<a href={SOURCE_REPO} target="_blank" rel="noreferrer">
|
||||||
|
GitHub
|
||||||
|
</a>
|
||||||
|
</nav>
|
||||||
|
</footer>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
/** Top nav: brand → home, plus a sign-in / my-account link for the session. */
|
/** Top nav: brand → home, plus a sign-in / my-account link for the session. */
|
||||||
function NavBar({
|
function NavBar({
|
||||||
account,
|
account,
|
||||||
@@ -127,6 +164,9 @@ function NavBar({
|
|||||||
RecFlare
|
RecFlare
|
||||||
</Link>
|
</Link>
|
||||||
<nav className="nav-links">
|
<nav className="nav-links">
|
||||||
|
<a href={DISCORD_INVITE} target="_blank" rel="noreferrer">
|
||||||
|
Discord
|
||||||
|
</a>
|
||||||
{account === undefined ? null : account ? (
|
{account === undefined ? null : account ? (
|
||||||
<>
|
<>
|
||||||
<Link to="/account" navigate={navigate} className={path === '/account' ? 'active' : ''}>
|
<Link to="/account" navigate={navigate} className={path === '/account' ? 'active' : ''}>
|
||||||
@@ -146,15 +186,6 @@ function NavBar({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Public homepage: a slideshow of recent public photos. */
|
|
||||||
function HomePage() {
|
|
||||||
return (
|
|
||||||
<main className="shell wide">
|
|
||||||
<Slideshow />
|
|
||||||
</main>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
/** A recent public image plus who took it and where. */
|
/** A recent public image plus who took it and where. */
|
||||||
interface Slide {
|
interface Slide {
|
||||||
url: string
|
url: string
|
||||||
@@ -162,10 +193,10 @@ interface Slide {
|
|||||||
roomName: string | null
|
roomName: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
function Slideshow() {
|
/** Loads the public photo feed once. `slides === null` means still in flight. */
|
||||||
|
function useSlideshow() {
|
||||||
const [slides, setSlides] = useState<Slide[] | null>(null)
|
const [slides, setSlides] = useState<Slide[] | null>(null)
|
||||||
const [error, setError] = useState('')
|
const [error, setError] = useState('')
|
||||||
const [idx, setIdx] = useState(0)
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
api<{ images: Slide[] }>('/api/slideshow')
|
api<{ images: Slide[] }>('/api/slideshow')
|
||||||
@@ -173,44 +204,127 @@ function Slideshow() {
|
|||||||
.catch((e) => setError(e instanceof Error ? e.message : String(e)))
|
.catch((e) => setError(e instanceof Error ? e.message : String(e)))
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
return { slides, error }
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Public homepage. The stage leads: photos players actually took, with the way in
|
||||||
|
* on top of them. Everything about how the thing is built sits below, for whoever
|
||||||
|
* scrolls looking for it.
|
||||||
|
*/
|
||||||
|
function HomePage() {
|
||||||
|
const feed = useSlideshow()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main>
|
||||||
|
<Stage slides={feed.slides} />
|
||||||
|
<div className="shell home">
|
||||||
|
<About slides={feed.slides} error={feed.error} />
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The hero: a rotating in-game photo with the headline and the way in over it. The
|
||||||
|
* photo is the backdrop, never the payload — when the feed is slow or down the stage
|
||||||
|
* still renders, so "Play now!" is reachable either way.
|
||||||
|
*/
|
||||||
|
function Stage({ slides }: { slides: Slide[] | null }) {
|
||||||
|
const [idx, setIdx] = useState(0)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!slides || slides.length < 2) return
|
if (!slides || slides.length < 2) return
|
||||||
const t = setInterval(() => setIdx((i) => (i + 1) % slides.length), 5000)
|
const t = setInterval(() => setIdx((i) => (i + 1) % slides.length), 6000)
|
||||||
return () => clearInterval(t)
|
return () => clearInterval(t)
|
||||||
}, [slides])
|
}, [slides])
|
||||||
|
|
||||||
if (error) return <p className="error">Couldn’t load the slideshow: {error}</p>
|
const slide = slides && slides.length > 0 ? slides[idx] : null
|
||||||
if (!slides) return <p className="muted">Loading…</p>
|
|
||||||
if (slides.length === 0) return <p className="muted">No photos yet.</p>
|
|
||||||
|
|
||||||
const slide = slides[idx]
|
|
||||||
const step = (delta: number) => setIdx((i) => (i + delta + slides.length) % slides.length)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="slideshow">
|
<section className="stage">
|
||||||
<div className="slide-stage">
|
{slide && (
|
||||||
<img src={slide.url} alt={`Photo by ${slide.username}`} />
|
<img
|
||||||
{slides.length > 1 && (
|
className="stage-photo"
|
||||||
<>
|
key={slide.url}
|
||||||
<button className="slide-nav prev" onClick={() => step(-1)} aria-label="Previous photo">
|
src={slide.url}
|
||||||
‹
|
alt={`Photo taken in game by ${slide.username}`}
|
||||||
</button>
|
/>
|
||||||
<button className="slide-nav next" onClick={() => step(1)} aria-label="Next photo">
|
)}
|
||||||
›
|
<div className="stage-body">
|
||||||
</button>
|
{/* Deliberately doesn't name the game: this is a fan project, so the
|
||||||
</>
|
trademark stays out of the headline and appears lower down, in
|
||||||
)}
|
plain nominative use next to the disclaimer. */}
|
||||||
</div>
|
<h1 className="stage-title">
|
||||||
<div className="slide-meta">
|
Play like it's <em>2023</em>.
|
||||||
<div>
|
</h1>
|
||||||
<span className="big">@{slide.username}</span>
|
<div className="stage-actions">
|
||||||
{slide.roomName && <span className="muted"> · {slide.roomName}</span>}
|
<a className="cta" href={DOWNLOAD_URL} target="_blank" rel="noreferrer">
|
||||||
</div>
|
Download for PC
|
||||||
<div className="muted">
|
</a>
|
||||||
{idx + 1} / {slides.length}
|
<a className="cta discord" href={DISCORD_INVITE} target="_blank" rel="noreferrer">
|
||||||
|
Join the Discord
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{slide && (
|
||||||
|
<div className="stage-foot">
|
||||||
|
<span className="credit">
|
||||||
|
Photo by @{slide.username}
|
||||||
|
{slide.roomName && ` in ${slide.roomName}`}
|
||||||
|
</span>
|
||||||
|
{slides && slides.length > 1 && (
|
||||||
|
<span className="dots">
|
||||||
|
{slides.map((s, i) => (
|
||||||
|
<button
|
||||||
|
key={s.url}
|
||||||
|
className={i === idx ? 'on' : ''}
|
||||||
|
onClick={() => setIdx(i)}
|
||||||
|
aria-label={`Show photo ${i + 1} of ${slides.length}`}
|
||||||
|
aria-current={i === idx}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
/** What RecFlare is, under the fold, for whoever wants it. */
|
||||||
|
function About({ slides, error }: { slides: Slide[] | null; error: string }) {
|
||||||
|
// The feed answering is proof the server replied, so the indicator can't claim
|
||||||
|
// the server is up when it isn't.
|
||||||
|
const state = slides !== null ? 'online' : error ? 'down' : 'checking'
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="about">
|
||||||
|
<div>
|
||||||
|
<h2 className="about-title">
|
||||||
|
An open source implementation of the 2023 RecNet servers, designed for the cloud
|
||||||
|
</h2>
|
||||||
|
<p className="about-lede">
|
||||||
|
A free, independent fan project, aiming to be <strong>feature-complete</strong> and
|
||||||
|
infinitely scalable. No gatekeeping, no basement server. Designed for Cloudflare Workers.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="about-side">
|
||||||
|
<div className="about-links">
|
||||||
|
<a className="cta ghost" href={SOURCE_REPO} target="_blank" rel="noreferrer">
|
||||||
|
View the source
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<p className={`status ${state}`}>
|
||||||
|
<span className="dot" />
|
||||||
|
{state === 'online'
|
||||||
|
? 'Server online'
|
||||||
|
: state === 'down'
|
||||||
|
? 'Server unreachable'
|
||||||
|
: 'Checking the server'}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,6 +346,10 @@ function LoginPage({
|
|||||||
<main className="shell">
|
<main className="shell">
|
||||||
<section className="card">
|
<section className="card">
|
||||||
<h2>Sign in</h2>
|
<h2>Sign in</h2>
|
||||||
|
<p className="muted">
|
||||||
|
Launch the game first — that creates an account linked to your Steam ID. Once you set a
|
||||||
|
password, use your username and that password to sign in here.
|
||||||
|
</p>
|
||||||
<LoginForm
|
<LoginForm
|
||||||
onAuthed={(a) => {
|
onAuthed={(a) => {
|
||||||
onAuthed(a)
|
onAuthed(a)
|
||||||
@@ -355,7 +473,11 @@ function Dashboard({
|
|||||||
// The dashboard sections, shown one at a time via the left tab rail. Admin-only
|
// The dashboard sections, shown one at a time via the left tab rail. Admin-only
|
||||||
// sections are appended when the session carries an admin role.
|
// sections are appended when the session carries an admin role.
|
||||||
const sections = [
|
const sections = [
|
||||||
{ id: 'email', label: 'Email', render: () => <EmailForm account={account} onChange={onChange} /> },
|
{
|
||||||
|
id: 'email',
|
||||||
|
label: 'Email',
|
||||||
|
render: () => <EmailForm account={account} onChange={onChange} />,
|
||||||
|
},
|
||||||
{ id: 'password', label: 'Password', render: () => <PasswordForm /> },
|
{ id: 'password', label: 'Password', render: () => <PasswordForm /> },
|
||||||
...(account.isAdmin
|
...(account.isAdmin
|
||||||
? [
|
? [
|
||||||
@@ -369,14 +491,12 @@ function Dashboard({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<section className="card">
|
<section className="card identity">
|
||||||
<div className="muted">Signed in as</div>
|
<div className="muted">Signed in as</div>
|
||||||
<div className="big">
|
<div className="big">{account.displayName || account.username}</div>
|
||||||
{account.displayName || account.username}{' '}
|
<div className="handle">
|
||||||
<span className="muted">#{account.accountId}</span>
|
@{account.username} · #{account.accountId} · {account.email ?? 'no email set'}
|
||||||
</div>
|
</div>
|
||||||
<div className="muted">@{account.username}</div>
|
|
||||||
<div className="muted">{account.email ?? 'no email set'}</div>
|
|
||||||
</section>
|
</section>
|
||||||
<div className="workspace">
|
<div className="workspace">
|
||||||
<nav className="vtabs">
|
<nav className="vtabs">
|
||||||
|
|||||||
+475
-121
@@ -1,28 +1,54 @@
|
|||||||
/* RecFlare brand: vivid orange (#FE7101) on warm cream (#FCEFDC), sampled from the logo. */
|
/*
|
||||||
|
* RecFlare — a live-service readout.
|
||||||
|
*
|
||||||
|
* The page's job is to show that this server is actually up and that real people are
|
||||||
|
* on it, then get you into the Discord. So the surface is warm-dark (the room the
|
||||||
|
* screenshots are lit against), and the logo orange (#FE7101) is spent only on actions
|
||||||
|
* and the brand mark — never as decoration, or it stops reading as "click this". Green
|
||||||
|
* means one thing throughout, healthy: the server is up, or the change saved.
|
||||||
|
*
|
||||||
|
* Type: Archivo for the nameplate, IBM Plex Sans for prose, IBM Plex Mono for anything
|
||||||
|
* the server itself would say (handles, room names, counts, endpoint paths).
|
||||||
|
*/
|
||||||
:root {
|
:root {
|
||||||
color-scheme: light dark;
|
color-scheme: dark light;
|
||||||
--bg: #fdf3e7;
|
|
||||||
--card: #ffffff;
|
--bg: #14100c;
|
||||||
--text: #33241a;
|
--surface: #1e1813;
|
||||||
--muted: #8a7360;
|
--surface-hi: #26201a;
|
||||||
--border: #efe0cc;
|
--line: #33291f;
|
||||||
|
--text: #f5ede1;
|
||||||
|
--muted: #a8927c;
|
||||||
--accent: #fe7101;
|
--accent: #fe7101;
|
||||||
--accent-hover: #e86400;
|
--accent-hover: #ff8c33;
|
||||||
--accent-text: #ffffff;
|
/* Dark ink on orange: white on this orange is only ~2.9:1 and fails AA. */
|
||||||
--error: #dc2626;
|
--accent-text: #17110a;
|
||||||
--ok: #15803d;
|
--live: #35d07f;
|
||||||
|
--error: #ff6b5e;
|
||||||
|
--ok: #35d07f;
|
||||||
|
|
||||||
|
--display: Archivo, system-ui, sans-serif;
|
||||||
|
--body: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
|
||||||
|
--mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||||
|
|
||||||
|
--radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: light) {
|
||||||
:root {
|
:root {
|
||||||
--bg: #17120d;
|
/* Off-white with just enough warmth to sit under the orange — not a cream wash. */
|
||||||
--card: #221a12;
|
--bg: #f7f5f2;
|
||||||
--text: #f4eadb;
|
--surface: #ffffff;
|
||||||
--muted: #b49b84;
|
--surface-hi: #fbf9f6;
|
||||||
--border: #362a1e;
|
--line: #e2ddd6;
|
||||||
--accent: #ff8320;
|
--text: #201a14;
|
||||||
--accent-hover: #ff9540;
|
--muted: #736656;
|
||||||
--ok: #22c55e;
|
--accent: #e05f00;
|
||||||
|
--accent-hover: #c65300;
|
||||||
|
--accent-text: #fffaf4;
|
||||||
|
--live: #12855a;
|
||||||
|
--error: #c62f22;
|
||||||
|
--ok: #12855a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,145 +60,426 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font:
|
font: 400 16px/1.6 var(--body);
|
||||||
15px/1.5 system-ui,
|
-webkit-font-smoothing: antialiased;
|
||||||
-apple-system,
|
|
||||||
Segoe UI,
|
|
||||||
Roboto,
|
|
||||||
sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Keyboard focus stays visible everywhere, including on the dark surfaces. */
|
||||||
|
:focus-visible {
|
||||||
|
outline: 2px solid var(--accent);
|
||||||
|
outline-offset: 2px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- Containers --------------------------------------------------------- */
|
||||||
|
|
||||||
.shell {
|
.shell {
|
||||||
max-width: 460px;
|
max-width: 440px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 32px 20px 64px;
|
padding: 40px 20px 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Widened for the account tab layout and the homepage slideshow. */
|
/* The account dashboard: room for the tab rail without stranding the forms. */
|
||||||
.shell.wide {
|
.shell.wide {
|
||||||
max-width: 760px;
|
max-width: 880px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Top navigation, shown on every page. */
|
/* The homepage: the stage runs full-bleed above this, so it brings its own top space. */
|
||||||
|
.shell.home {
|
||||||
|
max-width: 1040px;
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- Navigation --------------------------------------------------------- */
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
max-width: 760px;
|
gap: 16px;
|
||||||
|
max-width: 1040px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 16px 20px;
|
padding: 20px;
|
||||||
border-bottom: 1px solid var(--border);
|
border-bottom: 1px solid var(--line);
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand {
|
.brand {
|
||||||
font-weight: 700;
|
display: inline-flex;
|
||||||
font-size: 1.15rem;
|
align-items: center;
|
||||||
color: var(--accent);
|
gap: 9px;
|
||||||
|
font-family: var(--display);
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--text);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
letter-spacing: -0.01em;
|
}
|
||||||
|
|
||||||
|
.brand::before {
|
||||||
|
content: '';
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links {
|
.nav-links {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 16px;
|
gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-links a {
|
.nav-links a,
|
||||||
|
.linkish {
|
||||||
|
font-family: var(--mono);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 0.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-links a:hover,
|
|
||||||
.nav-links a.active {
|
|
||||||
color: var(--text);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.linkish {
|
.linkish {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: var(--muted);
|
|
||||||
font-size: 0.9rem;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-links a:hover,
|
||||||
|
.nav-links a.active,
|
||||||
.linkish:hover {
|
.linkish:hover {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Homepage slideshow. */
|
/* ---- The stage (hero) --------------------------------------------------- */
|
||||||
.slide-stage {
|
|
||||||
|
/*
|
||||||
|
* Full-bleed, edge to edge under the nav: a photo somebody actually took in game,
|
||||||
|
* with the headline and the way in over it. The photo is the backdrop and never the
|
||||||
|
* payload — with no photo the stage is still a solid panel carrying the same words.
|
||||||
|
*/
|
||||||
|
.stage {
|
||||||
position: relative;
|
position: relative;
|
||||||
aspect-ratio: 16 / 9;
|
display: flex;
|
||||||
background: var(--card);
|
flex-direction: column;
|
||||||
border: 1px solid var(--border);
|
justify-content: flex-end;
|
||||||
border-radius: 12px;
|
min-height: min(40vh, 320px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
background: var(--surface-hi);
|
||||||
|
isolation: isolate;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-stage img {
|
.stage-photo {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
display: block;
|
z-index: -2;
|
||||||
|
animation: photo-in 0.7s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-nav {
|
@keyframes photo-in {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Scrim: enough weight at the bottom to hold white text over any screenshot. */
|
||||||
|
.stage::before {
|
||||||
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
inset: 0;
|
||||||
transform: translateY(-50%);
|
z-index: -1;
|
||||||
width: 40px;
|
background: linear-gradient(
|
||||||
height: 40px;
|
to top,
|
||||||
border: none;
|
rgb(10 7 4 / 90%) 0%,
|
||||||
border-radius: 50%;
|
rgb(10 7 4 / 64%) 30%,
|
||||||
background: rgba(0, 0, 0, 0.45);
|
rgb(10 7 4 / 16%) 62%,
|
||||||
color: #fff;
|
rgb(10 7 4 / 26%) 100%
|
||||||
font-size: 1.6rem;
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stage-body {
|
||||||
|
max-width: 1040px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 20px 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stage-title {
|
||||||
|
font-family: var(--display);
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: clamp(2rem, 5vw, 3.4rem);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
letter-spacing: -0.03em;
|
||||||
|
color: #fff;
|
||||||
|
margin: 0 0 20px;
|
||||||
|
max-width: 15ch;
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The one place the orange carries meaning in the headline: the year it restores. */
|
||||||
|
.stage-title em {
|
||||||
|
font-style: normal;
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Credit line and slide dots, sitting under the headline on the photo itself. */
|
||||||
|
.stage-foot {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px 20px;
|
||||||
|
max-width: 1040px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 20px 22px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: rgb(255 255 255 / 72%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The dots are the only way to steer the stage, so each one gets a 24px target
|
||||||
|
even though the mark itself is 7px. */
|
||||||
|
.dots {
|
||||||
|
display: flex;
|
||||||
|
margin: -8px -6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dots button {
|
||||||
|
display: grid;
|
||||||
|
place-content: center;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
padding: 0;
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-nav:hover {
|
.dots button::after {
|
||||||
background: rgba(0, 0, 0, 0.65);
|
content: '';
|
||||||
|
width: 7px;
|
||||||
|
height: 7px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: rgb(255 255 255 / 34%);
|
||||||
|
transition: background 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-nav.prev {
|
.dots button:hover::after {
|
||||||
left: 12px;
|
background: rgb(255 255 255 / 65%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-nav.next {
|
.dots button.on::after {
|
||||||
right: 12px;
|
background: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.slide-meta {
|
/* ---- What it is (below the stage) --------------------------------------- */
|
||||||
|
|
||||||
|
.about {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
|
gap: 32px 48px;
|
||||||
|
align-items: start;
|
||||||
|
padding: 56px 0 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-title {
|
||||||
|
font-family: var(--display);
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: clamp(1.35rem, 2.6vw, 1.75rem);
|
||||||
|
line-height: 1.15;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
margin: 0 0 12px;
|
||||||
|
max-width: 34ch;
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-lede {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
color: var(--muted);
|
||||||
|
margin: 0;
|
||||||
|
max-width: 56ch;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Emphasis in the lede lifts to full text colour — bolder alone barely reads
|
||||||
|
against the muted grey it sits in. */
|
||||||
|
.about-lede strong {
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-side {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
flex-direction: column;
|
||||||
align-items: baseline;
|
align-items: flex-start;
|
||||||
gap: 12px;
|
gap: 20px;
|
||||||
margin-top: 14px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-links {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Status of the actual server, not decoration — see About. */
|
||||||
|
.status {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 9px;
|
||||||
|
margin: 0;
|
||||||
|
font-family: var(--mono);
|
||||||
|
font-size: 0.75rem;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status .dot {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--muted);
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status.online .dot {
|
||||||
|
background: var(--live);
|
||||||
|
box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 22%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status.online {
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.status.down .dot {
|
||||||
|
background: var(--error);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta {
|
||||||
|
display: inline-block;
|
||||||
|
font-family: var(--body);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.975rem;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 13px 30px;
|
||||||
|
border-radius: var(--radius);
|
||||||
|
border: 1px solid var(--accent);
|
||||||
|
background: var(--accent);
|
||||||
|
color: var(--accent-text);
|
||||||
|
transition:
|
||||||
|
background 0.15s ease,
|
||||||
|
border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta:hover {
|
||||||
|
background: var(--accent-hover);
|
||||||
|
border-color: var(--accent-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stage-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Discord blurple, so the button is recognisable before the label is read. Fixed
|
||||||
|
colours rather than tokens: it sits on a photo, so it can't follow the theme. */
|
||||||
|
.cta.discord {
|
||||||
|
background: #5865f2;
|
||||||
|
border-color: #5865f2;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta.discord:hover {
|
||||||
|
background: #4752c4;
|
||||||
|
border-color: #4752c4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Secondary action: same shape, outlined instead of filled. */
|
||||||
|
.cta.ghost {
|
||||||
|
background: transparent;
|
||||||
|
border-color: var(--line);
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cta.ghost:hover {
|
||||||
|
background: var(--surface);
|
||||||
|
border-color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- Footer ------------------------------------------------------------- */
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px 24px;
|
||||||
|
max-width: 1040px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 24px 20px 40px;
|
||||||
|
border-top: 1px solid var(--line);
|
||||||
|
font-family: var(--mono);
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: var(--muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer nav {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer a {
|
||||||
|
color: var(--muted);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer a:hover {
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The licence link sits inside a sentence rather than the link row, so it needs an
|
||||||
|
underline to be findable at all. */
|
||||||
|
.footer span a {
|
||||||
|
text-decoration: underline;
|
||||||
|
text-underline-offset: 2px;
|
||||||
|
text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer span a:hover {
|
||||||
|
text-decoration-color: currentcolor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---- Cards and the account workspace ------------------------------------ */
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 1.5rem;
|
font-family: var(--display);
|
||||||
margin: 0 0 20px;
|
font-weight: 700;
|
||||||
|
font-size: 1.7rem;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
margin: 0 0 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: 1rem;
|
font-family: var(--display);
|
||||||
margin: 0 0 12px;
|
font-weight: 700;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
margin: 0 0 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background: var(--card);
|
background: var(--surface);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--line);
|
||||||
border-radius: 12px;
|
border-radius: var(--radius);
|
||||||
padding: 20px;
|
padding: 22px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Signed-in layout: a vertical tab rail on the left, the active section on the right. */
|
|
||||||
.workspace {
|
.workspace {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 190px 1fr;
|
grid-template-columns: 190px 1fr;
|
||||||
@@ -191,48 +498,42 @@ h2 {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
padding: 9px 12px;
|
padding: 10px 13px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
font-family: var(--body);
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vtabs button:hover {
|
.vtabs button:hover {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
background: var(--card);
|
background: var(--surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
.vtabs button.active {
|
.vtabs button.active {
|
||||||
background: var(--card);
|
background: var(--surface);
|
||||||
border-color: var(--border);
|
border-color: var(--line);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The active section's card already carries its own margin; drop it inside the panel. */
|
/* The active section's card carries its own margin; drop it inside the panel. */
|
||||||
.panel .card {
|
.panel .card {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stack the rail above the panel on narrow screens. */
|
/* Identity strip on the account page: the account's own record, set in mono. */
|
||||||
@media (max-width: 620px) {
|
.identity .handle {
|
||||||
.workspace {
|
font-family: var(--mono);
|
||||||
grid-template-columns: 1fr;
|
font-size: 0.85rem;
|
||||||
}
|
color: var(--muted);
|
||||||
|
|
||||||
.vtabs {
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vtabs button {
|
|
||||||
border-color: var(--border);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---- Forms -------------------------------------------------------------- */
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 14px;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
}
|
}
|
||||||
@@ -241,9 +542,9 @@ input,
|
|||||||
textarea {
|
textarea {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 4px;
|
margin-top: 6px;
|
||||||
padding: 9px 11px;
|
padding: 10px 12px;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--line);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
@@ -266,13 +567,15 @@ textarea:focus {
|
|||||||
button[type='submit'] {
|
button[type='submit'] {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 10px 16px;
|
padding: 11px 18px;
|
||||||
|
font-family: var(--body);
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
|
font-weight: 600;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: var(--accent);
|
background: var(--accent);
|
||||||
color: var(--accent-text);
|
color: var(--accent-text);
|
||||||
font-weight: 600;
|
/* Hugs its label: a full-width orange bar for "save email" outshouts the hero. */
|
||||||
width: 100%;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
button[type='submit']:not(:disabled):hover {
|
button[type='submit']:not(:disabled):hover {
|
||||||
@@ -280,29 +583,80 @@ button[type='submit']:not(:disabled):hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
button[type='submit']:disabled {
|
button[type='submit']:disabled {
|
||||||
opacity: 0.6;
|
opacity: 0.55;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ---- Utilities ---------------------------------------------------------- */
|
||||||
|
|
||||||
.big {
|
.big {
|
||||||
font-size: 1.1rem;
|
font-family: var(--display);
|
||||||
font-weight: 600;
|
font-size: 1.2rem;
|
||||||
margin: 2px 0;
|
font-weight: 700;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
margin: 3px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.muted {
|
.muted {
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 0.85rem;
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error,
|
||||||
|
.ok {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
margin: 0 0 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
color: var(--error);
|
color: var(--error);
|
||||||
font-size: 0.85rem;
|
|
||||||
margin: 0 0 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ok {
|
.ok {
|
||||||
color: var(--ok);
|
color: var(--ok);
|
||||||
font-size: 0.85rem;
|
}
|
||||||
margin: 0 0 12px;
|
|
||||||
|
/* ---- Responsive --------------------------------------------------------- */
|
||||||
|
|
||||||
|
@media (max-width: 760px) {
|
||||||
|
/* One column: the copy first, then the links and the status under it. */
|
||||||
|
.about {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 26px;
|
||||||
|
padding-top: 40px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 620px) {
|
||||||
|
.stage {
|
||||||
|
min-height: min(38vh, 300px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-links .cta {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vtabs {
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vtabs button {
|
||||||
|
border-color: var(--line);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
animation-duration: 0.01ms !important;
|
||||||
|
animation-iteration-count: 1 !important;
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user