Files
SixFlagsSuperCalendar/app/park/[id]/loading.tsx
T
josh 5d9daee627
Build and Deploy / Lint, typecheck, test (push) Successful in 30s
Build and Deploy / Build & Push (push) Successful in 1m39s
refactor: production-essentials hardening pass
Backend: structured logger, env-validated config, graceful SIGTERM/SIGINT
shutdown, per-IP rate limiter, per-tier scheduler concurrency latch, error
context on previously-silent catches, compiled-JS Dockerfile stage.

Frontend: lib/api.ts consolidates BACKEND_URL with lazy production-required
check, root + per-segment error.tsx / not-found.tsx / loading.tsx,
generateMetadata on park and ride pages, graceful fallback when backend is
unreachable, Plausible script gated on env vars.

Infra: CI runs lint + typecheck + tests on both packages before docker build,
compose adds healthchecks, log rotation, and memory limits; .env.example
documents every variable.

Cleanup: removed empty app/api/parks/ dir and 0-byte root parks.db, moved
wait-times-urls.txt into docs/, dropped an `as any` cast.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-30 10:17:52 -04:00

36 lines
1.4 KiB
TypeScript

export default function ParkLoading() {
return (
<div style={{ minHeight: "100vh", background: "var(--color-bg)" }}>
<header style={{
position: "sticky",
top: 0,
zIndex: 20,
background: "var(--color-bg)",
borderBottom: "1px solid var(--color-border)",
padding: "12px 24px",
display: "flex",
alignItems: "center",
gap: 16,
}}>
<div className="skeleton" style={{ width: 120, height: 18, borderRadius: 4 }} />
<div style={{ width: 1, height: 16, background: "var(--color-border)" }} />
<div className="skeleton" style={{ width: 180, height: 16, borderRadius: 4 }} />
</header>
<main style={{ padding: "24px 32px", maxWidth: 1280, margin: "0 auto", display: "flex", flexDirection: "column", gap: 40 }}>
<section>
<div className="skeleton" style={{ width: "100%", height: 320, borderRadius: 8 }} />
</section>
<section>
<div className="skeleton" style={{ width: 180, height: 16, borderRadius: 4, marginBottom: 16 }} />
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(280px, 1fr))", gap: 6 }}>
{Array.from({ length: 8 }).map((_, i) => (
<div key={i} className="skeleton" style={{ height: 36, borderRadius: 8 }} />
))}
</div>
</section>
</main>
</div>
);
}