Files
threshold/website/components/homepage-hero/index.jsx
T
Brandon Romano 3bd008a118 Website Skinning for Beta Preview (#414)
* Removes meganav

* Adds base product theming

* Adds a homepage hero

* Removes community section

* Clean up footer
2020-09-23 14:50:02 -05:00

36 lines
1.2 KiB
React

import s from './style.module.css'
import Button from '@hashicorp/react-button'
export default function HomepageHero({ title, description, links }) {
return (
<div className={s.root}>
<div className="g-grid-container">
<span className={s.eyebrow}>
Welcome to the <span className={s.red}>INTERNAL BETA</span> for
HashiCorp Boundary! This is a confidential internal only beta. No
details should be shared externally.
</span>
<h1 className="g-type-display-1">{title}</h1>
<div className={s.contentAndLinks}>
<p className="g-type-body-large">{description}</p>
<div className={s.links}>
{links.map((link, index) => {
const brand = index === 0 ? 'hashicorp' : 'neutral'
const variant = index === 0 ? 'primary' : 'secondary'
return (
<Button
key={link.text}
title={link.text}
linkType={link.type}
url={link.url}
theme={{ variant, brand }}
/>
)
})}
</div>
</div>
</div>
</div>
)
}