From 8dcd50b179534261f6bbcd6d8993d2384491d117 Mon Sep 17 00:00:00 2001 From: Visal In Date: Sat, 28 Sep 2024 13:14:54 -0700 Subject: [PATCH] add onboard for sqlite client --- .../(theme)/playground/client/page-client.tsx | 72 +++++++++++++++++++ src/components/gui/sidebar-tab.tsx | 36 ---------- src/components/gui/sortable-tab.tsx | 3 - 3 files changed, 72 insertions(+), 39 deletions(-) diff --git a/src/app/(theme)/playground/client/page-client.tsx b/src/app/(theme)/playground/client/page-client.tsx index 34bbc5a..d93e3da 100644 --- a/src/app/(theme)/playground/client/page-client.tsx +++ b/src/app/(theme)/playground/client/page-client.tsx @@ -16,6 +16,77 @@ import { DropdownMenuItem, DropdownMenuSeparator, } from "@/components/ui/dropdown-menu"; +import { Button } from "@/components/ui/button"; + +function OverlayAround({ + x, + y, + w, + h, +}: { + x: number; + y: number; + w: number; + h: number; +}) { + return ( + <> +
+
+
+
+ + ); +} + +function Onboarding() { + const [onboard, setOnboard] = useState( + () => !localStorage.getItem("sqlite-onboard-v1") + ); + + if (!onboard) return null; + + return ( + <> + +
+

There is more!

+
    +
  • + You can open and save your SQLite + database here. +
  • +
  • Switch dark and light mode
  • +
  • And many more in the future
  • +
+ +
+ + ); +} export default function PlaygroundEditorBody({ preloadDatabase, @@ -255,6 +326,7 @@ export default function PlaygroundEditorBody({ <>