forked from beven/reactApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
52 lines (46 loc) · 1.15 KB
/
App.jsx
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
import React from 'react';
import './App.css';
document.body.style.backgroundColor = "steelblue";
class App extends React.Component {
render() {
return (
<div>
<Header/>
<Content/>
</div>
);
}
}
class Header extends React.Component {
render() {
return(
<div>
<h1 className="headerOne" style={{ color: '#27ae60', font: '70px Tahoma, Helvetica, Arial, Sans-Serif', textShadow: '0px 2px 3px rgb(114, 220, 159)' }}>Another boring '
<span class="amber">H</span>
<span class="pink">e</span>
<span class="yellow">l</span>
<span class="blue">l</span>
<span class="green">o</span>
<span class=""> </span>
<span class="lime">W</span>
<span class="grey">o</span>
<span class="deepOrange">r</span>
<span class="pink">l</span>
<span class="amber">d</span>
<span class="deepOrange">!</span>
' app!</h1>
</div>
);
}
}
class Content extends React.Component {
render(){
return(
<div id="initialDiv">
<h2 className="headerTwo">Can we improve it?</h2>
<p>Maybe we can together ...</p>
</div>
);
}
}
export default App;