adds help pages, changes homepage fully over to ttcmd

This commit is contained in:
2024-03-10 04:56:44 -06:00
parent 7f63d38424
commit ed4497b991
12 changed files with 405 additions and 16 deletions

View File

@@ -8,14 +8,14 @@ import React, { FC, Fragment, ReactNode, use, useMemo } from "react";
import { sanitize } from "isomorphic-dompurify";
export const TCMD: FC<{ body: Promise<string> }> = ({ body }) => {
export const TTCMD: FC<{ body: Promise<string> }> = ({ body }) => {
const text = use(body);
const elements = useMemo(() => createElements(text), [text]);
return (
// <div className="grid grid-cols-2">
// <pre>{JSON.stringify(elements,null,2)}</pre>
// </div>
<div>
<div className="flex flex-col gap-6 my-6">
{elements.map((e, i) => <Fragment key={e.uuid}>{renderBlock(e)}
</Fragment>)}
</div>