Skip to content

Commit ffca5ab

Browse files
lukejacksonngaearon
authored andcommitted
Applies new theme and adds docs link to template (facebook#3235)
* Applies dark theme and adds link to reactjs.org * Just "learn React" * Tweaks
1 parent b12ec7c commit ffca5ab

File tree

3 files changed

+37
-17
lines changed

3 files changed

+37
-17
lines changed

template/src/App.css

+16-12
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,29 @@
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;
19-
}
20-
21-
.App-intro {
22-
font-size: large;
21+
.App-link {
22+
color: #61dafb;
2323
}
2424

2525
@keyframes App-logo-spin {
26-
from { transform: rotate(0deg); }
27-
to { transform: rotate(360deg); }
26+
from {
27+
transform: rotate(0deg);
28+
}
29+
to {
30+
transform: rotate(360deg);
31+
}
2832
}

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>
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 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
}

template/src/index.css

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
body {
22
margin: 0;
33
padding: 0;
4-
font-family: sans-serif;
4+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
5+
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
6+
sans-serif;
7+
-webkit-font-smoothing: antialiased;
8+
-moz-osx-font-smoothing: grayscale;
9+
}
10+
11+
code {
12+
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
13+
monospace;
514
}

0 commit comments

Comments
 (0)