aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
blob: 6fca3b697cd60dc87ea2f113bf75ff02c89e0ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import React, { useState } from 'react';
import ReactDOM from 'react-dom';

import { CssBaseline, makeStyles, Button } from '@material-ui/core';

import {
  BenzinThemeProvider,
  Header,
  Window,
  ContentSection,
} from './lib';

import icon from './lib/assets/icon.png';
import icon2 from './lib/assets/icon2.svg';
import HomeIcon from '@material-ui/icons/Home';
import PlayCircleFilledWhiteIcon from '@material-ui/icons/PlayCircleFilledWhite';
import ExploreIcon from '@material-ui/icons/Explore';
import GitHubIcon from '@material-ui/icons/GitHub';


const useStyles = makeStyles(theme => ({
  window: {
    padding: theme.spacing(4),
  }
}));

const headerContents = {
  home: <HomeIcon />,
  'getting started': <PlayCircleFilledWhiteIcon />,
  explore: <ExploreIcon />,
  contribute: <GitHubIcon />,
}

const Icon1 = <img src={icon} width="32px" height="37px" alt="logo"/>
const Icon2 = <img src={icon2} height="32px" alt="logo"/>

const App = () => {
  const classes = useStyles();
  const [page, setPage] = useState('home');

  return (
    <BenzinThemeProvider>
      <CssBaseline />
      <Header
        logo={{
          icon: Icon1,
          title: 'BENZIN',
        }}
        contents={headerContents}
        page={page}
        setPage={setPage}
      />
      <Window type="mono">
        <div className={classes.window}>
          <ContentSection sectionName="Out of fuel? You've came to the right place!">
            <p> Here is some text about BENZIN library. </p>
            <Button variant="contained" color="secondary">
              Charge me up!
            </Button>
            <Button variant="contained" color="primary">
              Learn more
            </Button>
          </ContentSection>
        </div>
      </Window>
    </BenzinThemeProvider>
  );
};


ReactDOM.render(<App />, document.getElementById('root'));