summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/containers/Forms/Buttons.js
blob: 0935ac22022ee4a6a104e9fa4c8ae619a2f0e75d (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
import React from 'react';
import { Helmet } from 'react-helmet';
import brand from 'ba-api/brand';
import { withStyles } from '@material-ui/core/styles';
import { SourceReader, PapperBlock } from 'ba-components';
import { StandardButtons, FloatingButtons, CustomButtons, ComplexButtons } from './demos';

const styles = ({
  root: {
    flexGrow: 1,
  }
});

class Buttons extends React.Component {
  render() {
    const title = brand.name + ' - Form';
    const description = brand.desc;
    const docSrc = 'containers/Forms/demos/';
    return (
      <div>
        <Helmet>
          <title>{title}</title>
          <meta name="description" content={description} />
          <meta property="og:title" content={title} />
          <meta property="og:description" content={description} />
          <meta property="twitter:title" content={title} />
          <meta property="twitter:description" content={description} />
        </Helmet>
        <PapperBlock title="Standard Buttons" desc="Buttons communicate the action that will occur when the user touches them.">
          <div>
            <StandardButtons />
            <SourceReader componentName={docSrc + 'StandardButtons.js'} />
          </div>
        </PapperBlock>
        <PapperBlock title="Floating Action Buttons" desc="A floating action button represents the primary action in an application. Shaped like a circled icon floating above the UI, it has an ink wash upon focus and lifts upon selection.">
          <div>
            <FloatingButtons />
            <SourceReader componentName={docSrc + 'FloatingButtons.js'} />
          </div>
        </PapperBlock>
        <PapperBlock title="Customized Buttons" desc="">
          <div>
            <CustomButtons />
            <SourceReader componentName={docSrc + 'CustomButtons.js'} />
          </div>
        </PapperBlock>
        <PapperBlock title="Complex Buttons" desc="The Flat Buttons, Raised Buttons, Floating Action Buttons and Icon Buttons are built on top of the same component: the ButtonBase. You can take advantage of this lower level component to build custom interactions.">
          <div>
            <ComplexButtons />
            <SourceReader componentName={docSrc + 'ComplexButtons.js'} />
          </div>
        </PapperBlock>
      </div>
    );
  }
}

export default withStyles(styles)(Buttons);