From f72ea54b523a1f67003dbdeecf6604c11f41feb0 Mon Sep 17 00:00:00 2001 From: Sean Brydon Date: Wed, 20 Sep 2023 10:40:32 +0100 Subject: [PATCH] Add features (WIP) --- apps/web/pages/signup.tsx | 46 +++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/apps/web/pages/signup.tsx b/apps/web/pages/signup.tsx index 438c21f03d..f9324ad59c 100644 --- a/apps/web/pages/signup.tsx +++ b/apps/web/pages/signup.tsx @@ -1,5 +1,5 @@ import { zodResolver } from "@hookform/resolvers/zod"; -import { Info, Loader2, ShieldCheckIcon, StarIcon } from "lucide-react"; +import { CalendarHeart, Clock, Info, Loader2, ShieldCheckIcon, StarIcon } from "lucide-react"; import type { GetServerSidePropsContext } from "next"; import { signIn } from "next-auth/react"; import Link from "next/link"; @@ -42,6 +42,29 @@ type FormValues = z.infer; type SignupProps = inferSSRProps; +const FEATURES = [ + { + title: "connect_all_calendars", + description: "connect_all_calendars_description", + icon: CalendarHeart, + }, + { + title: "scheduling_for_your_team", + description: "schedule_for_your_team_description", + icon: Clock, + }, + { + title: "scheduling_for_your_team", + description: "schedule_for_your_team_description", + icon: Clock, + }, + { + title: "scheduling_for_your_team", + description: "schedule_for_your_team_description", + icon: Clock, + }, +]; + function UsernameField({ setPremium, premium, @@ -182,7 +205,7 @@ export default function Signup({ prepopulateFormValues, token, orgSlug }: Signup }>
-
+
{/* Header */} {errors.apiError && ( @@ -327,12 +350,21 @@ export default function Signup({ prepopulateFormValues, token, orgSlug }: Signup
-
+
# +
+ {FEATURES.map((feature) => ( + <> +
+
+ + {t(feature.title)} +
+

{t(feature.description)}

+
+ + ))} +