Skip to content

Commit e6a3b86

Browse files
committed
update content
1 parent 85554c6 commit e6a3b86

File tree

6 files changed

+35
-10
lines changed

6 files changed

+35
-10
lines changed

src/containers/Home/Content.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import React, { Component } from 'react';
33
export default class Content extends Component {
44
render() {
55
return (
6-
<div>
7-
this is content
6+
<div className="content">
7+
<h1>Hello, We are ReactMaker!</h1>
8+
<h2>This is Content Component!</h2>
89
</div>
910
);
1011
}

src/containers/Home/Header.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
import React, { Component } from 'react';
2-
import logo from './logo7.png';
2+
import logo from './logo.png';
3+
import github from './github.png';
4+
import facebook from './facebook.png';
35

46
export default class Header extends Component {
57
render() {
68
return (
79
<div className="header">
8-
<a href="https://facebook.com/reactmaker">
10+
<div className="logo">
911
<img alt="logoHeader" src={logo} />
10-
</a>
12+
</div>
13+
<div className="link">
14+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/ReactMaker">
15+
<img alt="github" src={github} />
16+
</a>
17+
<a target="_blank" rel="noopener noreferrer" href="https://facebook.com/reactmaker">
18+
<img alt="facebook" src={facebook} />
19+
</a>
20+
</div>
1121
</div>
1222
);
1323
}

src/containers/Home/Home.less

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,29 @@
33
.header{
44
height: 80px;
55
display: flex;
6-
justify-content: flex-start;
6+
justify-content: space-between;
77
align-items: center;
88
flex-direction: row;
99
background-color: #333;
1010
padding: 0 10px;
11-
img{
12-
height: 70px;
13-
animation: rotate 15s infinite;
11+
.logo {
12+
img {
13+
height: 70px;
14+
animation: rotate 15s infinite;
15+
}
1416
}
17+
.link {
18+
img {
19+
height: 30px;
20+
margin-right: 20px;
21+
}
22+
}
23+
}
24+
25+
.content {
26+
display: flex;
27+
flex-direction: column;
28+
align-items: center;
1529
}
1630
}
1731

@@ -25,4 +39,4 @@
2539
100%{
2640
transform: rotateY(360deg);
2741
}
28-
}
42+
}

src/containers/Home/facebook.png

2.07 KB
Loading

src/containers/Home/github.png

2.72 KB
Loading
File renamed without changes.

0 commit comments

Comments
 (0)