mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 18:35:07 +03:00
Update marketing website and docs with new sans-serif fonts: - `Inter` - sans-serif for all body text - `Manrope` - sans-serif for headings PR breakdown of #43455 Related: #47226 #47228 #47236
28 lines
694 B
TypeScript
28 lines
694 B
TypeScript
'use client'
|
|
|
|
import ReactMarkdown from 'react-markdown'
|
|
|
|
import { useGuide } from './Guide'
|
|
|
|
interface GuideHeaderProps {
|
|
className?: string
|
|
}
|
|
|
|
export function GuideHeader({ className }: GuideHeaderProps) {
|
|
const { meta } = useGuide()
|
|
|
|
return (
|
|
<div className={className}>
|
|
<h1 className="mb-0 [&>p]:m-0">
|
|
<ReactMarkdown>{meta?.title || 'Supabase Docs'}</ReactMarkdown>
|
|
</h1>
|
|
{meta?.subtitle && (
|
|
<div className="mt-6 not-prose [&_p]:text-xl [&_p]:leading-7 text-foreground-light [&>p]:m-0">
|
|
<ReactMarkdown>{meta.subtitle}</ReactMarkdown>
|
|
</div>
|
|
)}
|
|
<hr className="not-prose border-t-0 border-b my-8" />
|
|
</div>
|
|
)
|
|
}
|