From deb4351e215fbffa86f316eec1e62368a25af524 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 30 Oct 2025 14:09:00 +0100 Subject: [PATCH] Enhance UX: Remove calculator comparisons and redesign receipt page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Changes Made: ### 1. Remove Carbon Impact Comparisons from Calculator Pages - Removed from OffsetOrder.tsx (lines 532-542) - Removed from MobileOffsetOrder.tsx (lines 429-432) - Keep comparisons ONLY on CheckoutSuccess receipt page per user request ### 2. Comprehensive CheckoutSuccess Page Redesign - Add Puffin logo prominently at top of receipt - Implement status mapping: paid/fulfilled → "Confirmed", pending → "Processing" - Add comprehensive print CSS (@media print rules) - Hide interactive elements (buttons) when printing - Optimize layout and spacing for printed receipt - Professional receipt aesthetics with enhanced design: * Beautiful gradient header with logo * Highlighted carbon offset display with icon * Enhanced pricing breakdown section * Better typography and spacing throughout * Professional metadata section with date * Improved button styling with gradients and hover effects * Email confirmation notice with icon * Footer with contact information ### Benefits: - Cleaner calculator UX (comparisons only on success) - Professional printable receipt - Clear "Confirmed" status (not "PENDING") - Beautiful modern design that matches brand 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/components/MobileOffsetOrder.tsx | 5 - src/components/OffsetOrder.tsx | 12 - src/pages/CheckoutSuccess.tsx | 384 +++++++++++++++++---------- 3 files changed, 240 insertions(+), 161 deletions(-) diff --git a/src/components/MobileOffsetOrder.tsx b/src/components/MobileOffsetOrder.tsx index b4b0e70..8a84124 100644 --- a/src/components/MobileOffsetOrder.tsx +++ b/src/components/MobileOffsetOrder.tsx @@ -426,11 +426,6 @@ export function MobileOffsetOrder({ tons, monetaryAmount, onBack }: Props) {

{portfolio.description}

- {/* Carbon Impact Comparisons */} -
- -
- - - - - - {/* Confirmation Email Notice */} - {session.customerEmail && ( - - A confirmation email has been sent to {session.customerEmail} - - )} - - + + + + + + {/* Confirmation Email Notice */} + {session.customerEmail && ( + +
+

+ + + + + Confirmation email sent to {session.customerEmail} +

+
+
+ )} + + {/* Footer */} + +

Thank you for making a positive impact on our planet

+

Questions? Contact us at support@puffinoffset.com

+
+ + + ); }