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 thurtleFS from "./thurtle.fs";
|
||||||
import examples from "./examples";
|
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 = (
|
const rootEl = (
|
||||||
<div class="root">
|
<div class="root">
|
||||||
<nav class="navbar navbar-light bg-light">
|
<nav class="navbar navbar-light bg-light">
|
||||||
|
@ -20,6 +29,10 @@ const rootEl = (
|
||||||
Thurtle
|
Thurtle
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<span class="navbar-text d-none d-md-block">
|
||||||
|
<About />
|
||||||
|
</span>
|
||||||
|
|
||||||
<a role="button" data-bs-toggle="modal" data-bs-target="#helpModal">
|
<a role="button" data-bs-toggle="modal" data-bs-target="#helpModal">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
@ -38,11 +51,9 @@ const rootEl = (
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="main d-flex flex-column p-2">
|
<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>
|
<p>
|
||||||
Interactive, Logo-like Turtle graphics language, using Forth (powered
|
<About />
|
||||||
by
|
|
||||||
<a href="https://github.com/remko/waforth">WAForth</a>).
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex flex-row flex-grow-1">
|
<div class="d-flex flex-row flex-grow-1">
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"target": "es2015",
|
"target": "es2015",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"jsxFactory": "jsx.createElement",
|
"jsxFactory": "jsx.createElement",
|
||||||
|
"jsxFragmentFactory": "jsx.createFragment",
|
||||||
"typeRoots": ["./src/web/types"],
|
"typeRoots": ["./src/web/types"],
|
||||||
"types": ["node"],
|
"types": ["node"],
|
||||||
"baseUrl": "./src/web",
|
"baseUrl": "./src/web",
|
||||||
|
|
Loading…
Reference in a new issue