-
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
9b7f71a
commit 6f57baa
Showing
4 changed files
with
79 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { CTA } from "@/lib/cta" | ||
import React from "react" | ||
import Image from "next/image" | ||
import LinkButton from "@/components/link-button" | ||
import Title from "../title" | ||
import Text from "../text" | ||
|
||
type SectionWhitepaperProps = { | ||
title: string | ||
/** | ||
* @info can be passed markdown or plain text. | ||
*/ | ||
text: string | ||
cta: CTA | ||
image: { | ||
src: string | ||
alt: string | ||
} | ||
} | ||
|
||
const SectionWhitepaper: React.FC<SectionWhitepaperProps> = ({ | ||
title, | ||
text, | ||
cta, | ||
image: { src, alt }, | ||
}) => { | ||
return ( | ||
<div className="max-w-4xl mx-auto grid grid-cols-1 lg:grid-cols-3 gap-y-8 lg:gap-x-12 items-center"> | ||
<Image | ||
className="rounded-xl max-h-64 lg:max-h-full w-auto mx-auto lg:order-1" | ||
src={src} | ||
alt={alt} | ||
width={800} | ||
height={400} | ||
/> | ||
|
||
<div className="col-span-2 grid gap-4 lg:gap-8 justify-items-start"> | ||
<Title level={3} boldness={"semibold"}> | ||
{title} | ||
</Title> | ||
<Text markdown={text} /> | ||
<LinkButton href={cta.href} variant={cta.variant} size={cta.size}> | ||
{cta.text} | ||
</LinkButton> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default SectionWhitepaper |
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