From ca35d9e3758590868aeb2c455e485cac9cfe2a18 Mon Sep 17 00:00:00 2001 From: Luke Jackson Date: Tue, 3 Oct 2017 21:33:37 +0100 Subject: [PATCH 1/3] Applies dark theme and adds link to reactjs.org --- packages/react-scripts/template/src/App.css | 20 ++++++++++++-------- packages/react-scripts/template/src/App.js | 15 +++++++++++---- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/packages/react-scripts/template/src/App.css b/packages/react-scripts/template/src/App.css index c5c6e8a68ad..57b6ab5b6b2 100644 --- a/packages/react-scripts/template/src/App.css +++ b/packages/react-scripts/template/src/App.css @@ -4,22 +4,26 @@ .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-weight: 200; } -.App-intro { - font-size: large; +.App-link { + color: #61dafb; } @keyframes App-logo-spin { diff --git a/packages/react-scripts/template/src/App.js b/packages/react-scripts/template/src/App.js index 203067e4d75..9a7e28878b1 100644 --- a/packages/react-scripts/template/src/App.js +++ b/packages/react-scripts/template/src/App.js @@ -8,11 +8,18 @@ class App extends Component {
logo -

Welcome to React

+

+ Edit src/App.js and save to reload. +

+ + Learn About React +
-

- To get started, edit src/App.js and save to reload. -

); } From cfc8b90aa6cc10c364ffe0841e58e3e5cd3fc75f Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 17 Jan 2018 19:20:26 +0000 Subject: [PATCH 2/3] Just "learn React" --- packages/react-scripts/template/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/template/src/App.js b/packages/react-scripts/template/src/App.js index 9a7e28878b1..007cc579fd5 100644 --- a/packages/react-scripts/template/src/App.js +++ b/packages/react-scripts/template/src/App.js @@ -17,7 +17,7 @@ class App extends Component { target="_blank" rel="noopener noreferrer" > - Learn About React + Learn React From bc0554bfe295ab9142601c2c9144c17cd9fe40af Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 17 Jan 2018 19:30:51 +0000 Subject: [PATCH 3/3] Tweaks --- packages/react-scripts/template/src/App.css | 12 ++++++------ packages/react-scripts/template/src/App.js | 2 +- packages/react-scripts/template/src/index.css | 11 ++++++++++- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/packages/react-scripts/template/src/App.css b/packages/react-scripts/template/src/App.css index 57b6ab5b6b2..92f956e8040 100644 --- a/packages/react-scripts/template/src/App.css +++ b/packages/react-scripts/template/src/App.css @@ -18,15 +18,15 @@ color: white; } -.App-intro { - font-weight: 200; -} - .App-link { color: #61dafb; } @keyframes App-logo-spin { - from { transform: rotate(0deg); } - to { transform: rotate(360deg); } + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } } diff --git a/packages/react-scripts/template/src/App.js b/packages/react-scripts/template/src/App.js index 007cc579fd5..7e261ca47e6 100644 --- a/packages/react-scripts/template/src/App.js +++ b/packages/react-scripts/template/src/App.js @@ -8,7 +8,7 @@ class App extends Component {
logo -

+

Edit src/App.js and save to reload.