Reading mode spacing, phone map width, no fixed back links
- Reading mode: parts the page draws on their own lines get a space between them, so words no longer run together; the column is 60rem (was 42rem) and headings are bold in the display face. - Local groups map scales to its column on a phone instead of holding 34rem and scrolling sideways. - Group, region, partner and team pages drop their fixed back link (records are reached from many pages); orgListHref is gone. Not-found pages keep theirs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
de17da7dc8
commit
502a294940
7 changed files with 20 additions and 52 deletions
|
|
@ -26,7 +26,7 @@ import {
|
|||
useOrganization,
|
||||
type OrganizationRecord,
|
||||
} from '../lib/useContent.ts'
|
||||
import { orgHref, orgListHref } from '../lib/hrefs.ts'
|
||||
import { orgHref } from '../lib/hrefs.ts'
|
||||
import { mediaUrl } from '../lib/media.ts'
|
||||
import { initialsFor } from '../lib/organizations.ts'
|
||||
import Logo from '../components/Logo.tsx'
|
||||
|
|
@ -70,7 +70,6 @@ export default function OrganizationDetail() {
|
|||
}
|
||||
|
||||
const accent = org.color || BRAND
|
||||
const back = orgListHref(org.kind)
|
||||
|
||||
const sections: any[] = [
|
||||
{
|
||||
|
|
@ -79,7 +78,7 @@ export default function OrganizationDetail() {
|
|||
accent,
|
||||
content: (
|
||||
<div className="max-w-6xl mx-auto px-6 space-y-8">
|
||||
<Facts org={org} accent={accent} back={back} />
|
||||
<Facts org={org} accent={accent} />
|
||||
|
||||
{org.description.map((paragraph, index) => (
|
||||
<p key={index} className="leading-relaxed max-w-3xl" style={{ color: BODY }}>
|
||||
|
|
@ -211,11 +210,9 @@ export default function OrganizationDetail() {
|
|||
function Facts({
|
||||
org,
|
||||
accent,
|
||||
back,
|
||||
}: {
|
||||
org: OrganizationRecord
|
||||
accent: string
|
||||
back: { to: string; label: string }
|
||||
}) {
|
||||
const where =
|
||||
org.location_label || [org.locality, org.state_code].filter(Boolean).join(', ')
|
||||
|
|
@ -248,10 +245,6 @@ function Facts({
|
|||
<span style={{ color: BODY }}>Since {org.details.started}</span>
|
||||
)}
|
||||
{org.is_online && <span style={{ color: BODY }}>Online</span>}
|
||||
|
||||
<Link to={back.to} className="ml-auto hover:underline" style={{ color: accentText(accent) }}>
|
||||
{back.label}
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue