File tree Expand file tree Collapse file tree 8 files changed +76
-332
lines changed Expand file tree Collapse file tree 8 files changed +76
-332
lines changed Original file line number Diff line number Diff line change 1
1
@import ' ../../../assets/css/common/index' ;
2
- .header-box {
3
- position : fixed ;
4
- width : 100% ;
5
- top : 0 ;
6
- box-shadow : 0 0 16px 0 #ccc ;
7
- background-color : #ffffff ;
8
- z-index : 10 ;
2
+ .avatar-contanier {
9
3
:global {
10
- .cr-header {
11
- width : 1220px ;
12
- margin : 0 auto ;
13
- display : flex ;
14
- height : 80px ;
15
- .cr-logo {
16
- flex-shrink : 0 ;
17
-
18
- img {
19
- width : 214px ;
20
- height : 50px ;
21
- margin : 10px 20px 20px ;
22
- }
23
- }
24
-
25
- .cr-nav {
26
- flex : 1 ;
27
- margin-bottom : 8px ;
28
- align-self : center ;
29
- overflow : hidden ;
30
- }
31
-
32
- .cr-user {
33
- flex-shrink : 0 ;
34
- font-size : 20px ;
35
- line-height : 80px ;
36
-
37
- > span ,
38
- > i {
39
- margin : 0 15px ;
40
- }
41
-
42
- > i {
43
- font-weight : bold ;
44
- }
45
- }
46
-
47
- .ant-menu-item {
48
- font-size : 20px ;
49
- color : #000 ;
50
- line-height : 68px ;
51
- margin : 0 10px ;
52
- border-bottom : 4px solid transparent ;
53
- }
54
-
55
- .ant-menu-item-selected ,
56
- .ant-menu-item :hover {
57
- border-bottom : 4px solid @header-nav-color ;
58
- color : #000000 ;
59
- }
60
-
61
- .ant-menu-item-active .ant-menu-item-selected {
62
- border-bottom : 4px solid @header-nav-color ;
63
- }
64
-
65
- .ant-menu-horizontal {
66
- border : none ;
67
- }
4
+ .ant-avatar {
5
+ margin-right : 10px ;
68
6
}
69
7
}
70
8
}
Original file line number Diff line number Diff line change @@ -5,8 +5,14 @@ import { Avatar } from 'antd';
5
5
export default class BasicHeader extends Component {
6
6
render ( ) {
7
7
return (
8
- < div >
8
+ < div className = { styles [ 'avatar-contanier' ] } >
9
9
< Avatar />
10
+ < Avatar icon = "user" />
11
+ < Avatar size = "large" > U</ Avatar >
12
+ < Avatar > USER</ Avatar >
13
+ < Avatar src = "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />
14
+ < Avatar style = { { color : '#f56a00' , backgroundColor : '#fde3cf' } } > U</ Avatar >
15
+ < Avatar style = { { backgroundColor : '#87d068' } } icon = "user" />
10
16
</ div >
11
17
) ;
12
18
}
Original file line number Diff line number Diff line change 1
1
@import ' ../../../assets/css/common/index' ;
2
- .header-box {
3
- position : fixed ;
4
- width : 100% ;
5
- top : 0 ;
6
- box-shadow : 0 0 16px 0 #ccc ;
7
- background-color : #ffffff ;
8
- z-index : 10 ;
9
- :global {
10
- .cr-header {
11
- width : 1220px ;
12
- margin : 0 auto ;
13
- display : flex ;
14
- height : 80px ;
15
- .cr-logo {
16
- flex-shrink : 0 ;
17
-
18
- img {
19
- width : 214px ;
20
- height : 50px ;
21
- margin : 10px 20px 20px ;
22
- }
23
- }
24
-
25
- .cr-nav {
26
- flex : 1 ;
27
- margin-bottom : 8px ;
28
- align-self : center ;
29
- overflow : hidden ;
30
- }
31
-
32
- .cr-user {
33
- flex-shrink : 0 ;
34
- font-size : 20px ;
35
- line-height : 80px ;
36
-
37
- > span ,
38
- > i {
39
- margin : 0 15px ;
40
- }
41
-
42
- > i {
43
- font-weight : bold ;
44
- }
45
- }
46
-
47
- .ant-menu-item {
48
- font-size : 20px ;
49
- color : #000 ;
50
- line-height : 68px ;
51
- margin : 0 10px ;
52
- border-bottom : 4px solid transparent ;
53
- }
54
-
55
- .ant-menu-item-selected ,
56
- .ant-menu-item :hover {
57
- border-bottom : 4px solid @header-nav-color ;
58
- color : #000000 ;
59
- }
60
-
61
- .ant-menu-item-active .ant-menu-item-selected {
62
- border-bottom : 4px solid @header-nav-color ;
63
- }
64
-
65
- .ant-menu-horizontal {
66
- border : none ;
67
- }
68
- }
69
- }
70
- }
Original file line number Diff line number Diff line change 1
1
@import ' ../../../assets/css/common/index' ;
2
- .header-box {
3
- position : fixed ;
4
- width : 100% ;
5
- top : 0 ;
6
- box-shadow : 0 0 16px 0 #ccc ;
7
- background-color : #ffffff ;
8
- z-index : 10 ;
9
- :global {
10
- .cr-header {
11
- width : 1220px ;
12
- margin : 0 auto ;
13
- display : flex ;
14
- height : 80px ;
15
- .cr-logo {
16
- flex-shrink : 0 ;
17
-
18
- img {
19
- width : 214px ;
20
- height : 50px ;
21
- margin : 10px 20px 20px ;
22
- }
23
- }
24
-
25
- .cr-nav {
26
- flex : 1 ;
27
- margin-bottom : 8px ;
28
- align-self : center ;
29
- overflow : hidden ;
30
- }
31
-
32
- .cr-user {
33
- flex-shrink : 0 ;
34
- font-size : 20px ;
35
- line-height : 80px ;
36
-
37
- > span ,
38
- > i {
39
- margin : 0 15px ;
40
- }
41
-
42
- > i {
43
- font-weight : bold ;
44
- }
45
- }
46
-
47
- .ant-menu-item {
48
- font-size : 20px ;
49
- color : #000 ;
50
- line-height : 68px ;
51
- margin : 0 10px ;
52
- border-bottom : 4px solid transparent ;
53
- }
54
-
55
- .ant-menu-item-selected ,
56
- .ant-menu-item :hover {
57
- border-bottom : 4px solid @header-nav-color ;
58
- color : #000000 ;
59
- }
60
-
61
- .ant-menu-item-active .ant-menu-item-selected {
62
- border-bottom : 4px solid @header-nav-color ;
63
- }
2
+ .input-container {
3
+ }
64
4
65
- .ant-menu-horizontal {
66
- border : none ;
67
- }
5
+ :global {
6
+ .ant-input {
7
+ width : 350px ;
8
+ line-height : 48px ;
9
+ height : 48px ;
10
+ border-radius : 0 ;
11
+ border-color : @primary-color ;
12
+
13
+ & :focus ,
14
+ & :hover {
15
+ box-shadow : none ;
16
+ border-color : @primary-color ;
17
+ border-width : 2px !important ;
68
18
}
69
19
}
70
20
}
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react' ;
2
+
2
3
import styles from './index.less' ;
3
- import { Menu , Icon } from 'antd' ;
4
+ import { Input } from 'antd' ;
4
5
5
6
export default class BasicHeader extends Component {
6
7
render ( ) {
7
- return < div > this is empty</ div > ;
8
+ return (
9
+ < div className = { styles [ 'input-container' ] } >
10
+ < Input />
11
+ </ div >
12
+ ) ;
8
13
}
9
14
}
Original file line number Diff line number Diff line change 1
1
@import ' ../../../assets/css/common/index' ;
2
- .header-box {
3
- position : fixed ;
4
- width : 100% ;
5
- top : 0 ;
6
- box-shadow : 0 0 16px 0 #ccc ;
7
- background-color : #ffffff ;
8
- z-index : 10 ;
9
- :global {
10
- .cr-header {
11
- width : 1220px ;
12
- margin : 0 auto ;
13
- display : flex ;
14
- height : 80px ;
15
- .cr-logo {
16
- flex-shrink : 0 ;
17
-
18
- img {
19
- width : 214px ;
20
- height : 50px ;
21
- margin : 10px 20px 20px ;
22
- }
23
- }
24
-
25
- .cr-nav {
26
- flex : 1 ;
27
- margin-bottom : 8px ;
28
- align-self : center ;
29
- overflow : hidden ;
30
- }
31
-
32
- .cr-user {
33
- flex-shrink : 0 ;
34
- font-size : 20px ;
35
- line-height : 80px ;
36
-
37
- > span ,
38
- > i {
39
- margin : 0 15px ;
40
- }
41
-
42
- > i {
43
- font-weight : bold ;
44
- }
45
- }
46
-
47
- .ant-menu-item {
48
- font-size : 20px ;
49
- color : #000 ;
50
- line-height : 68px ;
51
- margin : 0 10px ;
52
- border-bottom : 4px solid transparent ;
53
- }
54
-
55
- .ant-menu-item-selected ,
56
- .ant-menu-item :hover {
57
- border-bottom : 4px solid @header-nav-color ;
58
- color : #000000 ;
59
- }
60
-
61
- .ant-menu-item-active .ant-menu-item-selected {
62
- border-bottom : 4px solid @header-nav-color ;
63
- }
64
-
65
- .ant-menu-horizontal {
66
- border : none ;
67
- }
68
- }
69
- }
70
- }
You can’t perform that action at this time.
0 commit comments