diff --git a/frontend/app/components/NavBar/DarkModeToggle.tsx b/frontend/app/components/NavBar/DarkModeToggle.tsx index d46ab76eac29..d81d796e879a 100644 --- a/frontend/app/components/NavBar/DarkModeToggle.tsx +++ b/frontend/app/components/NavBar/DarkModeToggle.tsx @@ -29,7 +29,7 @@ const DarkModeToggle: FC = ({}) => { return ( + + + {open ? ( + + + + +
+ + +

+ Get a Second Brain with{" "} + + Quivr + +

+ + + + +
+
+
+
+
+ ) : null} +
+ + ); +}; + +export default MobileMenu; diff --git a/frontend/app/components/NavBar/NavItems.tsx b/frontend/app/components/NavBar/NavItems.tsx new file mode 100644 index 000000000000..ae3467d580c7 --- /dev/null +++ b/frontend/app/components/NavBar/NavItems.tsx @@ -0,0 +1,56 @@ +import { cn } from "@/lib/utils"; +import Link from "next/link"; +import { FC, HTMLAttributes, ReactNode } from "react"; +import DarkModeToggle from "./DarkModeToggle"; +import Button from "../ui/Button"; + +interface NavItemsProps extends HTMLAttributes {} + +const NavItems: FC = ({ className, ...props }) => { + return ( + //
+
    + {process.env.NEXT_PUBLIC_ENV === "local" ? ( + <> + Upload + Chat + Explore + + ) : ( + <> + Github + Discord + + )} +
    + + + + +
    +
+ //
+ ); +}; + +interface NavLinkProps { + children: ReactNode; + to: string; +} + +const NavLink: FC = ({ children, to }) => { + return ( +
  • + {children} +
    +
  • + ); +}; + +export default NavItems; diff --git a/frontend/app/components/NavBar/index.tsx b/frontend/app/components/NavBar/index.tsx index b5308ff751ee..781e85d24cf8 100644 --- a/frontend/app/components/NavBar/index.tsx +++ b/frontend/app/components/NavBar/index.tsx @@ -6,6 +6,8 @@ import Link from "next/link"; import Button from "../ui/Button"; import DarkModeToggle from "./DarkModeToggle"; import { motion } from "framer-motion"; +import MobileMenu from "./MobileMenu"; +import NavItems from "./NavItems"; interface NavBarProps {} @@ -34,9 +36,9 @@ const NavBar: FC = ({}) => { y: hidden ? "-100%" : "0%", transition: { ease: "circOut" }, }} - className="fixed top-0 w-full border-b border-b-black/10 dark:border-b-white/25 bg-white dark:bg-black z-50" + className="fixed top-0 w-full border-b border-b-black/10 dark:border-b-white/25 bg-white dark:bg-black z-20" > -