b4c9e50e42
website: prep hcp ctas Add in updated HCP section Fix broken link website: remove superflous heading website: add new try cloud cta to nav website: adjust homepage hero CTAs Update HCP description to match latest Clean up Hero CTAs Updates banner
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
import styles from './HCPCalloutSection.module.css'
|
|
import Button from '@hashicorp/react-button'
|
|
|
|
export default function HcpCalloutSection({
|
|
id,
|
|
header,
|
|
title,
|
|
description,
|
|
chin,
|
|
image,
|
|
links,
|
|
}) {
|
|
return (
|
|
<div className={styles.hcpCalloutSection} id={id}>
|
|
<div className={styles.header}>
|
|
<h2>{header}</h2>
|
|
</div>
|
|
|
|
<div className={styles.content}>
|
|
<div className={styles.info}>
|
|
<h1>{title}</h1>
|
|
<span className={styles.chin}>{chin}</span>
|
|
<p className={styles.description}>{description}</p>
|
|
<div className={styles.links}>
|
|
{links.map((link, index) => {
|
|
const variant = index === 0 ? 'primary' : 'tertiary'
|
|
return (
|
|
<div key={link.text}>
|
|
<Button
|
|
title={link.text}
|
|
linkType={link.type}
|
|
url={link.url}
|
|
theme={{ variant, brand: 'neutral', background: 'light' }}
|
|
/>
|
|
</div>
|
|
)
|
|
})}
|
|
</div>
|
|
</div>
|
|
<img alt={title} src={image} />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|