From 46605cbfdce0781f6acadd0f7ea54a8014b6dea2 Mon Sep 17 00:00:00 2001 From: vincanger <70215737+vincanger@users.noreply.github.com> Date: Tue, 12 Dec 2023 10:53:08 -0500 Subject: [PATCH] move pricing & fix testimonials --- app/.env.server.example | 9 +- app/main.wasp | 6 + app/src/client/app/GptPage.tsx | 190 ++++++++-------- app/src/client/app/PricingPage.tsx | 152 +++++++++++++ app/src/client/components/AppNavBar.tsx | 1 + app/src/client/landing-page/LandingPage.tsx | 212 +++--------------- .../client/landing-page/contentSections.ts | 90 +++++--- app/src/server/actions.ts | 4 +- 8 files changed, 356 insertions(+), 308 deletions(-) create mode 100644 app/src/client/app/PricingPage.tsx diff --git a/app/.env.server.example b/app/.env.server.example index 996336a..20d7fbd 100644 --- a/app/.env.server.example +++ b/app/.env.server.example @@ -14,12 +14,9 @@ STRIPE_WEBHOOK_SECRET=whsec_... # set this as a comma-separated list of emails you want to give admin privileges to upon registeration ADMIN_EMAILS=me@example.com,you@example.com,them@example.com -# this needs to be a string at least 32 characters long -JWT_SECRET= - # see our guide for setting up google auth: https://wasp-lang.dev/docs/auth/social-auth/google -GOOGLE_CLIENT_ID= -GOOGLE_CLIENT_SECRET= +GOOGLE_CLIENT_ID=722... +GOOGLE_CLIENT_SECRET=GOC... # get your sendgrid api key at https://app.sendgrid.com/settings/api_keys SENDGRID_API_KEY= @@ -27,7 +24,7 @@ SENDGRID_API_KEY= SEND_EMAILS_IN_DEVELOPMENT=false # (OPTIONAL) get your openai api key at https://platform.openai.com/account -OPENAI_API_KEY= +OPENAI_API_KEY=sk-k... # (OPTIONAL) get your plausible api key at https://plausible.io/login or https://your-plausible-instance.com/login PLAUSIBLE_API_KEY=gUTgtB... diff --git a/app/main.wasp b/app/main.wasp index 7b641ce..2b00661 100644 --- a/app/main.wasp +++ b/app/main.wasp @@ -49,6 +49,7 @@ app SaaSTemplate { additionalFields: import setAdminUsers from "@server/auth/setAdminUsers.js", }, onAuthFailedRedirectTo: "/", + onAuthSucceededRedirectTo: "/gpt", }, db: { system: PostgreSQL, @@ -215,6 +216,11 @@ page GptPage { component: import GptPage from "@client/app/GptPage" } +route PricingPageRoute { path: "/pricing", to: PricingPage } +page PricingPage { + component: import PricingPage from "@client/app/PricingPage" +} + route AccountRoute { path: "/account", to: AccountPage } page AccountPage { authRequired: true, diff --git a/app/src/client/app/GptPage.tsx b/app/src/client/app/GptPage.tsx index 2d4d7c0..cf5037f 100644 --- a/app/src/client/app/GptPage.tsx +++ b/app/src/client/app/GptPage.tsx @@ -34,104 +34,110 @@ export default function GptPage() { } = useForm(); return ( -
-
-
-
-
-
- -
-