Overhaul fixes: raised cards, balanced people rows, solid map, small button radius

- Cards sit on a raised surface (white, or a touch of tint in dark
  mode) with a shadow: featured cards, the connect block, people
  tiles. tint-soft is a faint teal again, not green.
- Buttons: a small plain radius everywhere; no superellipse.
- Video stills use YouTube's 16:9 frame (the 4:3 one cropped as a
  fallback), have small rounded corners, and show a round, centered
  play button on hover or focus (always on touch screens).
- People tiles: rows balanced between 2 and 10 across, never ending
  on a lone tile where it can be helped.
- Map tiles and region tags are solid, dimmed by color, not opacity.
- Admin: white (surface) background, header and footer as wide as
  the content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 16:24:36 -05:00
parent 582c65077d
commit a397f3eac0
12 changed files with 165 additions and 61 deletions

View file

@ -114,6 +114,9 @@ export default function AdminLayout() {
// Whether the page below asked for extra room (the record editor,
// for its section nav). setWide is a state setter, so it's stable.
const [wide, setWide] = useState(false);
// The header, its strip and the footer line up with the content,
// however wide the page asked for.
const column = wide ? "max-w-[82rem]" : "max-w-5xl";
useEffect(() => {
// Sections only exist in the CMS. Home and Panel already say
@ -133,9 +136,9 @@ export default function AdminLayout() {
const wordmark = <span className="text-lg font-bold text-link">{areaTitle}</span>;
return (
<div className="flex min-h-screen flex-col bg-tint-soft">
<div className="flex min-h-screen flex-col bg-surface">
<header className="border-b border-brand/20 bg-surface">
<div className="mx-auto flex max-w-5xl flex-wrap items-center gap-x-8 gap-y-3 px-6 py-4">
<div className={`mx-auto flex ${column} flex-wrap items-center gap-x-8 gap-y-3 px-6 py-4`}>
{/* Already home, so nothing to link to. */}
{isHome ? (
wordmark
@ -183,8 +186,8 @@ export default function AdminLayout() {
{/* Subnav. Only drawn where there is something to draw, so
Events and People don't get an empty gray strip. */}
{subnav.length > 0 && (
<div className="border-t border-brand/10 bg-tint-soft">
<div className="mx-auto flex max-w-5xl flex-wrap gap-6 px-6 py-2.5 text-sm">
<div className="border-t border-brand/10 bg-surface">
<div className={`mx-auto flex ${column} flex-wrap gap-6 px-6 py-2.5 text-sm`}>
{subnav.map((child) => (
<NavLink
key={child.to}
@ -206,7 +209,7 @@ export default function AdminLayout() {
{/* flex-1 rather than a fixed height: the footer sits at the
bottom of a short page and below the content of a long one,
without ever floating over it. */}
<main className={`mx-auto w-full flex-1 px-6 py-10 ${wide ? "max-w-[82rem]" : "max-w-5xl"}`}>
<main className={`mx-auto w-full flex-1 px-6 py-10 ${column}`}>
<AdminTitleContext.Provider value={titleContext}>
<AdminWidthContext.Provider value={setWide}>
<Suspense fallback={null}>
@ -217,7 +220,7 @@ export default function AdminLayout() {
</main>
<footer className="border-t border-brand/15 bg-surface">
<div className="mx-auto flex max-w-5xl items-center gap-4 px-6 py-3">
<div className={`mx-auto flex ${column} items-center gap-4 px-6 py-3`}>
<Link to={ADMIN_HOME} className="transition-opacity hover:opacity-70">
<img src={siteLogo} alt="NGU" className="h-6 w-auto" />
</Link>