Skip to content

Commit 51bdbb8

Browse files
committed
Add header and update styles
1 parent 56a2420 commit 51bdbb8

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

src/App.css

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,9 @@
22
text-align: center;
33
}
44

5-
.App-logo {
6-
height: 40vmin;
7-
pointer-events: none;
8-
}
9-
10-
@media (prefers-reduced-motion: no-preference) {
11-
.App-logo {
12-
animation: App-logo-spin infinite 20s linear;
13-
}
14-
}
15-
165
.App-header {
176
background-color: #282c34;
18-
min-height: 100vh;
7+
min-height: 10vh;
198
display: flex;
209
flex-direction: column;
2110
align-items: center;
@@ -24,15 +13,10 @@
2413
color: white;
2514
}
2615

27-
.App-link {
28-
color: #61dafb;
16+
#points-display {
17+
font-weight: bold;
2918
}
3019

31-
@keyframes App-logo-spin {
32-
from {
33-
transform: rotate(0deg);
34-
}
35-
to {
36-
transform: rotate(360deg);
37-
}
38-
}
20+
p {
21+
line-height: 120%;
22+
}

src/App.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ function App() {
77
}
88
return (
99
<div className="App">
10-
Points: {points}<br />
10+
<header className="App-header">
11+
Endless Simple Idle Game
12+
</header>
13+
<p>Click the button to add points!</p>
14+
Points: <div id="points-display">{points}</div><br />
1115
<button onClick={() => addPointsFromClick()}>Click to Add Points</button>
1216
</div>
1317
);

0 commit comments

Comments
 (0)