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
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue