diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-13 20:42:41 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-13 20:42:41 +0300 |
commit | 575ef196e757c8ad9af3cab91f644b7aa98d3a0d (patch) | |
tree | fa81633b153c0cd07f3a8103ea0017f0a7742145 | |
parent | 37a8ae298a7bb4c883c26fd50ecaaa992e6991f1 (diff) | |
download | famcs-kit-575ef196e757c8ad9af3cab91f644b7aa98d3a0d.tar.gz |
feat: create Benzin paper
-rw-r--r-- | src/index.tsx | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/index.tsx b/src/index.tsx index e79cac9..62979f7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,10 +1,33 @@ import React from 'react'; import ReactDOM from 'react-dom'; +import { Benzin, ContentSection } from 'react-benzin'; +import { Paper } from '@material-ui/core'; +import { makeStyles } from '@material-ui/core/styles'; + +const useStyles = makeStyles(theme => ({ + root: { + margin: theme.spacing(4), + padding: theme.spacing(2), + minHeight: theme.spacing(60) + } +})); + const App: React.FC = () => { - return <h1>Hello, world!</h1> + const classes = useStyles(); + + return ( + <Benzin> + <Paper className={classes.root}> + <ContentSection sectionName="famcs-kit"> + Hello, world! + </ContentSection> + </Paper> + </Benzin> + ); }; + ReactDOM.render( <React.StrictMode> <App /> |