Chap04 -> Styling components with CSS -> Styling the App component

Chap04
Yiqing Zhu 2022-03-26 17:38:20 +11:00
parent 2b3cbdddd5
commit a5d1351f92
2 changed files with 6 additions and 39 deletions

View File

@ -1,38 +1,5 @@
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
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-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.container {
font-family: 'Segoe UI', 'Helvetica', sans-serif;
font-size: 16px;
color: #5c5a5a;
}

View File

@ -5,7 +5,7 @@ import { HomePage } from './HomePage';
function App() {
return (
<div className="App">
<div className="container">
<Header />
<HomePage />
</div>