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
|
|
@ -470,16 +470,16 @@ function RegionBlock({
|
|||
function GroupCard({ group, color, open, onOpen }) {
|
||||
return (
|
||||
<div
|
||||
className="p-4 flex items-start gap-4 transition-all duration-200"
|
||||
className="p-4 flex flex-wrap items-start gap-3 sm:gap-4 transition-all duration-200"
|
||||
style={{
|
||||
border: `1px solid ${color}`,
|
||||
background: open ? `color-mix(in srgb, ${color} 8%, var(--color-raised))` : "var(--color-raised)",
|
||||
}}
|
||||
>
|
||||
<OrgLogo org={group} color={color} />
|
||||
<OrgLogo org={group} color={color} size="h-10 w-10 sm:h-14 sm:w-14" />
|
||||
|
||||
<div className="min-w-0 flex-1">
|
||||
<p className="font-bold leading-tight">{group.name}</p>
|
||||
<div className="min-w-[8rem] flex-1">
|
||||
<p className="font-bold leading-tight [overflow-wrap:anywhere]">{group.name}</p>
|
||||
<p className="text-sm" style={{ color: FALLBACK_COLOR }}>
|
||||
{group.location_label}
|
||||
</p>
|
||||
|
|
@ -494,12 +494,12 @@ function GroupCard({ group, color, open, onOpen }) {
|
|||
detail panel in place, the arrow leaves for the group's
|
||||
own page. Keeping them distinct beats one control that
|
||||
does different things depending on where you click. */}
|
||||
<div className="shrink-0 flex items-center gap-2">
|
||||
<div className="ml-auto shrink-0 flex items-center gap-2">
|
||||
<button
|
||||
onClick={onOpen}
|
||||
aria-expanded={open}
|
||||
aria-label={`${open ? "Hide" : "View"} details for ${group.name}`}
|
||||
className="h-9 w-9 btn flex items-center justify-center transition-transform duration-200 hover:scale-110"
|
||||
className="h-10 w-10 btn flex items-center justify-center transition-transform duration-200 hover:scale-110"
|
||||
style={{
|
||||
border: `1px solid ${color}`,
|
||||
color,
|
||||
|
|
@ -540,21 +540,21 @@ function GroupDetail({ group, region, onClose }) {
|
|||
|
||||
return (
|
||||
<div
|
||||
className="p-6 mb-6"
|
||||
className="p-4 sm:p-6 mb-6"
|
||||
style={{ border: `2px solid ${colorOf(region)}`, background: `color-mix(in srgb, ${colorOf(region)} 6%, var(--color-raised))` }}
|
||||
>
|
||||
<div className="flex items-start gap-4">
|
||||
<OrgLogo org={group} color={colorOf(region)} size="h-20 w-20" />
|
||||
<OrgLogo org={group} color={colorOf(region)} size="h-12 w-12 sm:h-20 sm:w-20" />
|
||||
|
||||
<div className="min-w-0 flex-1">
|
||||
<p className="text-2xl font-display font-bold leading-tight">{group.name}</p>
|
||||
<p className="text-xl sm:text-2xl font-display font-bold leading-tight [overflow-wrap:anywhere]">{group.name}</p>
|
||||
<p style={{ color: FALLBACK_COLOR }}>{group.location_label}</p>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={onClose}
|
||||
aria-label="Close details"
|
||||
className="shrink-0 h-8 w-8 btn flex items-center justify-center text-lg transition-transform duration-200 hover:scale-110"
|
||||
className="shrink-0 h-10 w-10 btn flex items-center justify-center text-lg transition-transform duration-200 hover:scale-110"
|
||||
style={{ border: `1px solid ${colorOf(region)}`, color: colorOf(region) }}
|
||||
>
|
||||
<X size={20} weight="bold" aria-hidden="true" />
|
||||
|
|
@ -844,13 +844,19 @@ export default function OrgListMap({ view = "map", accent = FALLBACK_COLOR }) {
|
|||
shell(
|
||||
<div className="grid grid-cols-1 lg:grid-cols-[1.45fr_1fr] gap-10 items-stretch">
|
||||
{/* Map */}
|
||||
<div>
|
||||
<RegionMap
|
||||
slices={slices}
|
||||
groupCounts={groupCounts}
|
||||
onPick={pickArea}
|
||||
{...shared}
|
||||
/>
|
||||
<div className="min-w-0">
|
||||
{/* On a phone the map keeps a readable size (tiles big enough
|
||||
to read and tap) and scrolls sideways in its own box. */}
|
||||
<div className="-mx-6 overflow-x-auto px-6 sm:mx-0 sm:px-0">
|
||||
<div className="min-w-[34rem] sm:min-w-0">
|
||||
<RegionMap
|
||||
slices={slices}
|
||||
groupCounts={groupCounts}
|
||||
onPick={pickArea}
|
||||
{...shared}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<Legend
|
||||
domestic={domestic}
|
||||
international={international}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue