From baa2849352a8aec925436674a2a1b0b188d7e0ae Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 3 Nov 2025 14:32:58 +0100 Subject: [PATCH] Restore old project color scheme for checkout success page - Replace all blue/cyan gradients with clean white/gray backgrounds - Change all slate colors to gray (gray-50, gray-600, gray-700, gray-800) - Change all buttons and accents to green-500/600 - Simplify header to white background with gray border - Remove fancy gradients and shadows for clean, simple design - Match exact color scheme from original Vite project --- app/checkout/success/page.tsx | 113 ++++++++++++++++------------------ 1 file changed, 53 insertions(+), 60 deletions(-) diff --git a/app/checkout/success/page.tsx b/app/checkout/success/page.tsx index a85ef3c..b4f4eed 100644 --- a/app/checkout/success/page.tsx +++ b/app/checkout/success/page.tsx @@ -73,14 +73,14 @@ export default function CheckoutSuccessPage() { if (loading) { return ( -
+
-
-

Loading your order details...

+
+

Loading your order details...

); @@ -88,18 +88,18 @@ export default function CheckoutSuccessPage() { if (error || !orderDetails) { return ( -
+
⚠️
-

Order Not Found

-

{error || 'Unable to retrieve order details'}

+

Order Not Found

+

{error || 'Unable to retrieve order details'}

@@ -276,7 +276,7 @@ export default function CheckoutSuccessPage() { } `} -
+
{/* Receipt Container - Page 1 */} -
+
{/* Header with Logo */} Puffin Offset -

+
+
+ + + +
+
+

Order Confirmed

-

+

Thank you for your carbon offset purchase

- {/* Success Badge */} - -
- - - -
-
- {/* Order Details Section */} -

+

Order Summary

{/* Carbon Offset - Highlighted */} -
+
- Carbon Offset -

{order.tons} tons CO₂

+ Carbon Offset +

{order.tons} tons CO₂

-
+
{/* Pricing Breakdown */} -
+
- Offset Cost - + Offset Cost + ${formatCurrency(baseAmount)}
- Processing Fee (3%) - + Processing Fee (3%) + ${formatCurrency(processingFee)}
-
+
- Total Paid - + Total Paid + ${formatCurrency(totalAmount)}
@@ -370,24 +363,24 @@ export default function CheckoutSuccessPage() {
{/* Order Metadata */} -
+
{/* Payment ID (Stripe) */}
- Payment ID -

{order.stripeSessionId}

+ Payment ID +

{order.stripeSessionId}

{/* Offsetting Order ID (Wren) - Only show if fulfilled */} {order.wrenOrderId && (
- Offsetting Order ID -

{order.wrenOrderId}

+ Offsetting Order ID +

{order.wrenOrderId}

)}
- Status + Status

{statusDisplay.label} @@ -397,14 +390,14 @@ export default function CheckoutSuccessPage() { {session.customerEmail && (

- Email -

{session.customerEmail}

+ Email +

{session.customerEmail}

)}
- Date -

+ Date +

{new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', @@ -425,11 +418,11 @@ export default function CheckoutSuccessPage() { transition={{ delay: 0.35 }} className="mt-6" > -

-

+
+

Your Carbon Offset Distribution

-

+

Your {order.tons} tons of CO₂ offsets are distributed across these verified projects:

-
+
@@ -461,19 +454,19 @@ export default function CheckoutSuccessPage() { >