diff --git a/src/components/Burger.tsx b/src/components/Burger.tsx new file mode 100644 index 0000000..99b9e67 --- /dev/null +++ b/src/components/Burger.tsx @@ -0,0 +1,198 @@ +import { Menu, Transition } from "@headlessui/react"; +import React, { Fragment } from "react"; +import classNames from "classnames"; +import { Disclosure } from "@headlessui/react"; + +/* -------------------------------------------------------------------------- */ +/* Components */ +/* -------------------------------------------------------------------------- */ +import ContextMenuAction from "./drop-down-menu/ContextMenuAction"; +import ContextMenu from "./drop-down-menu/ContextMenu"; +import { Button } from "./Button/Button"; +import Link from "./typography/Link"; + +/* -------------------------------------------------------------------------- */ +/* Icons */ +/* -------------------------------------------------------------------------- */ +import { ReactComponent as SVGFavoriteOutlined } from "assets/svg/favorite-outlined.svg"; +import { ReactComponent as SVGHamburger } from "assets/svg/hamburger.svg"; +import { ReactComponent as SVGFolder } from "assets/svg/folder.svg"; +import { ReactComponent as SVGFile } from "assets/svg/file.svg"; +import { ReactComponent as SVGEye } from "assets/svg/eye.svg"; +import { ReactComponent as SVGArrowUp } from "assets/svg/arrow-up.svg"; +import { ReactComponent as SVGCaretDown } from "assets/svg/caret-down.svg"; + +type Props = React.ComponentPropsWithoutRef<"div">; + +const Burger = (props: Props) => { + return ( +
+ +
+ + + + + +
+ + + +
+ + + create new + + +
+ + {({ open }) => ( + <> + + my library + + + + + + + My Publications + + + + + + + My Favorites + + + + + + + My Collections + + + + + + + Recent Viewed + + + + )} + +
+ {/* Third list - start */} + + {({ open }) => ( + <> + + About + + + + + + About Freeland + + + + + + Contact Us + + + + + + Help + + + + )} + + {/* Third list - end */} +
+
+
+
+
+ ); +}; + +export default Burger; diff --git a/src/components/parts/Header.tsx b/src/components/parts/Header.tsx index a34dc4d..e38c1d5 100755 --- a/src/components/parts/Header.tsx +++ b/src/components/parts/Header.tsx @@ -27,6 +27,7 @@ import { useTranslation } from "react-i18next"; import Link from "components/typography/Link"; import LocalizationButton from "components/LocalizationButton"; import LogoScipaper from "components/LogoScipaper"; +import Burger from "components/Burger"; const Header = () => { const [authenticated, setAuthenticated] = useState(false); @@ -137,43 +138,43 @@ const Header = () => {
{!authenticated ? [ - <> - + <> + + + , - , - , - ] + {t("navbar.auth.signUp")} + , + ] : [ - , + , - , - ]} + , + ]} {/* Burger component will be shown for the small screens */} - +
);