2024-07-27 15:37:58 +02:00
|
|
|
import type { ReactNode } from "react";
|
2024-07-22 11:49:47 +02:00
|
|
|
import { Button } from "./Button";
|
|
|
|
|
import { Heading } from "./Heading";
|
|
|
|
|
|
2024-07-27 15:37:58 +02:00
|
|
|
export function Guides({ children }: { children: ReactNode }) {
|
2024-07-22 11:49:47 +02:00
|
|
|
return (
|
|
|
|
|
<div className="my-16 xl:max-w-none">
|
|
|
|
|
<Heading level={2} id="guides">
|
|
|
|
|
Guides
|
|
|
|
|
</Heading>
|
|
|
|
|
<div className="not-prose mt-4 grid grid-cols-1 gap-8 border-t border-zinc-900/5 pt-10 sm:grid-cols-2 xl:grid-cols-4 dark:border-white/5">
|
2024-07-27 15:37:58 +02:00
|
|
|
{children}
|
2024-07-22 11:49:47 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2024-07-27 15:37:58 +02:00
|
|
|
|
|
|
|
|
export function Guide({
|
|
|
|
|
href,
|
|
|
|
|
name,
|
|
|
|
|
description,
|
|
|
|
|
}: { href: string; name: string; description: string }) {
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<h3 className="text-sm font-semibold text-zinc-900 dark:text-white">
|
|
|
|
|
{name}
|
|
|
|
|
</h3>
|
|
|
|
|
<p className="mt-1 text-sm text-zinc-600 dark:text-zinc-400">
|
|
|
|
|
{description}
|
|
|
|
|
</p>
|
|
|
|
|
<p className="mt-4">
|
|
|
|
|
<Button href={href} variant="text" arrow="right">
|
|
|
|
|
Read more
|
|
|
|
|
</Button>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|