Files
threshold/website/components/homepage-hero/index.jsx
T
Susmitha Girumala 3c33d05c96 docs: Add desktop client videos (#947)
* Add desktop client videos

* docs: refactor desktop video style

* docs: add wrapper for tabs to load videos correctly

* docs: add desktop video to homepage
2021-02-18 14:12:51 -05:00

63 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={{
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>
)
}