blob: c0e96d05bfc90d22cd643889dd7c45a6e6a099b9 (
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
|
import React, { Component } from 'react';
import { Helmet } from 'react-helmet';
import brand from 'ba-api/brand';
import { SourceReader, PapperBlock } from 'ba-components';
import { SidebarLayout, SidebarLayoutRight, FullHeader } from './demos';
class AppLayout extends Component {
render() {
const title = brand.name + ' - Layout';
const description = brand.desc;
const docSrc = 'containers/Layouts/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="App Layout with Sidebars" desc="The Drawer slides in from the side. It is a common pattern found in Google apps and follows the keylines and metrics for lists.">
<div>
<SidebarLayout />
<SourceReader componentName={docSrc + 'SidebarLayout.js'} />
</div>
</PapperBlock>
<PapperBlock title="Right Sidebar Mode" desc="The Drawer slides in from the side. It is a common pattern found in Google apps and follows the keylines and metrics for lists.">
<div>
<SidebarLayoutRight />
<SourceReader componentName={docSrc + 'SidebarLayoutRight.js'} />
</div>
</PapperBlock>
<PapperBlock title="Full Header Mode" desc="Apps focused on productivity that require balance across the screen.">
<div>
<FullHeader />
<SourceReader componentName={docSrc + 'FullHeader.js'} />
</div>
</PapperBlock>
</div>
);
}
}
export default AppLayout;
|