mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-05 07:54:38 +00:00
Swap Inter for Geist as the website sans font. FAQ +/− toggles now sit on the content rail instead of hanging outside it, slightly larger, with answers indented to the question text. The website dev server crashed with "createStartHandler is not a function" on every SSR hot reload. Vite 7's module runner races when re-evaluating the static import chain behind TanStack Start's server handler (TanStack/router#7285, fixed upstream in vitejs/vite#22369). The worker entry now imports the handler at request time until the website moves to a Vite release with that fix.
17 lines
673 B
TypeScript
17 lines
673 B
TypeScript
import type { ReactNode } from "react";
|
||
|
||
export function FAQItem({ question, children }: { question: string; children: ReactNode }) {
|
||
return (
|
||
<details className="group">
|
||
<summary className="font-medium text-sm cursor-pointer list-none grid grid-cols-[1.25rem_1fr] items-baseline">
|
||
<span className="font-mono text-lg leading-none text-white/40 group-open:hidden">+</span>
|
||
<span className="font-mono text-lg leading-none text-white/40 hidden group-open:inline">
|
||
−
|
||
</span>
|
||
{question}
|
||
</summary>
|
||
<div className="text-sm text-muted-foreground space-y-2 mt-2 pl-5 prose">{children}</div>
|
||
</details>
|
||
);
|
||
}
|