diff --git a/docs/design-system.md b/docs/design-system.md index 0105202..acd615d 100644 --- a/docs/design-system.md +++ b/docs/design-system.md @@ -78,7 +78,7 @@ Pages swap in place: the old page fades out and the new one in (React's ``, so every shell stays static. Search lives on the Players page. +Header, page and footer sit on the sheet. The header is one sticky bar: wordmark, sections, search (`/`), Steam sign-in; footer: one line, community logos. Phones: wordmark, search, account, menu. Account and current section sit in ``, so every shell stays static. Search lives on the Players page. ## Screenshot tests `npm run test:ui` (part of `just check`) screenshots `/dev/ui` wide, on a phone, with the menu open and with the dialog open, and fails on any pixel change. After an intended visual change: diff --git a/web/src/features/site/SiteHeader.module.css b/web/src/features/site/SiteHeader.module.css index c843bfa..9607864 100644 --- a/web/src/features/site/SiteHeader.module.css +++ b/web/src/features/site/SiteHeader.module.css @@ -80,13 +80,6 @@ background: #162332b3; box-shadow: inset 0 0 0 1px #8cc4ff80; } -.discord { - color: #bac8d9; - font-size: 13px; -} -.discord:hover { - color: #fff; -} .account { display: flex; align-items: center; @@ -112,9 +105,6 @@ } } @media (max-width: 1350px) { - .discord { - display: none; - } .shell { gap: 28px; } diff --git a/web/src/features/site/SiteHeader.tsx b/web/src/features/site/SiteHeader.tsx index 95e7051..65e23bd 100644 --- a/web/src/features/site/SiteHeader.tsx +++ b/web/src/features/site/SiteHeader.tsx @@ -6,11 +6,9 @@ import { AccountArea } from "./AccountArea"; import { HeaderSearch } from "./HeaderSearch"; import { HeaderShell } from "./HeaderShell"; import { SiteNav, SiteNavLinks } from "./SiteNav"; -import { communityLinks } from "./navigation"; import styles from "./SiteHeader.module.css"; const wordmark = Play({ weight: "700", subsets: ["latin"] }); -const discord = communityLinks.find((link) => link.brand === "discord")!.href; export function SiteHeader() { return ( @@ -32,14 +30,6 @@ export function SiteHeader() { - - Discord -
diff --git a/web/src/features/site/SiteNav.tsx b/web/src/features/site/SiteNav.tsx index 24e8504..f41eaac 100644 --- a/web/src/features/site/SiteNav.tsx +++ b/web/src/features/site/SiteNav.tsx @@ -2,7 +2,7 @@ import { usePathname } from "next/navigation"; import { Link } from "@/ui/Link"; -import { communityLinks, isCurrent } from "./navigation"; +import { isCurrent } from "./navigation"; import styles from "./SiteHeader.module.css"; const navigation = [ @@ -12,7 +12,6 @@ const navigation = [ { href: "/players", label: "Players" }, { href: "/servers", label: "Servers" }, ]; -const discord = communityLinks.find((link) => link.brand === "discord")!.href; export function SiteNav({ mobile = false }: { mobile?: boolean }) { return ; @@ -40,14 +39,7 @@ export function SiteNavLinks({ {label} ))} - {mobile && ( - <> - Ruleset - - Discord - - - )} + {mobile && Ruleset} ); }