diff --git a/app/pages/PageEnigma/PageEnigma.tsx b/app/pages/PageEnigma/PageEnigma.tsx index 1c24ce313f..dcf7cc2f00 100644 --- a/app/pages/PageEnigma/PageEnigma.tsx +++ b/app/pages/PageEnigma/PageEnigma.tsx @@ -16,6 +16,7 @@ import { import { Button } from '~/components/Button'; import { ButtonLink } from '~/components/ButtonLink'; import { TopBarInnerContext } from "~/contexts/TopBarInner"; +import { SidePanel } from './comp/SidePanel'; import Editor from './js/editor'; @@ -86,14 +87,17 @@ export const PageEnigma = () => { return(
-
+ + + +
+

Timeline Panel

-
Timeline Panel
); } \ No newline at end of file diff --git a/app/pages/PageEnigma/comp/SidePanel.tsx b/app/pages/PageEnigma/comp/SidePanel.tsx new file mode 100644 index 0000000000..48fa6c14b6 --- /dev/null +++ b/app/pages/PageEnigma/comp/SidePanel.tsx @@ -0,0 +1,66 @@ +import { Fragment, useState } from 'react' +import { Dialog, Transition } from '@headlessui/react' +import { faXmark } from '@fortawesome/free-solid-svg-icons'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; + +interface SidePanelPropsI{ + children: React.ReactNode +} + +export const SidePanel =(props:SidePanelPropsI)=>{ + const [open, setOpen] = useState(true) + + return ( + + +
+ +
+
+
+ + +
+
+
+ + Panel title + +
+ +
+
+
+
+ {props.children} +
+
+
+
+
+
+
+
+
+ ) +} \ No newline at end of file diff --git a/app/root.tsx b/app/root.tsx index ab4531f17b..f13544a5e4 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -39,10 +39,10 @@ export default function App() { TopBarInner: topBarInnerComponent, setTopBarInner: setTopBarInnerComponent }}> - +
- +