diff --git a/apps/website/src/components/Navbar.tsx b/apps/website/src/components/Navbar.tsx index 15b0dd011..9037e4dc1 100644 --- a/apps/website/src/components/Navbar.tsx +++ b/apps/website/src/components/Navbar.tsx @@ -1,67 +1,94 @@ "use client" -import { Heading, HStack, Link } from "@chakra-ui/react" -import NextLink from "next/link" -import { usePathname } from "next/navigation" +import { + Box, + Divider, + Drawer, + DrawerBody, + DrawerCloseButton, + DrawerContent, + DrawerFooter, + DrawerOverlay, + HStack, + Heading, + IconButton, + Link, + Text, + VStack, + useDisclosure +} from "@chakra-ui/react" import Image from "next/image" -import IconArrowUpRight from "../icons/IconArrowUpRight" +import NextLink from "next/link" +import IconDiscord from "../icons/IconDiscord" +import IconMenu from "../icons/IconMenu" +import IconThumbsUp from "../icons/IconThumbsUp" +import NavbarLinks from "./NavbarLinks" export default function Navbar() { - const pathname = usePathname() + const { isOpen, onOpen, onClose } = useDisclosure() return ( - Semaphore logo + + Semaphore logo + + + Semaphore icon + - - - - Projects - - - - - Learn - - - - - Build - - - - - - Documentation - - - - - - - - Github - - - - + + + + } + /> + + + + + + + + + + + + + + + + + + + + + Discord + + + + + + + + + Give feedback about the website + + + + + + Copyright © 2023 Ethereum Foundation + + + + + ) } diff --git a/apps/website/src/components/NavbarLinks.tsx b/apps/website/src/components/NavbarLinks.tsx new file mode 100644 index 000000000..bf9473433 --- /dev/null +++ b/apps/website/src/components/NavbarLinks.tsx @@ -0,0 +1,61 @@ +"use client" + +import { HStack, Heading, Link } from "@chakra-ui/react" +import NextLink from "next/link" +import { usePathname } from "next/navigation" +import IconArrowUpRight from "../icons/IconArrowUpRight" + +export default function NavbarLinks() { + const pathname = usePathname() + + return ( + <> + + + Projects + + + + + Learn + + + + + Build + + + + + + Documentation + + + + + + + + Github + + + + + + ) +} diff --git a/apps/website/src/icons/IconMenu.tsx b/apps/website/src/icons/IconMenu.tsx new file mode 100644 index 000000000..f286bf868 --- /dev/null +++ b/apps/website/src/icons/IconMenu.tsx @@ -0,0 +1,10 @@ +import { Icon, IconProps } from "@chakra-ui/react" +import React from "react" + +export default function IconMenu(props: IconProps): JSX.Element { + return ( + + + + ) +} diff --git a/apps/website/src/icons/IconThumbsUp.tsx b/apps/website/src/icons/IconThumbsUp.tsx new file mode 100644 index 000000000..862d47dbb --- /dev/null +++ b/apps/website/src/icons/IconThumbsUp.tsx @@ -0,0 +1,13 @@ +import { Icon, IconProps } from "@chakra-ui/react" +import React from "react" + +export default function IconThumbsUp(props: IconProps): JSX.Element { + return ( + + + + ) +}