blob: e1a88ba05315ed5ef8e11ef6dc0459f947a27269 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
import React from 'react';
import { Helmet } from 'react-helmet';
import brand from 'ba-api/brand';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { SourceReader, PapperBlock } from 'ba-components';
import { Grid } from '@material-ui/core';
import {
GeneralTypo,
Heading,
ListTypo,
AlignTypo,
ColouredTypo,
QuotesDemo
} from './demos';
const styles = ({
root: {
flexGrow: 1,
}
});
class Typography extends React.Component {
render() {
const { classes } = this.props;
const title = brand.name + ' - UI Elements';
const description = brand.desc;
const docSrc = 'containers/UiElements/demos/Typography/';
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>
<div className={classes.root}>
<Grid container spacing={3}>
<Grid item md={7} xs={12}>
<PapperBlock title="Genereal Typo" desc="The Roboto font will not be automatically loaded by Material-UI. The developer is responsible for loading all fonts used in their application. Roboto Font has a few easy ways to get started.">
<div>
<GeneralTypo />
<SourceReader componentName={docSrc + 'GeneralTypo.js'} />
</div>
</PapperBlock>
<PapperBlock title="Text Alignment" desc="">
<div>
<AlignTypo />
<SourceReader componentName={docSrc + 'AlignTypo.js'} />
</div>
</PapperBlock>
<PapperBlock title="Coloured Text" desc="">
<div>
<ColouredTypo />
<SourceReader componentName={docSrc + 'ColouredTypo.js'} />
</div>
</PapperBlock>
</Grid>
<Grid item md={5} xs={12}>
<PapperBlock title="Fuente - Roboto" desc="">
<div>
<Heading />
{/* <SourceReader componentName={docSrc + 'Heading.js'} /> */}
</div>
</PapperBlock>
<PapperBlock title="List" desc="">
<div>
<ListTypo />
<SourceReader componentName={docSrc + 'ListTypo.js'} />
</div>
</PapperBlock>
<PapperBlock title="Quotes" desc="">
<div>
<QuotesDemo />
<SourceReader componentName={docSrc + 'QuotesDemo.js'} />
</div>
</PapperBlock>
</Grid>
</Grid>
</div>
</div>
);
}
}
Typography.propTypes = {
classes: PropTypes.object.isRequired,
};
export default withStyles(styles)(Typography);
|