diff --git a/src/components/CTA.tsx b/src/components/CTA.tsx new file mode 100644 index 0000000..c652381 --- /dev/null +++ b/src/components/CTA.tsx @@ -0,0 +1,63 @@ +import { useAtom } from "jotai/index"; +import recordVideoModalOpen from "~/atoms/recordVideoModalOpen"; +import { usePostHog } from "posthog-js/react"; + +export default function CTA() { + const [, setRecordOpen] = useAtom(recordVideoModalOpen); + const posthog = usePostHog(); + + const openRecordModal = () => { + setRecordOpen(true); + + posthog?.capture("open record video modal", { + cta: "cta section", + }); + }; + + return ( +
+
+
+

+ Ready to improve how your team communicates? +

+
+ +
+ +
+
+
+ ); +} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 471961c..4b18534 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -10,6 +10,7 @@ import { CheckIcon } from "@heroicons/react/20/solid"; import { CheckCircleIcon } from "@heroicons/react/24/outline"; import Footer from "~/components/Footer"; import Header from "~/components/Header"; +import CTA from "~/components/CTA"; const navigation = [ { name: "Features", href: "#features" }, @@ -291,50 +292,7 @@ const Home: NextPage = () => { -
-
-
-

- Ready to improve how your team communicates? -

-
- -
- -
-
-
+