diff --git a/app/docs-shell.tsx b/app/docs-shell.tsx index 6235e7d..2fa688c 100644 --- a/app/docs-shell.tsx +++ b/app/docs-shell.tsx @@ -1,6 +1,5 @@ "use client"; -import Image from "next/image"; import Link from "next/link"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; @@ -101,13 +100,14 @@ export function DocsShell({ const results = useMemo(() => search(searchPages, query), [query, searchPages]); const editUrl = sourceEditUrl(page); + const isDemo = page.route === "/app/demo/"; return ( <> Skip to content -
+
@@ -116,50 +116,59 @@ export function DocsShell({
- - + {isDemo ? ( + + App docs + + ) : ( + <> + + + + )} Open app - + {!isDemo ? ( + + ) : null}
-
- + ) : null} -
- {page.route === "/app/demo/" ? : null} {editUrl ? ( ) : null} - + + )} - + {!isDemo ? ( + + ) : null}
{searchOpen ? ( @@ -314,86 +343,37 @@ const EMBEDDED_DEMO_URL = `${TASKNOTES_APP_ORIGIN}/embed/?demo=24`; const FULL_DEMO_URL = `${TASKNOTES_APP_ORIGIN}/?demo=24`; function InteractiveDemo() { - const [loaded, setLoaded] = useState(false); const [instance, setInstance] = useState(0); return (
-
+
-

Disposable sample collection

-

A working TaskNotes session

-

- The controls are real; the records are temporary. Nothing here is - written to a hosted collection or a computer. -

-
-
-
-
Records
-
24 sample tasks
-
-
-
Account
-
Not required
-
-
-
Persistence
-
This session only
-
-
-
- - {loaded ? ( -
-