Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Mar 23, 2023
1 parent e1655ca commit 875661f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
12 changes: 7 additions & 5 deletions pages/buy-credits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export default function Pricing() {
<p className="mx-auto mt-6 max-w-2xl text-center text-lg leading-8 text-gray-500 mb-10">
You currently have{" "}
<span className="font-semibold text-gray-400">
{data?.remainingGenerations} credits
{data?.remainingGenerations}{" "}
{data?.remainingGenerations > 1 ? "credits" : "credit"}
</span>
. Purchase more below.
</p>
Expand All @@ -53,9 +54,6 @@ export default function Pricing() {
<h4 className="flex-none leading-6 mt-2 text-2xl font-bold tracking-tight text-white sm:text-5xl">
What’s included
</h4>
<p className="text-gray-300 mt-5">
Have any pricing questions or feedback? Email [email protected]
</p>
</div>
<ul
role="list"
Expand Down Expand Up @@ -152,9 +150,13 @@ export default function Pricing() {
clip-rule="evenodd"
/>
</svg>
Early access to future features
Early access to new features
</li>
</ul>
<p className="text-gray-400 mb-5">
Interested in team pricing or have any pricing questions? Email{" "}
<span className="text-gray-300">[email protected]</span>
</p>
<Footer />
</div>
);
Expand Down
17 changes: 8 additions & 9 deletions pages/dream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const Home: NextPage = () => {
},
onValidate: async (file: File): Promise<undefined | string> => {
return data.remainingGenerations === 0
? `No more generations left. Buy more above.`
? `No more credits left. Buy more above.`
: undefined;
},
};
Expand Down Expand Up @@ -136,13 +136,11 @@ const Home: NextPage = () => {
{status === "authenticated" ? (
<Link
href="/buy-credits"
className="border border-gray-700 rounded-2xl py-2 px-4 text-gray-400 text-sm my-6 duration-300 ease-in-out hover:text-gray-300 transition"
className="border border-gray-700 rounded-2xl py-2 px-4 text-gray-400 text-sm my-6 duration-300 ease-in-out hover:text-gray-300 hover:scale-105 transition"
>
<span className="font-semibold text-gray-200">
Pricing is now available.
</span>{" "}
Click <span className="font-semibold text-gray-200">here</span> to
buy credits, discounted only for this week!
Pricing is now available.{" "}
<span className="font-semibold text-gray-200">Click here</span> to
buy credits!
</Link>
) : (
<a
Expand All @@ -163,12 +161,13 @@ const Home: NextPage = () => {
<p className="text-gray-400">
You have{" "}
<span className="font-semibold text-gray-300">
{data.remainingGenerations} credits
{data.remainingGenerations}{" "}
{data?.remainingGenerations > 1 ? "credits" : "credit"}
</span>{" "}
left.{" "}
{data.remainingGenerations < 2 && (
<span>
Buy more generations{" "}
Buy more credits{" "}
<Link
href="/buy-credits"
className="font-semibold text-gray-300 underline underline-offset-2 hover:text-gray-200 transition"
Expand Down

0 comments on commit 875661f

Please sign in to comment.