Third audit, UI half; side nav on top; request button colors
- Event cards: lazy -640 photo, only nearby slides drawn, a counter past 12 events, past grid paged with Show more - Community map: search over list and grid, 12 per region then Show all, list no longer redrawn on hover - People tiles: one clip check for the list, Show all past 30 - Person pages: 6 events and posts then Show all; excerpts load only the first paragraph - Admin: filter box on long pickers and the QR select, options sent per form, Media thumbnails from the small copy, debounced searches that drop stale answers - Pages show their last data while refreshing after the cache TTL - Side nav stacks above page content (the carousel arrows) - No event request button on National Retreats; request buttons take their section's accent - Version v1.11.1-audit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
11a4555683
commit
222c9e69a2
22 changed files with 686 additions and 259 deletions
|
|
@ -2,14 +2,33 @@ import { Link } from "react-router-dom";
|
|||
import { PaperPlaneTilt } from "@phosphor-icons/react";
|
||||
|
||||
import { requestLink } from "../data/requestTypes.ts";
|
||||
import { BRAND, accentText, withAlpha } from "../lib/color.ts";
|
||||
|
||||
/* A button to the Request form, opened on one kind of request
|
||||
(REQUEST_TYPES). Section manifests place it with `request`. */
|
||||
export default function RequestLink({ type, label, className = "" }: { type: string; label: string; className?: string }) {
|
||||
(REQUEST_TYPES), in its section's accent. Section manifests place
|
||||
it with `request`. */
|
||||
export default function RequestLink({
|
||||
type,
|
||||
label,
|
||||
accent = BRAND,
|
||||
className = "",
|
||||
}: {
|
||||
type: string;
|
||||
label: string;
|
||||
accent?: string;
|
||||
className?: string;
|
||||
}) {
|
||||
return (
|
||||
<Link
|
||||
to={requestLink(type)}
|
||||
className={`inline-flex items-center gap-2 btn border border-brand/40 px-4 py-2 text-sm text-link transition-colors hover:bg-tint print:hidden ${className}`}
|
||||
className={`inline-flex items-center gap-2 btn border px-4 py-2 text-sm transition-colors hover:bg-[var(--request-hover)] print:hidden ${className}`}
|
||||
style={
|
||||
{
|
||||
borderColor: withAlpha(accent, 40),
|
||||
color: accentText(accent),
|
||||
"--request-hover": withAlpha(accent, 10),
|
||||
} as React.CSSProperties
|
||||
}
|
||||
>
|
||||
<PaperPlaneTilt aria-hidden="true" weight="bold" className="h-4 w-4" />
|
||||
{label}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue