From 8c5cffad7a912a5f0ede4e302c492b7a0b3cf55f Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Thu, 27 Apr 2023 17:58:02 +0200 Subject: [PATCH] add pricing page and extract CTA into its own component --- src/components/CTA.tsx | 63 +++++++++++++++ src/pages/index.tsx | 46 +---------- src/pages/pricing.tsx | 179 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 244 insertions(+), 44 deletions(-) create mode 100644 src/components/CTA.tsx create mode 100644 src/pages/pricing.tsx 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? -

-
- -
- -
-
-
+