diff --git a/src/components/section/section-root.tsx b/src/components/section/section-root.tsx index b366149..f63416e 100644 --- a/src/components/section/section-root.tsx +++ b/src/components/section/section-root.tsx @@ -1,16 +1,32 @@ import { cn } from "@/lib/utils"; -import type{ ClassValue } from "clsx"; +import { cva, VariantProps } from "class-variance-authority"; +import type { ClassValue } from "clsx"; -interface SectionRootProps { + +const sectionVariants = cva( + "justify-center h-screen", + { + variants: { + variant: { + default: "grid justify-center h-screen", + start: "h-screen flex flex-col items-center justify-center text-center space-y-2" + } + }, + defaultVariants: { + variant: "default", + }, + } +) +interface SectionRootProps extends VariantProps { id: string; children: React.ReactNode; className?: ClassValue; ref?: React.Ref; } -export function SectionRoot({ id, children, className, ref }: Readonly) { +export function SectionRoot({ id, children, variant, className, ref }: Readonly) { return ( -
+
{children}
); diff --git a/src/components/start.tsx b/src/components/start.tsx index 321a865..7d1288d 100644 --- a/src/components/start.tsx +++ b/src/components/start.tsx @@ -6,20 +6,20 @@ import { BackToTop } from "./back-to-top"; import { Section } from "./section"; export function Start() { - const t = useTranslations(); + const t = useTranslations(); const startRef = useRef(null); - return ( - + id="start" + variant="start" + >

{t("WIP")}

-
{t("Start.Hello")}
-
{t("Start.Name")}
-
{t("Start.Details")}
+
{t("Start.Hello")}
+
{t("Start.Name")}
+
{t("Start.Details")}
-
- ); + + ); }