diff --git a/src/App.css b/src/App.css index 1ec2601..ef91d90 100644 --- a/src/App.css +++ b/src/App.css @@ -25,14 +25,19 @@ body { font-weight: bold; } -.App { +.App-container { + position: relative; + max-width: 500px; display: flex; flex-direction: column; - max-width: 500px; margin: 0 auto; justify-content: center; } +.App-container h1 { + margin-top: 0; +} + .Game { display: flex; flex-direction: column; @@ -152,4 +157,10 @@ a:active { .App-footer { margin: -1rem 0 2rem 0; font-size: 80%; + line-height: 1.5; } + +.App-about { + margin-top: -1rem; + line-height: 1.4; +} \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 932bdc7..0991b45 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,20 +4,84 @@ import { dictionarySet, pick } from "./util"; import Game from "./Game"; import { names } from "./names"; import { useState } from "react"; +import { Row, RowState } from "./Row"; +import { Clue } from "./clue"; function App() { + const [about, setAbout] = useState(false); + const maxGuesses = 6; return ( - <> +
+ hello wordl is a remake of the word game{" "} + + Wordle + + , which I think is based on the TV show Lingo. +
+
+ You get {maxGuesses} tries to guess a target word.
+
+ After each guess, you get Mastermind-style feedback:
+
+
+ W and O aren't in the target word at all.
+
+ R is correct! The third letter is R
+ .
+ D occurs elsewhere in the target
+ word.
+
+ Let's move the D in our next guess:
+