handleNavigate('home')}
>
-
+
Puffin Offset
diff --git a/src/components/OffsetOrder.tsx b/src/components/OffsetOrder.tsx
index 6459f3a..22f2747 100644
--- a/src/components/OffsetOrder.tsx
+++ b/src/components/OffsetOrder.tsx
@@ -1,6 +1,6 @@
import React, { useState, useEffect, useCallback } from 'react';
import { Check, AlertCircle, ArrowLeft, Loader2, Globe2, TreePine, Waves, Factory, Wind, X } from 'lucide-react';
-import { motion } from 'framer-motion';
+import { motion, AnimatePresence } from 'framer-motion';
import { createOffsetOrder, getPortfolios } from '../api/wrenClient';
import type { CurrencyCode, OffsetOrder as OffsetOrderType, Portfolio, OffsetProject } from '../types';
import { currencies, formatCurrency, getCurrencyByCode } from '../utils/currencies';
@@ -487,17 +487,30 @@ export function OffsetOrder({ tons, monetaryAmount, onBack, calculatorType }: Pr
>
) : null}
- {/* Simplified Lightbox Modal */}
- {selectedProject && (
-
-
e.stopPropagation()}
+ {/* Animated Lightbox Modal */}
+
+ {selectedProject && (
+
+ e.stopPropagation()}
+ initial={{ opacity: 0, scale: 0.8, y: 20 }}
+ animate={{ opacity: 1, scale: 1, y: 0 }}
+ exit={{ opacity: 0, scale: 0.8, y: 20 }}
+ transition={{
+ duration: 0.4,
+ ease: [0.22, 1, 0.36, 1],
+ scale: { type: "spring", stiffness: 300, damping: 30 }
+ }}
+ >
{/* Close Button */}
-
-