thurtle: Move about text to header

This commit is contained in:
Remko Tronçon 2022-05-14 21:37:14 +02:00
parent 2f99a79459
commit 6402001a8d
2 changed files with 16 additions and 4 deletions

View file

@ -6,6 +6,15 @@ import logo from "../../../doc/logo.svg";
import thurtleFS from "./thurtle.fs";
import examples from "./examples";
function About() {
return (
<>
Interactive, Logo-like Turtle graphics language, using Forth (powered by{" "}
<a href="https://github.com/remko/waforth">WAForth</a>)
</>
);
}
const rootEl = (
<div class="root">
<nav class="navbar navbar-light bg-light">
@ -20,6 +29,10 @@ const rootEl = (
Thurtle
</a>
<span class="navbar-text d-none d-md-block">
<About />
</span>
<a role="button" data-bs-toggle="modal" data-bs-target="#helpModal">
<svg
xmlns="http://www.w3.org/2000/svg"
@ -38,11 +51,9 @@ const rootEl = (
</div>
</nav>
<div class="main d-flex flex-column p-2">
<div class="container mt-2 text-muted">
<div class="container mt-2 text-muted d-md-none">
<p>
Interactive, Logo-like Turtle graphics language, using Forth (powered
by
<a href="https://github.com/remko/waforth">WAForth</a>).
<About />
</p>
</div>
<div class="d-flex flex-row flex-grow-1">

View file

@ -6,6 +6,7 @@
"target": "es2015",
"jsx": "react",
"jsxFactory": "jsx.createElement",
"jsxFragmentFactory": "jsx.createFragment",
"typeRoots": ["./src/web/types"],
"types": ["node"],
"baseUrl": "./src/web",