12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import React from 'react'
- import { fluidRange } from 'polished'
- import { css } from '@emotion/core'
- import { Button, Header } from '@/shared/components'
- type HeroProps = {
- backgroundImg: string
- }
- const Hero: React.FC<Partial<HeroProps>> = ({ backgroundImg }) => {
- return (
- <Header
- title="A user governed video platform"
- subtitle="Lorem ipsum sit amet, consectetur adipiscing elit. Proin non nisl sollicitudin, tempor diam."
- backgroundImg={backgroundImg}
- containerCss={css`
- font-size: 18px;
- line-height: 1.33;
- & h1 {
- ${fluidRange({ prop: 'fontSize', fromSize: '40px', toSize: '72px' })};
- line-height: 0.94;
- }
- margin: 0 calc(-1 * var(--global-horizontal-padding));
- `}
- >
- <div
- css={css`
- display: flex;
- margin-top: 40px;
- & > * {
- margin-right: 1rem;
- }
- `}
- >
- <Button
- containerCss={css`
- width: 116px;
- `}
- >
- Play
- </Button>
- </div>
- </Header>
- )
- }
- export default Hero
|