-
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
0e7a0ca
commit b424252
Showing
4 changed files
with
54 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
import { type SectionHeaderComponentFragment } from '@src/generated/graphqlDirectus' | ||
|
||
export function SectionHeader({ spacing }: SectionHeaderComponentFragment) { | ||
return <div>SectionHeader</div> | ||
import { cn } from '../cn' | ||
import { Body1, Hero2, OverlineLabel } from '../Typography' | ||
|
||
import { getSpacingClassName } from './common' | ||
|
||
export function SectionHeader({ | ||
spacing, | ||
overline, | ||
title, | ||
description, | ||
}: SectionHeaderComponentFragment) { | ||
return ( | ||
<section | ||
className={cn( | ||
getSpacingClassName(spacing), | ||
'm-auto flex w-1/2 flex-col items-center gap-medium' | ||
)} | ||
> | ||
{overline && <OverlineLabel>{overline}</OverlineLabel>} | ||
<Hero2>{title}</Hero2> | ||
<Body1 $color="text-light">{description}</Body1> | ||
</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
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