mirror of
https://github.com/remko/waforth
synced 2024-11-16 07:47:30 +01:00
thurtle: Move about text to header
This commit is contained in:
parent
2f99a79459
commit
6402001a8d
2 changed files with 16 additions and 4 deletions
|
@ -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">
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"target": "es2015",
|
||||
"jsx": "react",
|
||||
"jsxFactory": "jsx.createElement",
|
||||
"jsxFragmentFactory": "jsx.createFragment",
|
||||
"typeRoots": ["./src/web/types"],
|
||||
"types": ["node"],
|
||||
"baseUrl": "./src/web",
|
||||
|
|
Loading…
Reference in a new issue