mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* adds lang attribute * fixes: empty anchor tag * adds alt attributes * alt tag logo grid updates * fix footer contrast color * only render header if it exists * adds `main` element to page * testing pre-releases * fix: button aria-label updates * chore: update deps * fix: adds `main` element to all pages * chore: formatting * fix: adds alts to use-cases page * chore: update headline element * chore: adds alt text * fix: adds alt tags * style: fix height issue * fix: use h1 at top of page * fix: remove main to avoid duplicate tag * chore: fix deps * main is already defined in docs page component * Update website/components/footer/style.css Co-authored-by: Jimmy Merritello <7191639+jmfury@users.noreply.github.com> Co-authored-by: Jimmy Merritello <7191639+jmfury@users.noreply.github.com>
47 lines
1.2 KiB
JavaScript
47 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}>
|
|
{header ? (
|
|
<div className={styles.header}>
|
|
<h2>{header}</h2>
|
|
</div>
|
|
) : null}
|
|
<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}
|
|
label="Learn more — HCP Vault"
|
|
linkType={link.type}
|
|
url={link.url}
|
|
theme={{ variant, brand: 'neutral', background: 'light' }}
|
|
/>
|
|
</div>
|
|
)
|
|
})}
|
|
</div>
|
|
</div>
|
|
<img alt={title} src={image} />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|