Converted the `initializeI18nClient` function to an asynchronous function for a more straightforward implementation. Simultaneously, made some tweaks to the UI components, such as altering dimensions in `site-footer.tsx` and `site-page-header.tsx`, and refactoring the `FooterSectionHeading` component for easier maintenance and improved readability.
22 lines
555 B
TypeScript
22 lines
555 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-base font-heading text-3xl xl:text-5xl'}>
|
|
{props.title}
|
|
</h1>
|
|
|
|
<h2 className={'text-lg text-muted-foreground 2xl:text-2xl'}>
|
|
{props.subtitle}
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|