This commit is contained in:
parent
a40e78cf5d
commit
c69447a9c1
|
|
@ -5,6 +5,7 @@ import dynamic from 'next/dynamic';
|
|||
|
||||
|
||||
import { jgs7 } from '@/fonts';
|
||||
import { Lang } from '@/i18n/locales';
|
||||
import { Translations } from "@/i18n/translations";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { ReactElement, useEffect, useRef } from "react";
|
||||
|
|
@ -12,7 +13,6 @@ import { MainpageNav } from './nav';
|
|||
import { NewsletterPopup } from './newsletter-form';
|
||||
import { useTheme } from "./providers";
|
||||
import { Skeleton } from './ui/skeleton';
|
||||
import { Lang } from '@/i18n/locales';
|
||||
|
||||
function Heading({ children }: { children: ReactElement | string }) {
|
||||
return <h2 className="text-5xl font-bold tracking-tighter max-w-3xl mx-auto">{children}</h2>
|
||||
|
|
@ -56,28 +56,6 @@ function NewSection({
|
|||
</section>)
|
||||
}
|
||||
|
||||
function Section({
|
||||
id,
|
||||
title,
|
||||
paragraphs,
|
||||
after
|
||||
}: {
|
||||
id: string
|
||||
title: string;
|
||||
paragraphs: ReactElement;
|
||||
after?: ReactElement;
|
||||
}) {
|
||||
return (<section id={id} className="bg-background">
|
||||
<div className="container mx-auto px-4">
|
||||
<h2 className="text-4xl font-bold tracking-tighter max-w-3xl mx-auto mb-2">{title}</h2>
|
||||
<div className="text-lg text-muted-foreground max-w-3xl mx-auto whitespace-pre-line">
|
||||
{paragraphs}
|
||||
</div>
|
||||
{after}
|
||||
</div>
|
||||
</section>)
|
||||
}
|
||||
|
||||
function getSource({
|
||||
src,
|
||||
type
|
||||
|
|
|
|||
Loading…
Reference in a new issue