-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88f8c55
commit a00fc2c
Showing
9 changed files
with
108 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { SectionContent } from "./section-content"; | ||
import { SectionRoot } from "./section-root"; | ||
import { SectionTitle } from "./section-title"; | ||
|
||
export const Section = { | ||
Root: SectionRoot, | ||
Title: SectionTitle, | ||
Content: SectionContent, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { cn } from "@/lib/utils"; | ||
import type { ClassValue } from "clsx"; | ||
|
||
interface SectionContentProps { | ||
children: React.ReactNode; | ||
className?: ClassValue; | ||
} | ||
|
||
export function SectionContent({ children, className }: Readonly<SectionContentProps>) { | ||
return ( | ||
<div className={cn("flex gap-4", className)}> | ||
{children} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { cn } from "@/lib/utils"; | ||
import type{ ClassValue } from "clsx"; | ||
|
||
interface SectionRootProps { | ||
id: string; | ||
children: React.ReactNode; | ||
className?: ClassValue; | ||
ref?: React.Ref<HTMLElement>; | ||
} | ||
|
||
export function SectionRoot({ id, children, className, ref }: Readonly<SectionRootProps>) { | ||
return ( | ||
<section ref={ref} id={id} className={cn("grid justify-center h-screen", className)}> | ||
{children} | ||
</section> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { cn } from "@/lib/utils"; | ||
import type { ClassValue } from "clsx"; | ||
|
||
interface SectionTitleProps { | ||
title: string; | ||
className?: ClassValue; | ||
} | ||
|
||
export function SectionTitle({ title, className }: Readonly<SectionTitleProps>) { | ||
return ( | ||
<h1 className={cn("mt-8 flex justify-center items-center text-4xl", className)}> | ||
{title} | ||
</h1> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters