From a5d1351f92d563f9783973125b7b4a0178768208 Mon Sep 17 00:00:00 2001 From: Yiqing Zhu <793831308@qq.com> Date: Sat, 26 Mar 2022 17:38:20 +1100 Subject: [PATCH] Chap04 -> Styling components with CSS -> Styling the App component --- QandA/frontend/src/App.css | 43 +++++--------------------------------- QandA/frontend/src/App.tsx | 2 +- 2 files changed, 6 insertions(+), 39 deletions(-) diff --git a/QandA/frontend/src/App.css b/QandA/frontend/src/App.css index 74b5e05..74457bb 100644 --- a/QandA/frontend/src/App.css +++ b/QandA/frontend/src/App.css @@ -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; +} \ No newline at end of file diff --git a/QandA/frontend/src/App.tsx b/QandA/frontend/src/App.tsx index d73cd3d..f601372 100644 --- a/QandA/frontend/src/App.tsx +++ b/QandA/frontend/src/App.tsx @@ -5,7 +5,7 @@ import { HomePage } from './HomePage'; function App() { return ( -