-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathBasic.tsx
More file actions
76 lines (66 loc) · 2.06 KB
/
Basic.tsx
File metadata and controls
76 lines (66 loc) · 2.06 KB
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
import React from 'react';
import { Layout } from '@tiny-design/react';
export default function BasicDemo() {
const layoutStyle = {
marginBottom: '50px',
};
const headerStyle = {
background: 'color-mix(in srgb, var(--ty-color-primary) 70%, transparent)',
color: '#fff',
textAlign: 'center',
height: '64px',
lineHeight: '64px',
};
const footerStyle = {
background: 'color-mix(in srgb, var(--ty-color-primary) 70%, transparent)',
color: '#fff',
textAlign: 'center',
};
const contentStyle = {
background: 'color-mix(in srgb, var(--ty-color-primary) 98%, transparent)',
color: '#fff',
minHeight: '120px',
lineHeight: '120px',
textAlign: 'center',
};
const sidebarStyle = {
background: 'color-mix(in srgb, var(--ty-color-primary) 84%, transparent)',
color: '#fff',
textAlign: 'center',
paddingTop: '30px',
};
const { Sidebar, Header, Footer, Content } = Layout;
return (
<div>
<Layout style={layoutStyle}>
<Header style={headerStyle}>Header</Header>
<Content style={contentStyle}>Content</Content>
<Footer style={footerStyle}>Footer</Footer>
</Layout>
<Layout style={layoutStyle}>
<Header style={headerStyle}>Header</Header>
<Layout>
<Sidebar style={sidebarStyle}>Sidebar</Sidebar>
<Content style={contentStyle}>Content</Content>
</Layout>
<Footer style={footerStyle}>Footer</Footer>
</Layout>
<Layout style={layoutStyle}>
<Header style={headerStyle}>Header</Header>
<Layout>
<Content style={contentStyle}>Content</Content>
<Sidebar style={sidebarStyle}>Sidebar</Sidebar>
</Layout>
<Footer style={footerStyle}>Footer</Footer>
</Layout>
<Layout>
<Sidebar style={sidebarStyle}>Sidebar</Sidebar>
<Layout>
<Header style={headerStyle}>Header</Header>
<Content style={contentStyle}>Content</Content>
<Footer style={footerStyle}>Footer</Footer>
</Layout>
</Layout>
</div>
);
}