fix: update PageTitle component styling

- Changed font weight from 'font-semibold' to 'font-medium' for better visual consistency.
- Added 'not-prose' class to improve layout handling.
- Updated Link component's class to include 'text-foreground' for enhanced visibility.
This commit is contained in:
jake committed 2026-02-01 10:26:19 -05:00
1 parent bcc595e141
commit 62ebedabf4
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -143,7 +143,7 @@ const Page = async ({ params }: { params: Promise<{ slug: string }> }) => {
</div> </div>
<h1 <h1
className="my-5 text-3xl font-semibold tracking-tight" className="my-5 text-3xl font-medium tracking-tight"
style={{ viewTransitionName: `note-title-${frontmatter!.slug}` }} style={{ viewTransitionName: `note-title-${frontmatter!.slug}` }}
> >
<Link <Link
+5 -2
View File
@@ -10,10 +10,13 @@ const PageTitle = ({
canonical: string; canonical: string;
}) => { }) => {
return ( return (
<h1 className={cn("mt-0 mb-6 text-left text-3xl font-semibold tracking-tight lowercase", className)} {...rest}> <h1
className={cn("not-prose mt-0 mb-6 text-left text-3xl font-medium tracking-tight lowercase", className)}
{...rest}
>
<Link <Link
href={canonical} href={canonical}
className="before:text-muted-foreground no-underline before:mr-[-3px] before:tracking-wider before:content-['\002E\002F']" className="before:text-muted-foreground text-foreground no-underline before:mr-[-3px] before:tracking-wider before:content-['\002E\002F']"
> >
{children} {children}
</Link> </Link>