From 49221d965a67e2f15669fc4cd2bc87c0060f37fb Mon Sep 17 00:00:00 2001 From: Lynn Date: Sun, 2 Jan 2022 21:27:53 +0100 Subject: [PATCH] Move footer to top (wait, what?) --- src/App.css | 24 ++++++++++++++++++------ src/App.tsx | 36 ++++++++++++++++++++---------------- 2 files changed, 38 insertions(+), 22 deletions(-) diff --git a/src/App.css b/src/App.css index 0e60f64..ac96f2e 100644 --- a/src/App.css +++ b/src/App.css @@ -94,7 +94,7 @@ body { color: white; } -@media(prefers-color-scheme: dark) { +@media (prefers-color-scheme: dark) { body { background-color: #404040; color: #e0e0e0; @@ -112,20 +112,21 @@ body { border: 2px solid rgba(0, 0, 0, 0.3); color: white; } - + .letter-elsewhere { border: 2px dotted rgba(0, 0, 0, 0.3); color: white; } - + .letter-absent { border: 2px solid transparent; background-color: rgb(142, 142, 142); color: white; - } + } } -a, a:visited { +a, +a:visited { color: #8080ff; } @@ -133,7 +134,18 @@ a:active { color: #cc77ff; } +.App-option { + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 1rem; +} + +.App-option input { + margin-left: 0.5rem; +} + .App-footer { - margin-top: 1rem; + margin: -1rem 0 2rem 0; font-size: 80%; } diff --git a/src/App.tsx b/src/App.tsx index 448d1f4..1f2193c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -23,17 +23,26 @@ function App() { return ( <>

hello wordl

- { - const length = Number(e.target.value); - setTarget(randomTarget(length)); - setWordLength(length); - }} - > + +
+ + { + const length = Number(e.target.value); + setTarget(randomTarget(length)); + setWordLength(length); + }} + > +
- ); }