Major changes include enhancements to the UI and modifications to the i18n loading logic to more effectively handle namespaces. Several components were updated to improve readability and layout consistency. The i18n loading logic now includes additional handling for waiting until all namespaces are loaded before the i18n instance is returned, with a warning if it takes longer than expected. Furthermore, code have been refactored for fonts, buttons, and other UI elements.
22 lines
603 B
TypeScript
22 lines
603 B
TypeScript
import { cn } from '@kit/ui/utils';
|
|
|
|
export function SitePageHeader(props: {
|
|
title: string;
|
|
subtitle: string;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<div className={cn('border-b py-8 xl:py-10 2xl:py-12', props.className)}>
|
|
<div className={'container flex flex-col space-y-2 lg:space-y-4'}>
|
|
<h1 className={'font-medium font-heading text-3xl xl:text-5xl dark:text-white tracking-tight'}>
|
|
{props.title}
|
|
</h1>
|
|
|
|
<h2 className={'text-lg text-muted-foreground 2xl:text-2xl tracking-tight'}>
|
|
{props.subtitle}
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|