diff --git a/components/Flyoutmenu.txt b/components/Flyoutmenu.txt new file mode 100644 index 0000000..bbcd885 --- /dev/null +++ b/components/Flyoutmenu.txt @@ -0,0 +1,76 @@ +import { Fragment } from 'react' +import { Popover, Transition } from '@headlessui/react' +import { ChevronDownIcon, PhoneIcon, PlayCircleIcon } from '@heroicons/react/20/solid' +import { + ArrowPathIcon, + ChartPieIcon, + CursorArrowRaysIcon, + FingerPrintIcon, + SquaresPlusIcon, +} from '@heroicons/react/24/outline' + +const solutions = [ + { name: 'Analytics', description: 'Get a better understanding of your traffic', href: '#', icon: ChartPieIcon }, + { name: 'Engagement', description: 'Speak directly to your customers', href: '#', icon: CursorArrowRaysIcon }, + { name: 'Security', description: "Your customers' data will be safe and secure", href: '#', icon: FingerPrintIcon }, + { name: 'Integrations', description: 'Connect with third-party tools', href: '#', icon: SquaresPlusIcon }, + { name: 'Automations', description: 'Build strategic funnels that will convert', href: '#', icon: ArrowPathIcon }, +] +const callsToAction = [ + { name: 'Watch demo', href: '#', icon: PlayCircleIcon }, + { name: 'Contact sales', href: '#', icon: PhoneIcon }, +] + +export default function Example() { + return ( + + + Solutions + + + + + + + + {solutions.map((item) => ( + + + + + + + {item.name} + + + {item.description} + + + ))} + + + {callsToAction.map((item) => ( + + + {item.name} + + ))} + + + + + + ) +} \ No newline at end of file diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 2da7355..a9db752 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,68 +1,85 @@ +import { useState } from 'react' +import { Dialog } from '@headlessui/react' +import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline' +import { navitems } from '../public/_data/navbar' +import Link from 'next/link' -import { navitems } from "../public/_data/navbar"; -import Image from "next/image"; -import Link from "next/link"; -import { useState } from "react"; -import logo from "../public/logo.svg"; - -type Props = { - children?: React.ReactNode; -} - -export default function Navbar(props: Props) { - const [isOpen, setIsopen] = useState(false); - const ToggleSidebar = () => { - isOpen === true ? setIsopen(false) : setIsopen(true); - }; +export default function Navbar() { + const [mobileMenuOpen, setMobileMenuOpen] = useState(false) return ( <> - - - - - - {navitems.map((link) => ( - - - {link.item} - - + + + + Logo + + + + + setMobileMenuOpen(true)} + > + Open main menu + + + + + {navitems.map((item) => ( + + {item.item} + ))} - - - - + + + + Log in + + -
{item.description}