Files
Superalgos/client/src/Components/BannerTopBar/index.js
T

19 lines
525 B
JavaScript

import React from 'react';
import Typography from '@material-ui/core/Typography';
const BannerTopBar = ({
size,
backgroundUrl,
title,
text,
}) => (
<div className={`bannerTopBar ${size}`} style={backgroundUrl ? { backgroundImage: `url(${backgroundUrl})` } : {}}>
<div className='caption'>
<Typography className='title' variant='h1' align='center'>{title}</Typography>
<Typography className='text' variant='h2' align='center'>{text}</Typography>
</div>
</div>
);
export default BannerTopBar;