Revert "switch to subscription model"

This reverts commit dde125b8c0.
This commit is contained in:
Abi Raja 2023-12-19 23:56:19 -05:00
parent dde125b8c0
commit 204d449dd4
3 changed files with 38 additions and 14 deletions

View File

@ -5,10 +5,10 @@ export function OnboardingNote() {
To use Screenshot to Code,{" "} To use Screenshot to Code,{" "}
<a <a
className="inline underline hover:opacity-70" className="inline underline hover:opacity-70"
href="https://buy.stripe.com/cN28Az7ICclG5DGaEG" href="https://buy.stripe.com/8wM6sre70gBW1nqaEE"
target="_blank" target="_blank"
> >
get 100 generations for $15/month buy some credits (100 generations for $15)
</a>{" "} </a>{" "}
or use your own OpenAI API key with GPT4 vision access ( or use your own OpenAI API key with GPT4 vision access (
<a <a

View File

@ -18,7 +18,7 @@ const PricingDialog: React.FC = () => {
className="fixed z-50 bottom-28 right-5 rounded-md shadow-lg bg-black className="fixed z-50 bottom-28 right-5 rounded-md shadow-lg bg-black
text-white px-4 text-xs py-3 cursor-pointer" text-white px-4 text-xs py-3 cursor-pointer"
> >
get 100 generations/month for $15 buy 100 code generations for $15
</DialogTrigger> </DialogTrigger>
<DialogContent className="max-w-2xl"> <DialogContent className="max-w-2xl">
<DialogHeader> <DialogHeader>
@ -28,40 +28,64 @@ const PricingDialog: React.FC = () => {
</DialogHeader> </DialogHeader>
<div className="flex justify-center items-center"> <div className="flex justify-center items-center">
<div className="grid grid-cols-1 gap-8 p-2"> <div className="grid grid-cols-2 gap-8 p-2">
{/* Free Plan */} {/* Free Plan */}
<div className="bg-white rounded-lg shadow p-6"> <div className="bg-white rounded-lg shadow p-6">
<h2 className="font-semibold">Hobby</h2> <h2 className="font-semibold">Hobby</h2>
<p className="text-gray-500">Great to start</p> <p className="text-gray-500">Great to start</p>
<div className="my-4"> <div className="my-4">
<span className="text-4xl font-bold">$15</span> <span className="text-4xl font-bold">$15</span>
<span className="text-gray-500"> / month</span> {/* <span className="text-gray-500"> / month</span> */}
</div> </div>
<a <a
href="https://buy.stripe.com/cN28Az7ICclG5DGaEG" href="https://buy.stripe.com/8wM6sre70gBW1nqaEE"
target="_blank" target="_blank"
> >
<button className="bg-black text-white rounded py-2 px-4 w-full text-sm"> <button className="bg-black text-white rounded py-2 px-4 w-full text-sm">
Subscribe Purchase Credits
</button> </button>
</a> </a>
<ul className="mt-4 space-y-2"> <ul className="mt-4 space-y-2">
<li className="flex items-center"> <li className="flex items-center">
<FaCheckCircle className="text-black mr-2" /> <FaCheckCircle className="text-black mr-2" />
100 credits/month 100 credits
</li> </li>
<li className="flex items-center"> <li className="flex items-center">
<FaCheckCircle className="text-black mr-2" /> <FaCheckCircle className="text-black mr-2" />
Email support Email support
</li> </li>
<li className="flex items-center">
<FaCheckCircle className="text-black mr-2" />
Cancel anytime
</li>
</ul> </ul>
</div> </div>
{/* Economy Plan */} {/* Economy Plan */}
<div className="bg-white rounded-lg shadow p-6">
<h2 className="font-semibold">Pro</h2>
<p className="text-gray-500">Higher limits</p>
<div className="my-4">
<span className="text-4xl font-bold">$40</span>
{/* <span className="text-gray-500"> / month</span> */}
</div>
<a
href="https://buy.stripe.com/dR69ED3sm85qgikcMN"
target="_blank"
>
<button className="bg-black text-white rounded py-2 px-4 w-full text-sm">
Purchase Credits
</button>
</a>
<ul className="mt-4 space-y-2">
<li className="flex items-center">
<FaCheckCircle className="text-black mr-2" />
300 credits
</li>
<li className="flex items-center">
<FaCheckCircle className="text-black mr-2" />
Slack support
</li>
</ul>
</div>
</div> </div>
</div> </div>
<p className="text-center text-xs text-gray-600 mt-1"> <p className="text-center text-xs text-gray-600 mt-1">

View File

@ -100,7 +100,7 @@ function AccessCodeSection({ settings, setSettings }: Props) {
{fetchState === "EMPTY" && ( {fetchState === "EMPTY" && (
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<a href="https://buy.stripe.com/cN28Az7ICclG5DGaEG" target="_blank"> <a href="https://buy.stripe.com/8wM6sre70gBW1nqaEE" target="_blank">
<Button size="sm" variant="secondary"> <Button size="sm" variant="secondary">
Buy credits Buy credits
</Button> </Button>
@ -129,7 +129,7 @@ function AccessCodeSection({ settings, setSettings }: Props) {
<span className="text-xs text-gray-700"> <span className="text-xs text-gray-700">
{usedCredits} out of {totalCredits} credits used {usedCredits} out of {totalCredits} credits used
</span> </span>
<a href="https://buy.stripe.com/cN28Az7ICclG5DGaEG" target="_blank"> <a href="https://buy.stripe.com/8wM6sre70gBW1nqaEE" target="_blank">
<Button size="sm">Add credits</Button> <Button size="sm">Add credits</Button>
</a> </a>
</div> </div>