From 4b4a8a155dc3e051fd61b3845a6091f95cf547bb Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 17 Jul 2016 13:04:44 +0100 Subject: [PATCH] Separate index.css and App.css --- src/App.css | 6 +++--- src/App.js | 6 +++--- src/index.css | 4 ++++ src/index.js | 1 + 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 src/index.css diff --git a/src/App.css b/src/App.css index 66e43286..c5e0f352 100644 --- a/src/App.css +++ b/src/App.css @@ -1,8 +1,8 @@ -body { - background-color: #f5fcff; +.App { + padding: 0px 20px; } -.App--logo { +.App-logo { animation: spin infinite 20s linear; border-radius: 50%; vertical-align: middle; diff --git a/src/App.js b/src/App.js index 2e074f3a..1923a380 100644 --- a/src/App.js +++ b/src/App.js @@ -1,12 +1,12 @@ -import React from 'react'; import './App.css'; +import React from 'react'; import logo from './logo.png'; export default function App() { return ( -
+

- Welcome to logo React + Welcome to logo React

To get started, edit src/App.js and save to reload. diff --git a/src/index.css b/src/index.css new file mode 100644 index 00000000..9aed4620 --- /dev/null +++ b/src/index.css @@ -0,0 +1,4 @@ +body { + background-color: #f5fcff; + font-family: sans-serif; +} diff --git a/src/index.js b/src/index.js index e50915a6..e98af4f1 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,4 @@ +import './index.css'; import React from 'react'; import { render } from 'react-dom'; import App from './App';