Skip to content

Commit ca35d9e

Browse files
committed
Applies dark theme and adds link to reactjs.org
1 parent cd3d04b commit ca35d9e

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

packages/react-scripts/template/src/App.css

+12-8
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,26 @@
44

55
.App-logo {
66
animation: App-logo-spin infinite 20s linear;
7-
height: 80px;
7+
height: 40vmin;
88
}
99

1010
.App-header {
11-
background-color: #222;
12-
height: 150px;
13-
padding: 20px;
11+
background-color: #282c34;
12+
min-height: 100vh;
13+
display: flex;
14+
flex-direction: column;
15+
align-items: center;
16+
justify-content: center;
17+
font-size: calc(10px + 2vmin);
1418
color: white;
1519
}
1620

17-
.App-title {
18-
font-size: 1.5em;
21+
.App-intro {
22+
font-weight: 200;
1923
}
2024

21-
.App-intro {
22-
font-size: large;
25+
.App-link {
26+
color: #61dafb;
2327
}
2428

2529
@keyframes App-logo-spin {

packages/react-scripts/template/src/App.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@ class App extends Component {
88
<div className="App">
99
<header className="App-header">
1010
<img src={logo} className="App-logo" alt="logo" />
11-
<h1 className="App-title">Welcome to React</h1>
11+
<p className="App-intro">
12+
Edit <code>src/App.js</code> and save to reload.
13+
</p>
14+
<a
15+
className="App-link"
16+
href="https://reactjs.org"
17+
target="_blank"
18+
rel="noopener noreferrer"
19+
>
20+
Learn About React
21+
</a>
1222
</header>
13-
<p className="App-intro">
14-
To get started, edit <code>src/App.js</code> and save to reload.
15-
</p>
1623
</div>
1724
);
1825
}

0 commit comments

Comments
 (0)