feat(landing): slim status section, hero, and server-card icon
- Remove the stat-grid from the status section (server card only); prune the now-orphaned site.stats, MOD_COUNT_KEY, statLabels (3 locales), and .stat-grid/.tile CSS. - Empty-roster message -> "Nobody online", now localized (status.empty in en/es/eu) and wired to both ServerCard instances. - Flatten the server-card icon (drop the inset emboss bevel on .sc-icon). - Drop "Solo LAN" (hero metaLan) from the hero meta row; prune metaLan (3 locales). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,15 +5,9 @@
|
||||
// @ts-ignore — node builtins (no @types/node in this Astro SSG; same reason
|
||||
// `process` below is untyped). Used only at build time to read the manifest.
|
||||
import { readFileSync } from "node:fs";
|
||||
import { MODS } from "./mods";
|
||||
|
||||
const BASE_DOMAIN = process.env.BASE_DOMAIN ?? "ulicraft.local";
|
||||
|
||||
// Installed-pack mod count, fed by tooling/build-modlist.py via mods.json (see
|
||||
// ./mods.ts). Feeds the homepage "Mods" stat tile. When the generated catalogue
|
||||
// is absent/empty (fresh checkout), fall back to the honest "50+" estimate.
|
||||
const MOD_COUNT_KEY = MODS.count > 0 ? `${MODS.count}` : "50+";
|
||||
|
||||
// NMSR render mode for avatar tiles. AVATAR_MODE is the ServerCard online row +
|
||||
// account preview (heads); ROSTER_AVATAR_MODE is the Members grid (full body by
|
||||
// default). Read at build time, same as BASE_DOMAIN. e.g. "headiso" | "head" |
|
||||
@@ -183,15 +177,6 @@ export const site = {
|
||||
rosterApi: `/api/mcstatus/players`,
|
||||
},
|
||||
|
||||
// Honest stat tiles. Keys (numbers/versions) are language-neutral; labels
|
||||
// come from ui.ts (same order).
|
||||
stats: [
|
||||
{ key: MOD_COUNT_KEY },
|
||||
{ key: MC_VERSION },
|
||||
{ key: "10" },
|
||||
{ key: "6h" },
|
||||
],
|
||||
|
||||
// Feature cards. glyph ∈ shield|diamond|orb|heart; gold = gold pixel fill.
|
||||
// Text (h/p) comes from ui.ts (same order).
|
||||
features: [
|
||||
|
||||
Reference in New Issue
Block a user