Skip to content

Commit

Permalink
Applies new theme and adds docs link to template (facebook#3235)
Browse files Browse the repository at this point in the history
* Applies dark theme and adds link to reactjs.org

* Just "learn React"

* Tweaks
  • Loading branch information
lukejacksonn authored and gaearon committed Jan 17, 2018
1 parent b12ec7c commit ffca5ab
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 17 deletions.
28 changes: 16 additions & 12 deletions template/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,29 @@

.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 80px;
height: 40vmin;
}

.App-header {
background-color: #222;
height: 150px;
padding: 20px;
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-title {
font-size: 1.5em;
}

.App-intro {
font-size: large;
.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
15 changes: 11 additions & 4 deletions template/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ class App extends Component {
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
);
}
Expand Down
11 changes: 10 additions & 1 deletion template/src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
body {
margin: 0;
padding: 0;
font-family: sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}

0 comments on commit ffca5ab

Please sign in to comment.