Mobile: community map, cards, schedule, stats, banner, tap targets
- The community map keeps a readable size on a phone and scrolls sideways in its own box; group cards wrap their controls under the name, with smaller logos and 40px buttons; group details likewise. - Org list cards, the stats numbers and the front page timeline rail cards size down on phones (the stats band unchanged from sm up). - Schedule entries put the time on its own line on a phone; 40px fold-out toggles. - The banner gives its text the room on a phone, with a 40px dismiss button. - Email addresses may break anywhere (one rule for every mailto: link), so a long one can't push past the screen. - Footer site-map links, the arrow links and the accessibility panel's close button are larger targets; the open accessibility panel sits above the privacy notice; the timeline's "still to come" list reads in full on touch screens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a907a47c24
commit
8d319bcaaa
11 changed files with 62 additions and 39 deletions
|
|
@ -93,7 +93,7 @@ export default function AccessibilityPanel() {
|
|||
}
|
||||
|
||||
return (
|
||||
<div ref={rootRef} className="fixed right-4 bottom-4 z-40 print:hidden">
|
||||
<div ref={rootRef} className="fixed right-4 bottom-4 z-50 print:hidden">
|
||||
{open && (
|
||||
<div
|
||||
id={panelId}
|
||||
|
|
@ -109,7 +109,7 @@ export default function AccessibilityPanel() {
|
|||
setOpen(false)
|
||||
buttonRef.current?.focus()
|
||||
}}
|
||||
className="btn flex h-8 w-8 items-center justify-center text-muted hover:bg-tint"
|
||||
className="btn flex h-10 w-10 items-center justify-center text-muted hover:bg-tint"
|
||||
aria-label="Close accessibility options"
|
||||
>
|
||||
<X size={18} weight="bold" aria-hidden="true" />
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { Link } from "react-router-dom";
|
|||
ARROW LINK
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
export default function ArrowLink({ to, label, color, size = "h-9 w-9" }) {
|
||||
export default function ArrowLink({ to, label, color, size = "h-10 w-10" }) {
|
||||
return (
|
||||
<Link
|
||||
to={to}
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@ export default function Banner() {
|
|||
|
||||
return (
|
||||
<div
|
||||
className="relative w-full px-12 py-2.5 text-center"
|
||||
style={{ background: "rgba(0, 47, 57, 0.95)" }}
|
||||
className="relative w-full py-2.5 pr-12 pl-4 text-center sm:px-12"
|
||||
style={{ background: "rgba(0, 16, 17, 0.95)" }}
|
||||
role="region"
|
||||
aria-label="Site announcement"
|
||||
>
|
||||
<p className="text-sm text-white/85">
|
||||
<p className="text-xs text-white/85 sm:text-sm">
|
||||
{SITE_BANNER.content.map((part, i) => {
|
||||
if (!part.href) return <span key={i}>{part.text}</span>;
|
||||
return part.external ? (
|
||||
|
|
@ -53,7 +53,7 @@ export default function Banner() {
|
|||
<button
|
||||
onClick={dismiss}
|
||||
aria-label="Dismiss announcement"
|
||||
className="absolute right-3 top-1/2 -translate-y-1/2 p-1.5 text-white/50 hover:text-white hover:bg-white/10 transition-colors"
|
||||
className="absolute right-1 top-1/2 -translate-y-1/2 p-3 text-white/50 hover:text-white hover:bg-white/10 transition-colors"
|
||||
>
|
||||
<X className="w-4 h-4" weight="bold" aria-hidden="true" />
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -34,11 +34,12 @@ const Footer_Links = [
|
|||
const footerLinkClass =
|
||||
"text-white/65 hover:text-[#9cc47c] text-sm transition-colors";
|
||||
|
||||
// inline-block with a little height of its own, so a finger can hit it.
|
||||
const pageLinkClass =
|
||||
"text-white/80 hover:text-[#9cc47c] text-sm font-semibold transition-colors";
|
||||
"inline-block py-1 text-white/80 hover:text-[#9cc47c] text-sm font-semibold transition-colors";
|
||||
|
||||
const sectionLinkClass =
|
||||
"text-white/65 hover:text-[#9cc47c] text-sm transition-colors";
|
||||
"inline-block py-1 text-white/65 hover:text-[#9cc47c] text-sm transition-colors";
|
||||
|
||||
const headingClass = "text-white/90 text-sm font-semibold mb-4";
|
||||
|
||||
|
|
@ -92,7 +93,7 @@ export default function Footer() {
|
|||
</Link>
|
||||
|
||||
{sections.length > 0 && (
|
||||
<ul className="mt-2 flex flex-col gap-1.5">
|
||||
<ul className="mt-1 flex flex-col">
|
||||
{sections.map((section) => (
|
||||
<li key={section.hash}>
|
||||
<Link
|
||||
|
|
|
|||
|
|
@ -99,8 +99,10 @@ function Entry({ entry, accent }: { entry: ContentBlockItem; accent: string }) {
|
|||
|
||||
return (
|
||||
<li className="border-b border-brand/10 last:border-b-0">
|
||||
<div className="flex gap-4 py-4 sm:gap-6">
|
||||
<p className="w-24 shrink-0 pt-0.5 text-sm font-semibold sm:w-32" style={{ color: accentText(accent) }}>
|
||||
{/* On a phone the time sits on its own line above the entry,
|
||||
leaving the title the full width. */}
|
||||
<div className="flex flex-wrap gap-x-4 gap-y-1 py-4 sm:flex-nowrap sm:gap-6">
|
||||
<p className="w-full shrink-0 pt-0.5 text-sm font-semibold sm:w-32" style={{ color: accentText(accent) }}>
|
||||
{entry.time}
|
||||
</p>
|
||||
|
||||
|
|
@ -131,7 +133,7 @@ function Entry({ entry, accent }: { entry: ContentBlockItem; accent: string }) {
|
|||
aria-expanded={open}
|
||||
aria-controls={panelId}
|
||||
aria-label={open ? `Less about ${entry.text}` : `More about ${entry.text}`}
|
||||
className="h-8 w-8 shrink-0 btn border text-sm transition-colors hover:bg-tint"
|
||||
className="h-10 w-10 shrink-0 btn border text-sm transition-colors hover:bg-tint"
|
||||
style={{ borderColor: `${withAlpha(accent, 33)}`, color: accentText(accent) }}
|
||||
>
|
||||
<CaretDown
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue