diff --git a/client/src/App.js b/client/src/App.js index 39d60ce90..206703826 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -7,6 +7,7 @@ import MuiThemeProvider from '@material-ui/core/styles/MuiThemeProvider' import CssBaseline from '@material-ui/core/CssBaseline' import { withStyles } from '@material-ui/core/styles' import { theme, globalStyles } from './styles' +import './styles/styles.scss' import { client } from './graphql/apollo' import Auth from './auth' diff --git a/client/src/views/layout/header/styles.scss b/client/src/styles/styles.scss similarity index 91% rename from client/src/views/layout/header/styles.scss rename to client/src/styles/styles.scss index 41a1fcc7b..01bed32ab 100644 --- a/client/src/views/layout/header/styles.scss +++ b/client/src/styles/styles.scss @@ -265,3 +265,41 @@ header.menu{ } } } + +.bannerTopBar{ + background-image: url(https://advancedalgos.net/img/photos/teams.jpg); + width: 100%; + height: 220px; + &.big{ + height: 100vh; + .caption{ + display: block; + } + } + &.medium{ + height: 50vh; + .caption{ + display: block; + } + } + .caption{ + display: none; + position: relative; + top: 50%; + transform: translateY(-100%); + font-family: Saira; + .title{ + color: white; + font-size: 64px; + line-height: 78px; + font-weight: 100; + } + .text{ + color: white; + font-size: 20px; + line-height: 30px; + font-weight: 600; + padding: 20px 0 0.5em 0; + } + } +} diff --git a/client/src/views/BannerTopBar/index.js b/client/src/views/BannerTopBar/index.js new file mode 100644 index 000000000..255e9888d --- /dev/null +++ b/client/src/views/BannerTopBar/index.js @@ -0,0 +1,18 @@ +import React from 'react' +import Typography from '@material-ui/core/Typography' + +const BannerTopBar = ({ + size, + backgroundUrl, + title, + text +}) => ( +