diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 07338b0..3605ff5 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -6,6 +6,13 @@ import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline"; import { Dialog } from "@headlessui/react"; import { useState } from "react"; import Link from "next/link"; +import { usePostHog } from "posthog-js/react"; +import { useAtom } from "jotai"; +import recordVideoModalOpen from "~/atoms/recordVideoModalOpen"; +import VideoRecordModal from "~/components/VideoRecordModal"; +import { ShareIcon, VideoCameraIcon } from "@heroicons/react/24/solid"; +import { CheckIcon } from "@heroicons/react/20/solid"; +import { CheckCircleIcon } from "@heroicons/react/24/outline"; const navigation = [ { name: "Features", href: "#features" }, @@ -14,7 +21,17 @@ const navigation = [ ]; const Home: NextPage = () => { + const [, setRecordOpen] = useAtom(recordVideoModalOpen); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); + const posthog = usePostHog(); + + const openRecordModal = () => { + setRecordOpen(true); + + posthog?.capture("open record video modal", { + cta: "landing page", + }); + }; return ( <> @@ -31,7 +48,7 @@ const Home: NextPage = () => { >