diff --git a/compass/components/ResourceDrawer/page.tsx b/compass/components/ResourceDrawer/page.tsx new file mode 100644 index 0000000..c80bf71 --- /dev/null +++ b/compass/components/ResourceDrawer/page.tsx @@ -0,0 +1,146 @@ +import React, { useState, FunctionComponent } from "react"; +import { + ChevronDoubleLeftIcon, + StarIcon as SolidStarIcon, + UserIcon, +} from "@heroicons/react/24/solid"; +import { + ArrowsPointingOutIcon, + ArrowsPointingInIcon, + StarIcon as OutlineStarIcon, + ListBulletIcon, +} from "@heroicons/react/24/outline"; +import TagsInput from "../TagsInput/Index"; + +type DrawerProps = { + rowContent: any; // Define specific types if known for better TypeScript support +}; + +const ResourceDrawer: FunctionComponent = ({ rowContent }) => { + const [isOpen, setIsOpen] = useState(false); + const [isFull, setIsFull] = useState(false); + const [isFavorite, setIsFavorite] = useState(false); + + const toggleDrawer = () => setIsOpen(!isOpen); + const toggleDrawerFullScreen = () => setIsFull(!isFull); + const toggleFavorite = () => setIsFavorite(!isFavorite); + + const drawerClassName = `fixed top-0 right-0 ${ + isFull ? "w-full" : "w-1/2" + } h-full bg-white transform ease-in-out duration-300 z-20 ${ + isOpen ? "translate-x-0 shadow-xl" : "translate-x-full" + }`; + + return ( +
+ +
+
+

+ {rowContent.name} +

+
+ + + +
+
+
+ + + +
+
+ + + + + +
+
+ + + + + +
+
+ + + + + +
+
+ + + + + +
+ + Name + {rowContent.name} +
+ + Link + + {rowContent.link} + +
+ + Program + +
+ + Summary + {rowContent.summary} +
+
+
+
+
+ ); +}; + +export default ResourceDrawer; diff --git a/compass/components/ServiceDrawer/page.tsx b/compass/components/ServiceDrawer/page.tsx new file mode 100644 index 0000000..b132588 --- /dev/null +++ b/compass/components/ServiceDrawer/page.tsx @@ -0,0 +1,159 @@ +import React, { useState, FunctionComponent } from "react"; +import { + ChevronDoubleLeftIcon, + StarIcon as SolidStarIcon, + UserIcon, +} from "@heroicons/react/24/solid"; +import { + ArrowsPointingOutIcon, + ArrowsPointingInIcon, + StarIcon as OutlineStarIcon, + ListBulletIcon, +} from "@heroicons/react/24/outline"; +import TagsInput from "../TagsInput/Index"; + +type DrawerProps = { + rowContent: any; // Define specific types if known for better TypeScript support +}; + +const ServiceDrawer: FunctionComponent = ({ rowContent }) => { + const [isOpen, setIsOpen] = useState(false); + const [isFull, setIsFull] = useState(false); + const [isFavorite, setIsFavorite] = useState(false); + + const toggleDrawer = () => setIsOpen(!isOpen); + const toggleDrawerFullScreen = () => setIsFull(!isFull); + const toggleFavorite = () => setIsFavorite(!isFavorite); + + const drawerClassName = `fixed top-0 right-0 ${ + isFull ? "w-full" : "w-1/2" + } h-full bg-white transform ease-in-out duration-300 z-20 ${ + isOpen ? "translate-x-0 shadow-xl" : "translate-x-full" + }`; + + return ( +
+ +
+
+

+ {rowContent.name} +

+
+ + + +
+
+
+ + + +
+
+ + + + + +
+
+ + + + + +
+
+ + + + + +
+
+ + + + + +
+
+ + + + + +
+ + Name + {rowContent.name} +
+ + Status + + {rowContent.status} + +
+ + Program + +
+ + Requirements + +
+ + Summary + {rowContent.summary} +
+
+
+
+
+ ); +}; + +export default ServiceDrawer;