diff --git a/src/frontend/src/constants.tsx b/src/frontend/src/constants.tsx index e32336578..64a64b7d6 100644 --- a/src/frontend/src/constants.tsx +++ b/src/frontend/src/constants.tsx @@ -148,3 +148,25 @@ export const EXPORT_CODE_DIALOG = */ export const INPUT_STYLE = " focus:ring-1 focus:ring-offset-1 focus:ring-ring focus:outline-none "; + + +/** + * The base text for subtitle of code dialog + * @constant + */ +export const COLUMN_DIV_STYLE = + " w-full h-full flex overflow-auto flex-col bg-muted px-16 "; + +/** + * The base text for subtitle of code dialog + * @constant + */ +export const NAV_DISPLAY_STYLE = + " w-full flex justify-between py-12 pb-2 px-6 "; + +/** + * The base text for subtitle of code dialog + * @constant + */ +export const BUTTON_DIV_STYLE = + " flex gap-2 "; diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index 70d1268f0..a5827b932 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -82,7 +82,7 @@ const NodeToolbarComponent = (props) => { )} - {/* + - */} + diff --git a/src/frontend/src/pages/MainPage/index.tsx b/src/frontend/src/pages/MainPage/index.tsx index 0657000c1..e6bfaa58d 100644 --- a/src/frontend/src/pages/MainPage/index.tsx +++ b/src/frontend/src/pages/MainPage/index.tsx @@ -1,24 +1,26 @@ import { useContext, useEffect } from "react"; -import { Download, Upload, Plus, Home, ExternalLink } from "lucide-react"; -import { TabsContext } from "../../contexts/tabsContext"; -import { Button } from "../../components/ui/button"; -import { Link, useNavigate } from "react-router-dom"; -import { CardComponent } from "../../components/cardComponent"; -export default function HomePage() { - const { flows, setTabId, downloadFlows, uploadFlows, addFlow, removeFlow } = +import { COLUMN_DIV_STYLE, NAV_DISPLAY_STYLE } from "../../constants"; + + import { Download, Upload, Plus, Home, ExternalLink } from "lucide-react"; + import { TabsContext } from "../../contexts/tabsContext"; + import { Button } from "../../components/ui/button"; + import { Link, useNavigate } from "react-router-dom"; + import { CardComponent } from "../../components/cardComponent"; + export default function HomePage() { + const { flows, setTabId, downloadFlows, uploadFlows, addFlow, removeFlow } = useContext(TabsContext); - useEffect(() => { - setTabId(""); - }, []); - const navigate = useNavigate(); + useEffect(() => { + setTabId(""); + }, []); + const navigate = useNavigate(); return ( -
-
- - +
+
+ + My Projects -
+