-
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
9ad55e5
commit 218554f
Showing
6 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
import { Button } from '@pluralsh/design-system' | ||
import Link from 'next/link' | ||
|
||
import { type CtaComponentFragment } from '@src/generated/graphqlDirectus' | ||
|
||
import { cn } from '../cn' | ||
import { Body1, Hero2 } from '../Typography' | ||
|
||
import { getSpacingClassName } from './common' | ||
|
||
export function CallToAction({ | ||
spacing, | ||
heading, | ||
body_text: bodyText, | ||
cta_text: ctaText, | ||
cta_url: ctaUrl, | ||
}: CtaComponentFragment) { | ||
return ( | ||
<section | ||
className={cn( | ||
getSpacingClassName(spacing), | ||
'm-auto flex w-1/2 flex-col items-center gap-medium text-center' | ||
)} | ||
> | ||
<Hero2>{heading}</Hero2> | ||
<Body1 $color="text-light">{bodyText}</Body1> | ||
<Button | ||
className="mt-medium" | ||
as={Link} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href={ctaUrl} | ||
> | ||
{ctaText} | ||
</Button> | ||
</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
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