-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
102 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { Fragment } from 'react' | ||
import { Popover, Transition } from '@headlessui/react' | ||
import { ChevronDownIcon } from '@heroicons/react/20/solid' | ||
import { | ||
ArrowPathIcon, | ||
ChartPieIcon, | ||
CursorArrowRaysIcon, | ||
DocumentChartBarIcon, | ||
FingerPrintIcon, | ||
SquaresPlusIcon, | ||
} from '@heroicons/react/24/outline' | ||
|
||
const solutions = [ | ||
{ name: 'Analytics', description: 'Get a better understanding of your traffic', href: '#', icon: ChartPieIcon }, | ||
{ | ||
name: 'Integrations', | ||
description: 'Connect with third-party tools and find out expectations', | ||
href: '#', | ||
icon: SquaresPlusIcon, | ||
}, | ||
{ | ||
name: 'Engagement', | ||
description: 'Speak directly to your customers with our engagement tool', | ||
href: '#', | ||
icon: CursorArrowRaysIcon, | ||
}, | ||
{ name: 'Automations', description: 'Build strategic funnels that will convert', href: '#', icon: ArrowPathIcon }, | ||
{ name: 'Security', description: "Your customers' data will be safe and secure", href: '#', icon: FingerPrintIcon }, | ||
{ | ||
name: 'Reports', | ||
description: 'Edit, manage and create newly informed decisions', | ||
href: '#', | ||
icon: DocumentChartBarIcon, | ||
}, | ||
] | ||
|
||
export default function ChartOptions({children, name}) { | ||
return ( | ||
<Popover className="relative"> | ||
<Popover.Button className="inline-flex items-center gap-x-1 text-sm font-semibold leading-6 text-gray-900"> | ||
<span>{name}</span> | ||
<ChevronDownIcon className="h-5 w-5" aria-hidden="true" /> | ||
</Popover.Button> | ||
|
||
<Transition | ||
as={Fragment} | ||
enter="transition ease-out duration-200" | ||
enterFrom="opacity-0 translate-y-1" | ||
enterTo="opacity-100 translate-y-0" | ||
leave="transition ease-in duration-150" | ||
leaveFrom="opacity-100 translate-y-0" | ||
leaveTo="opacity-0 translate-y-1" | ||
> | ||
<Popover.Panel className="absolute left-1/2 z-10 mt-5 flex w-screen max-w-max -translate-x-1/2 px-4"> | ||
<div className="w-screen max-w-fit flex-auto overflow-hidden rounded-3xl bg-white text-sm leading-6 shadow-lg ring-1 ring-gray-900/5 lg:max-w-3xl"> | ||
<div className="grid grid-cols-1 gap-x-1 gap-y-1 p-4 lg:grid-cols-2"> | ||
{children} | ||
</div> | ||
<div className="bg-gray-50 px-8 py-6"> | ||
<div className="flex items-center gap-x-3"> | ||
<h3 className="text-sm font-semibold leading-6 text-gray-900">Enterprise</h3> | ||
<p className="rounded-full bg-indigo-600/10 px-2.5 py-1.5 text-xs font-semibold text-indigo-600">New</p> | ||
</div> | ||
<p className="mt-2 text-sm leading-6 text-gray-600"> | ||
Empower your entire team with even more advanced tools. | ||
</p> | ||
</div> | ||
</div> | ||
</Popover.Panel> | ||
</Transition> | ||
</Popover> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters