From 369ee8570f6cc49616984368da209dcd73ed5fca Mon Sep 17 00:00:00 2001 From: dev Date: Thu, 21 Mar 2024 17:47:50 -0400 Subject: [PATCH] testing side pnael transition --- app/pages/PageCube/PageCube.tsx | 21 +++++++++++++++------ app/pages/PageEnigma/PageEnigma.tsx | 1 - app/pages/PageEnigma/comp/SidePanel.tsx | 20 ++++++++++++++++++-- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/app/pages/PageCube/PageCube.tsx b/app/pages/PageCube/PageCube.tsx index 12c5938ef5..fc0a60153d 100644 --- a/app/pages/PageCube/PageCube.tsx +++ b/app/pages/PageCube/PageCube.tsx @@ -15,6 +15,8 @@ import { Button } from '~/components/Button'; import { ButtonLink } from '~/components/ButtonLink'; import { TopBarInnerContext } from "~/contexts/TopBarInner"; +import { SidePanel } from '../PageEnigma/comp/SidePanel'; + import { SceneWithCube } from './SceneWithCube'; export const PageCube = () => { @@ -74,12 +76,19 @@ export const PageCube = () => { },[setTopBarInner]); return ( - <> -
- -

{rotationX ? rotationX : ""}

-

{rotationY ? rotationY : ""}

- +
+
+
+
+
+ +

{rotationX ? rotationX : ""}

+

{rotationY ? rotationY : ""}

+
+ +

Side Panel Text

+
+
); }; \ No newline at end of file diff --git a/app/pages/PageEnigma/PageEnigma.tsx b/app/pages/PageEnigma/PageEnigma.tsx index dcf7cc2f00..fda7672046 100644 --- a/app/pages/PageEnigma/PageEnigma.tsx +++ b/app/pages/PageEnigma/PageEnigma.tsx @@ -92,7 +92,6 @@ export const PageEnigma = () => { -

Timeline Panel

diff --git a/app/pages/PageEnigma/comp/SidePanel.tsx b/app/pages/PageEnigma/comp/SidePanel.tsx index 48fa6c14b6..bf749cd6cd 100644 --- a/app/pages/PageEnigma/comp/SidePanel.tsx +++ b/app/pages/PageEnigma/comp/SidePanel.tsx @@ -1,15 +1,31 @@ import { Fragment, useState } from 'react' import { Dialog, Transition } from '@headlessui/react' -import { faXmark } from '@fortawesome/free-solid-svg-icons'; +import { + faXmark, + faGears, +} from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { Button } from '~/components/Button'; interface SidePanelPropsI{ children: React.ReactNode } export const SidePanel =(props:SidePanelPropsI)=>{ const [open, setOpen] = useState(true) - + const handleOpen = ()=>{ + setOpen(true); + } + if(!open){ + return( + + ); + } return (