Files
threshold/website/components/homepage-hero/index.jsx
T
Kendall Strautman 26cb4a5655 [Assembly]: Branding Refresh (#1004)
* style: update gray brand colors (#994)

* Style: Update brand colors (#1043)

* style: update brand colors

* chore: upgrade react components (#1072)

* chore: upgrade react components

chore: upgrade docs-page

* chore: pin deps

* chore: update logos (#1083)

* chore: upgrade components to latest

chore: upgrade components to stable

* chore: style fixes

style: color fixes

style: adjust body copy color

* chore: upgrade deps to stable

* style(home): feature icons path to black

* chore: upgrade deps for body copy colors

* chore: upgrades alert banner

* feat: updates favicon

* style(home-hero): updates progress bar base

* style(home-hero): fix download cta color override
2021-05-03 13:02:13 -04:00

64 lines
1.5 KiB
React

import Hero from '@hashicorp/react-hero'
import styles from './HomepageHero.module.css'
/**
* A simple Facade around our react-hero to make the interface a little more straightforward
* for the end-user updating this on our Homepage, while also allowing us to shim in some
* additional styles and encapsulate that logic.
*/
export default function HomepageHero({
title,
description,
links,
uiVideo,
cliVideo,
desktopVideo,
}) {
return (
<div className={styles.homepageHero}>
<Hero
data={{
product: 'boundary',
title: title,
description: description,
buttons: links,
backgroundTheme: 'light',
centered: false,
videos: [
{
name: 'UI',
playbackRate: uiVideo.playbackRate,
src: [
{
srcType: uiVideo.srcType,
url: uiVideo.url,
},
],
},
{
name: 'CLI',
playbackRate: cliVideo.playbackRate,
src: [
{
srcType: cliVideo.srcType,
url: cliVideo.url,
},
],
},
{
name: 'Desktop',
playbackRate: desktopVideo.playbackRate,
src: [
{
srcType: desktopVideo.srcType,
url: desktopVideo.url,
},
],
},
],
}}
/>
</div>
)
}