From dde125b8c0d4ce66ba56322b3f6fa08c17de37ad Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 19 Dec 2023 12:10:08 -0500 Subject: [PATCH] switch to subscription model --- frontend/src/components/OnboardingNote.tsx | 4 +- .../src/components/payments/PricingDialog.tsx | 44 +++++-------------- .../components/settings/AccessCodeSection.tsx | 4 +- 3 files changed, 14 insertions(+), 38 deletions(-) diff --git a/frontend/src/components/OnboardingNote.tsx b/frontend/src/components/OnboardingNote.tsx index 238bbf0..8c39513 100644 --- a/frontend/src/components/OnboardingNote.tsx +++ b/frontend/src/components/OnboardingNote.tsx @@ -5,10 +5,10 @@ export function OnboardingNote() { To use Screenshot to Code,{" "} - buy some credits (100 generations for $15) + get 100 generations for $15/month {" "} or use your own OpenAI API key with GPT4 vision access ( { className="fixed z-50 bottom-28 right-5 rounded-md shadow-lg bg-black text-white px-4 text-xs py-3 cursor-pointer" > - buy 100 code generations for $15 + get 100 generations/month for $15 @@ -28,64 +28,40 @@ const PricingDialog: React.FC = () => {
-
+
{/* Free Plan */}

Hobby

Great to start

$15 - {/* / month */} + / month
  • - 100 credits + 100 credits/month
  • Email support
  • +
  • + + Cancel anytime +
{/* Economy Plan */} -
-

Pro

-

Higher limits

-
- $40 - {/* / month */} -
- - - - - -
    -
  • - - 300 credits -
  • -
  • - - Slack support -
  • -
-

diff --git a/frontend/src/components/settings/AccessCodeSection.tsx b/frontend/src/components/settings/AccessCodeSection.tsx index 5135307..78a4af5 100644 --- a/frontend/src/components/settings/AccessCodeSection.tsx +++ b/frontend/src/components/settings/AccessCodeSection.tsx @@ -100,7 +100,7 @@ function AccessCodeSection({ settings, setSettings }: Props) { {fetchState === "EMPTY" && (

- + @@ -129,7 +129,7 @@ function AccessCodeSection({ settings, setSettings }: Props) { {usedCredits} out of {totalCredits} credits used - +