- Add docs pages (getting-started, changelog, keyboard-shortcuts) - Add blog, community, and legal pages (privacy, terms, EULA) - Add site header, footer, download button, and nav components - Add sitemap and robots.txt generation - Narrow main page container (max-w-2xl), fix footer positioning - Switch README feature list to colon style
20 lines
414 B
TypeScript
20 lines
414 B
TypeScript
export function Callout({
|
|
type = "info",
|
|
children,
|
|
}: {
|
|
type?: "info" | "warn";
|
|
children: React.ReactNode;
|
|
}) {
|
|
const styles =
|
|
type === "warn"
|
|
? "border-l-amber-500 bg-amber-500/5"
|
|
: "border-l-blue-500 bg-blue-500/5";
|
|
|
|
return (
|
|
<div
|
|
className={`${styles} border-l-2 px-4 py-3 mb-4 rounded-r-lg text-[14px] text-muted leading-relaxed`}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|