Skip to content

Commit b463663

Browse files
committed
Simplify boilerplate css
1 parent 133184f commit b463663

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

src/App.css

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
.App {
2-
display: flex;
3-
flex-direction: column;
4-
min-height: 100vh;
2+
text-align: center;
53
}
64

75
.App-logo {
@@ -10,20 +8,14 @@
108
}
119

1210
.App-header {
13-
align-items: center;
1411
background-color: #222;
15-
color: #fff;
16-
display: flex;
17-
flex: 1;
18-
flex-direction: column;
19-
justify-content: center;
12+
height: 150px;
13+
padding: 20px;
14+
color: white;
2015
}
2116

2217
.App-intro {
23-
flex: 7;
2418
font-size: large;
25-
padding: 50px;
26-
text-align: center;
2719
}
2820

2921
@keyframes spin {

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function App() {
77
<div className="App">
88
<div className="App-header">
99
<img src={logo} className="App-logo" alt="logo" />
10-
<h2>Welcome to React.</h2>
10+
<h2>Welcome to React</h2>
1111
</div>
1212
<p className="App-intro">
1313
To get started, edit <code>src/App.js</code> and save to reload.

0 commit comments

Comments
 (0)