diff --git a/lib/browser-main.tsx b/lib/browser-main.tsx index 89c1714..b853dbe 100644 --- a/lib/browser-main.tsx +++ b/lib/browser-main.tsx @@ -2,9 +2,11 @@ import React from "react"; import ReactDOM from "react-dom"; import { WavesPage } from "./pages/waves-page"; import { VocabularyPage } from "./pages/vocabulary-page"; +import { CreaturePage } from "./pages/creature-page"; const Pages = { vocabulary: VocabularyPage, + creature: CreaturePage, waves: WavesPage, }; diff --git a/lib/pages/creature-page.tsx b/lib/pages/creature-page.tsx new file mode 100644 index 0000000..d6ec0d7 --- /dev/null +++ b/lib/pages/creature-page.tsx @@ -0,0 +1,24 @@ +import React from "react"; +import { Random } from "../random"; +import { SvgVocabulary } from "../svg-vocabulary"; + +export const CreaturePage: React.FC<{}> = () => { + const rand = new Random(1); + const parts: string[] = []; + + for (let i = 0; i < 5; i++) { + parts.push(rand.choice(SvgVocabulary).name); + } + + return ( + <> +
TODO: Make a creature with maybe the following parts:
+