From 372e4ae33eaafa3f907c67d5efbd7592b5e04815 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 3 Nov 2025 15:05:11 +0100 Subject: [PATCH] Fix checkout success page styling to match old Vite version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change header gradient from cyan-400/blue-400 to cyan-500/blue-500/indigo-600 (vibrant 3-color gradient) - Exclude /checkout/success from RootLayoutClient wrapper for fullscreen layout - Update color scheme throughout: gray → slate, green → blue/cyan/emerald - Add floating success badge below header - Add gradient backgrounds to offset sections - Update button styles with gradients and transform effects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/checkout/success/page.tsx | 113 +++++++++++++++++--------------- components/RootLayoutClient.tsx | 5 +- 2 files changed, 63 insertions(+), 55 deletions(-) diff --git a/app/checkout/success/page.tsx b/app/checkout/success/page.tsx index b4f4eed..9bd388a 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)}
@@ -363,24 +370,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} @@ -390,14 +397,14 @@ export default function CheckoutSuccessPage() { {session.customerEmail && (

- Email -

{session.customerEmail}

+ Email +

{session.customerEmail}

)}
- Date -

+ Date +

{new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', @@ -418,11 +425,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:

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