1
1
import * as React from 'react'
2
2
import * as T from 'typings'
3
3
import * as TT from 'typings/tutorial'
4
- import { Button , Drawer } from '@alifd/next'
4
+ import { Drawer } from '@alifd/next'
5
5
import * as selectors from '../../services/selectors'
6
6
import Level from './components/Level'
7
7
import Icon from '../../components/Icon'
@@ -10,12 +10,15 @@ const styles = {
10
10
header: {
11
11
display: 'flex' as 'flex',
12
12
alignItems: 'center',
13
- justifyContent :'space-between ' ,
13
+ justifyContent: 'flex-start ',
14
14
height: '2rem',
15
15
backgroundColor: '#EBEBEB',
16
16
fontSize: '1rem',
17
17
lineHeight: '1rem',
18
- padding :'10px 1rem' ,
18
+ padding: '10px 0.4rem',
19
+ },
20
+ title: {
21
+ marginLeft: '0.5rem',
19
22
},
20
23
learn: {
21
24
textDecoration: 'none',
@@ -65,10 +68,10 @@ const TutorialPage = (props: PageProps) => {
65
68
return (
66
69
<div>
67
70
<div css={styles.header}>
68
- < Button onClick = { ( ) => setMenuVisible ( ! menuVisible ) } >
69
- < Icon type = "menu " />
70
- </ Button >
71
- { tutorial . summary . title }
71
+ <a onClick={() => setMenuVisible(!menuVisible)}>
72
+ <Icon type="toggle-left" size="small " />
73
+ </a >
74
+ <span css={styles.title}>{ tutorial.summary.title}</span>
72
75
</div>
73
76
<Level
74
77
tutorial={tutorial}