Skip to content

Commit 85a5cf0

Browse files
committed
Separate index.css and App.css
1 parent 2726f1d commit 85a5cf0

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

src/App.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
body {
2-
background-color: #f5fcff;
1+
.App {
2+
padding: 0px 20px;
33
}
44

5-
.App--logo {
5+
.App-logo {
66
animation: spin infinite 20s linear;
77
border-radius: 50%;
88
vertical-align: middle;

src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import React from 'react';
21
import './App.css';
2+
import React from 'react';
33
import logo from './logo.png';
44

55
export default function App() {
66
return (
7-
<div>
7+
<div className="App">
88
<h1>
9-
Welcome to <img src={logo} className="App--logo" alt="logo" /> React
9+
Welcome to <img src={logo} className="App-logo" alt="logo" /> React
1010
</h1>
1111
<p>
1212
To get started, edit <code>src/App.js</code> and save to reload.

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
body {
2+
background-color: #f5fcff;
3+
font-family: sans-serif;
4+
}

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './index.css';
12
import React from 'react';
23
import { render } from 'react-dom';
34
import App from './App';

0 commit comments

Comments
 (0)