From 59e8974ebc254ed6683a078ecaac5adbdda9d3ae Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Mon, 11 Dec 2023 16:38:48 -0500 Subject: [PATCH] Improve credit purchase UX --- frontend/src/components/PicoBadge.tsx | 13 +- .../src/components/payments/PricingDialog.tsx | 119 ++++++++++++++++++ 2 files changed, 125 insertions(+), 7 deletions(-) create mode 100644 frontend/src/components/payments/PricingDialog.tsx diff --git a/frontend/src/components/PicoBadge.tsx b/frontend/src/components/PicoBadge.tsx index 872d575..34ee4b5 100644 --- a/frontend/src/components/PicoBadge.tsx +++ b/frontend/src/components/PicoBadge.tsx @@ -1,16 +1,15 @@ import { Settings } from "../types"; +import PricingDialog from "./payments/PricingDialog"; export function PicoBadge({ settings }: { settings: Settings }) { return ( <> - -
- buy 100 code generations for $15
-
-
+ > + + { + return ( + + buy 100 code generations for $15 + + + + Save Hours of Development Time + + + +
+
+ {/* Free Plan */} +
+

Hobby

+

Great to start

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

Pro

+

Higher limits

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

+ 1 credit = 1 code generation. Unused credits expire after 90 days. +

+ + + + {/* Logos */} +
+
+ {LOGOS.map((companyName) => ( + {companyName} + ))} +
+
+ Designers and engineers from these organizations use Screenshot to + Code to build interfaces faster. +
+
+ + + ); +}; + +export default PricingDialog;