From a1e49a1e1affcd04dd3173dbbca1436ff979f519 Mon Sep 17 00:00:00 2001 From: kbe Date: Thu, 14 Aug 2025 18:38:57 +0200 Subject: [PATCH] Implemented pricing page --- app/pricing/page.tsx | 59 ++++++++++++++++++++----------------- components/pricing-card.tsx | 11 ++++--- lib/theme-context.tsx | 2 +- 3 files changed, 40 insertions(+), 32 deletions(-) diff --git a/app/pricing/page.tsx b/app/pricing/page.tsx index ac6b89b..7d3bab4 100644 --- a/app/pricing/page.tsx +++ b/app/pricing/page.tsx @@ -37,10 +37,10 @@ const PricingPage = () => {

- Find a plan to power your apps. + Transform your food photos with AI

- Dishpix supports teams of all sizes, with pricing that scales. + Choose the perfect plan to enhance your culinary photography with cutting-edge AI technology.

{getDiscountBadge().text} @@ -53,19 +53,19 @@ const PricingPage = () => { {/* Pricing Cards Grid */}

{ price={`$${getPrice(29)}`} billingPeriod={getBillingPeriod()} features={[ - 'Everything in Start, plus:', - '10x more included usage', - 'Observability tools', - 'Faster builds', - 'Cold start prevention', - 'Advanced WAF Protection', - 'Email support', + 'Everything in Basic, plus:', + 'Enhance up to 500 food photos/month', + 'Advanced AI food styling', + 'Professional lighting simulation', + 'Gourmet color grading', + 'Remove unwanted objects', + 'AI-powered ingredient recognition', + 'High-resolution exports', + 'Priority processing', ]} - ctaText="Start a free trial" + ctaText="Start free trial" ctaHref="#" isPopular={true} />
diff --git a/components/pricing-card.tsx b/components/pricing-card.tsx index 4f52452..130aeb6 100644 --- a/components/pricing-card.tsx +++ b/components/pricing-card.tsx @@ -35,16 +35,19 @@ const PricingCard: React.FC = ({ return (
{isPopular && ( -
+
Most Popular
)} + {!isPopular && ( +
+ )}

{title}

- {title === 'Start' && 'The perfect starting place for your web app or personal project.'} - {title === 'Pro' && 'Everything you need to build and scale your app.'} - {title === 'Premium' && 'Critical security, performance, observability, platform SLAs, and support.'} + {title === 'Basic' && 'Perfect for food bloggers and home cooks looking to enhance their culinary photography.'} + {title === 'Pro' && 'Everything you need to showcase restaurant dishes professionally and attract more customers.'} + {title === 'MasterChef' && 'Complete professional suite for food photographers and culinary brands demanding perfection.'}

{price} diff --git a/lib/theme-context.tsx b/lib/theme-context.tsx index b1ab659..26517d9 100644 --- a/lib/theme-context.tsx +++ b/lib/theme-context.tsx @@ -11,7 +11,7 @@ interface ThemeContextType { const ThemeContext = createContext(undefined); export const ThemeProvider: React.FC<{ children: ReactNode }> = ({ children }) => { - const [theme, setTheme] = useState('dark'); // Default to dark mode + const [theme, setTheme] = useState('light'); // Default to light mode (white backgrounds) useEffect(() => { const savedTheme = localStorage.getItem('theme') as Theme | null;