mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-06-05 19:15:30 -04:00
b857ab2754
- Updated repository limit from 12 to 24 in getRepos function. - Added new icons and adjusted styles for better visual consistency in the page component. - Modified text sizes and spacing for improved layout and readability.
29 lines
579 B
TypeScript
29 lines
579 B
TypeScript
import Link from "next/link";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const PageTitle = ({
|
|
canonical,
|
|
className,
|
|
children,
|
|
...rest
|
|
}: React.ComponentProps<"h1"> & {
|
|
canonical: string;
|
|
}) => (
|
|
<h1
|
|
className={cn(
|
|
"not-prose mt-0 mb-6 text-left font-medium text-3xl lowercase tracking-tight",
|
|
className,
|
|
)}
|
|
{...rest}
|
|
>
|
|
<Link
|
|
href={canonical}
|
|
className="text-foreground no-underline before:text-muted-foreground before:tracking-wider before:content-['\002E\002F']"
|
|
>
|
|
{children}
|
|
</Link>
|
|
</h1>
|
|
);
|
|
|
|
export { PageTitle };
|