2021-03-26 13:38:39 +00:00
|
|
|
import TextSplit from '@hashicorp/react-text-split'
|
2021-05-06 20:33:15 +00:00
|
|
|
import Button from '@hashicorp/react-button'
|
2021-03-26 13:38:39 +00:00
|
|
|
import s from './style.module.css'
|
2021-05-06 20:33:15 +00:00
|
|
|
import InlineSvg from '@hashicorp/react-inline-svg'
|
|
|
|
import ConsulStack from './img/consul-stack.svg?include'
|
2021-03-26 13:38:39 +00:00
|
|
|
|
2021-05-06 20:33:15 +00:00
|
|
|
export default function CtaHero({ title, description, links, cta }) {
|
2021-03-26 13:38:39 +00:00
|
|
|
return (
|
|
|
|
<div className={s.ctaHero}>
|
|
|
|
<TextSplit
|
2021-05-03 19:01:36 +00:00
|
|
|
product="consul"
|
2021-05-06 20:33:15 +00:00
|
|
|
heading={title}
|
|
|
|
content={description}
|
|
|
|
links={links}
|
2021-03-26 13:38:39 +00:00
|
|
|
linkStyle="buttons"
|
|
|
|
>
|
2021-05-06 20:33:15 +00:00
|
|
|
<CTA title={cta.title} description={cta.description} link={cta.link} />
|
2021-03-26 13:38:39 +00:00
|
|
|
</TextSplit>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-05-06 20:33:15 +00:00
|
|
|
function CTA({ title, description, link }) {
|
2021-03-26 13:38:39 +00:00
|
|
|
return (
|
|
|
|
<div className={s.cta}>
|
2021-05-06 20:33:15 +00:00
|
|
|
<InlineSvg className={s.stackIcon} src={ConsulStack} />
|
2021-08-20 16:20:01 +00:00
|
|
|
<h3 className="g-type-display-3">{title}</h3>
|
2021-05-06 20:33:15 +00:00
|
|
|
<p className={s.description}>{description}</p>
|
|
|
|
<Button
|
|
|
|
title={link.text}
|
|
|
|
url={link.url}
|
|
|
|
theme={{
|
|
|
|
brand: 'neutral',
|
|
|
|
}}
|
|
|
|
/>
|
2021-03-26 13:38:39 +00:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|