From 64dfddd1fc03ffb1f02307dc3a3f0a1f55fe4e5b Mon Sep 17 00:00:00 2001 From: dev Date: Thu, 21 Mar 2024 17:16:52 -0400 Subject: [PATCH] include tailwind code example --- app/pages/PageEnigma/PageEnigma.tsx | 8 ++- app/pages/PageEnigma/comp/SidePanel.tsx | 66 +++++++++++++++++++++++++ app/root.tsx | 4 +- 3 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 app/pages/PageEnigma/comp/SidePanel.tsx 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 }}> - +
- +