diff --git a/app/(auth)/cloud/page.tsx b/app/(auth)/cloud/page.tsx index 3f3fa14..a4c9350 100644 --- a/app/(auth)/cloud/page.tsx +++ b/app/(auth)/cloud/page.tsx @@ -1,6 +1,8 @@ +import { PricingCard } from "@/components/auth/pricing-card" import { Card, CardContent, CardTitle } from "@/components/ui/card" import { ColoredText } from "@/components/ui/colored-text" import config from "@/lib/config" +import { PLANS } from "@/lib/stripe" import { Mail } from "lucide-react" import Link from "next/link" import { redirect } from "next/navigation" @@ -15,12 +17,39 @@ export default async function ChoosePlanPage() { TaxHacker Cloud Edition -

Cloud plans are not available yet

+

Choose your plan

-
- Cloud plans are not available yet. Please use the self-hosted version or reach out for questions. -
+ {config.auth.disableSignup ? ( +
+ Creating new account is disabled for now. Please use the self-hosted version. +
+ ) : ( +
+
+ {Object.values(PLANS) + .filter((plan) => plan.isAvailable) + .map((plan) => ( + + ))} +
+ +
+ By signing up, you agree to our{" "} + + Terms of Service + + ,{" "} + + Privacy Policy + + , and{" "} + + AI Usage Disclosure + +
+
+ )}
diff --git a/app/landing/landing.tsx b/app/landing/landing.tsx index dc75738..cf8d7f8 100644 --- a/app/landing/landing.tsx +++ b/app/landing/landing.tsx @@ -1,3 +1,4 @@ +import { NewsletterForm } from "@/app/landing/newsletter" import { ColoredText } from "@/components/ui/colored-text" import config from "@/lib/config" import Image from "next/image" @@ -21,12 +22,20 @@ export default function LandingPage() {
TaxHacker - - Log In - +
+ + Log In + + + Sign Up + +
@@ -383,13 +392,12 @@ export default function LandingPage() { Automatic updates and new features - + Early Access: €10/month 💎 + @@ -512,28 +520,8 @@ export default function LandingPage() { - {/* Stay Tuned / GitHub CTA */} -
-
-

Stay Tuned

-

- We're working hard on making TaxHacker useful for everyone. Star and watch our GitHub repo to get - notified about new features and releases. -

-
-
- - Open GitHub repo - -
-
-
-
+ {/* Newsletter Signup */} + diff --git a/lib/stripe.ts b/lib/stripe.ts index 2481d09..3c8ef8a 100644 --- a/lib/stripe.ts +++ b/lib/stripe.ts @@ -52,6 +52,25 @@ export const PLANS: Record = { storage: 512 * 1024 * 1024, ai: 1000, }, + isAvailable: false, + }, + early_monthly: { + code: "early_monthly", + name: "Early Adopter", + description: "Monthly plan for our first users who can forgive us bugs and childish problems :)", + benefits: [ + "Special price for early adopters", + "512 Mb of storage", + "1000 AI file analyses per month", + "Unlimited transactions", + "Unlimited fields, categories and projects", + ], + price: "€10/month", + stripePriceId: "price_1TjxlsAs8DS4NhOzicshNQjq", + limits: { + storage: 512 * 1024 * 1024, + ai: 1000, + }, isAvailable: true, }, }