open-consul/website/components/cta-hero/index.jsx
Zachary Shilton 3d1f483a23
Upgrade global styles (#10692)
* website: upgrade global-styles packages

* website: move community page to CSS modules

* website: replace g-container with g-grid-container

* website: hide alert-banner on mobile

* website: backfill missing global type styles

* website: fix code font-size in download custom content

* website: bump to latest patched dependencies
2021-08-20 12:20:01 -04:00

39 lines
1,022 B
JavaScript

import TextSplit from '@hashicorp/react-text-split'
import Button from '@hashicorp/react-button'
import s from './style.module.css'
import InlineSvg from '@hashicorp/react-inline-svg'
import ConsulStack from './img/consul-stack.svg?include'
export default function CtaHero({ title, description, links, cta }) {
return (
<div className={s.ctaHero}>
<TextSplit
product="consul"
heading={title}
content={description}
links={links}
linkStyle="buttons"
>
<CTA title={cta.title} description={cta.description} link={cta.link} />
</TextSplit>
</div>
)
}
function CTA({ title, description, link }) {
return (
<div className={s.cta}>
<InlineSvg className={s.stackIcon} src={ConsulStack} />
<h3 className="g-type-display-3">{title}</h3>
<p className={s.description}>{description}</p>
<Button
title={link.text}
url={link.url}
theme={{
brand: 'neutral',
}}
/>
</div>
)
}