diff --git a/frontend/apps/editor2d/public/videos/demo_video.mp4 b/frontend/apps/editor2d/public/videos/demo_video.mp4 new file mode 100644 index 0000000000..b11896d610 Binary files /dev/null and b/frontend/apps/editor2d/public/videos/demo_video.mp4 differ diff --git a/frontend/apps/editor2d/src/app/pages/main/index.tsx b/frontend/apps/editor2d/src/app/pages/main/index.tsx index b7c5a398b5..85eefa14e0 100644 --- a/frontend/apps/editor2d/src/app/pages/main/index.tsx +++ b/frontend/apps/editor2d/src/app/pages/main/index.tsx @@ -14,10 +14,17 @@ import { appMode } from "~/signals"; import { useSignals } from "@preact/signals-react/runtime"; import { GenerationRootComponent } from "~/GenerationRootComponent/GenerationRootComponent"; import { EditModeRootComponent } from "~/EditModeRootComponent/EditModeRootComponent"; -import { useRef } from "react"; +import { useRef, useState } from "react"; import { EngineType } from "~/KonvaApp"; import { GenerationEngine } from "~/KonvaApp/GenerationEngine"; import { GalleryRootComponent } from "~/GalleryRootComponent"; +import { BaseDialog } from "~/components/ui/BaseDialog"; +import { Button } from "~/components/ui/Button"; +import { + faArrowRight, + faMagicWandSparkles, +} from "@fortawesome/pro-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; export const Main = withProtectionRoute(() => { // This is a hook that will log the number of times the component has rerendered @@ -32,6 +39,7 @@ export const Main = withProtectionRoute(() => { const realtimeEngineRef = useRef(null); const generationEngineRef = useRef(null); + const [firstTimeDialogOpen, setFirstTimeDialogOpen] = useState(true); const appModeValue = appMode.value; let childView; @@ -60,25 +68,72 @@ export const Main = withProtectionRoute(() => { } return ( -
-
- {childView} -
-
-
-
- -
-
- -
-
- + <> +
+
+ {childView} +
+
+
+
+ +
+
+ +
+
+ +
+ {appModeValue === "gallery" && ( + + )}
- {appModeValue === "gallery" && - ()} -
+ { + setFirstTimeDialogOpen(false); + }} + className="max-w-5xl" + > +
+
+

+ + Welcome to ArtCraft +

+
+

+ Your creative canvas for digital art and design +

+

+ Draw freely, create collages, and design with our intuitive + tool. Bring your ideas to life in seconds! +

+
+
+ +
+ +
+ +
+
+ ); });