From 143258a86d6db4f0141cbe94cf2347603dc73354 Mon Sep 17 00:00:00 2001 From: Avery Felts Date: Wed, 28 Jan 2026 10:37:59 -0700 Subject: [PATCH] Premium design updates for Smoking Aids and enhanced image blending --- src/app/globals.css | 51 ++++++ src/components/SmokingAidsContent.tsx | 214 +++++++++++++++----------- 2 files changed, 174 insertions(+), 91 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 8cf0a09..2109cb9 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -671,4 +671,55 @@ scroll-snap-align: center; height: fit-content; } +} + +@keyframes gradient-x { + + 0%, + 100% { + background-position: 0% 50%; + } + + 50% { + background-position: 100% 50%; + } +} + +.animate-gradient-x { + background-size: 200% 200%; + animation: gradient-x 15s ease infinite; +} + +@keyframes pulse-subtle { + + 0%, + 100% { + opacity: 0.5; + transform: translate(-50%, -50%) scale(1); + } + + 50% { + opacity: 0.8; + transform: translate(-50%, -50%) scale(1.05); + } +} + +.animate-pulse-subtle { + animation: pulse-subtle 10s ease-in-out infinite; +} + +@keyframes float { + + 0%, + 100% { + transform: translateY(0); + } + + 50% { + transform: translateY(-10px); + } +} + +.animate-float { + animation: float 6s ease-in-out infinite; } \ No newline at end of file diff --git a/src/components/SmokingAidsContent.tsx b/src/components/SmokingAidsContent.tsx index 3c50a88..6f3570a 100644 --- a/src/components/SmokingAidsContent.tsx +++ b/src/components/SmokingAidsContent.tsx @@ -19,9 +19,9 @@ const smokingAids = [ url: 'https://amzn.to/3Z2BuCk', icon: Wind, color: 'text-sky-400', - bgColor: 'bg-sky-500/10', - borderColor: 'border-sky-500/20', - buttonColor: 'bg-sky-500 hover:bg-sky-600', + themeColor: 'sky', + gradient: 'from-sky-500/20 to-indigo-500/20', + borderColor: 'border-sky-500/30', }, { id: 'nicotine-lozenge', @@ -33,10 +33,10 @@ const smokingAids = [ image: 'https://m.media-amazon.com/images/I/61h+Z88Ev9S._AC_SX679_.jpg', url: 'https://amzn.to/4rfQl8s', icon: Pill, - color: 'text-red-400', - bgColor: 'bg-red-500/10', - borderColor: 'border-red-500/20', - buttonColor: 'bg-red-500 hover:bg-red-600', + color: 'text-rose-400', + themeColor: 'rose', + gradient: 'from-rose-500/20 to-pink-500/20', + borderColor: 'border-rose-500/30', }, { id: 'recovery-complex', @@ -48,10 +48,10 @@ const smokingAids = [ image: 'https://m.media-amazon.com/images/I/51HWgmCW1-L._AC_SX679_.jpg', url: 'https://amzn.to/3NFU1Sx', icon: Sparkles, - color: 'text-purple-400', - bgColor: 'bg-purple-500/10', - borderColor: 'border-purple-500/20', - buttonColor: 'bg-purple-500 hover:bg-purple-600', + color: 'text-amber-400', + themeColor: 'amber', + gradient: 'from-amber-500/20 to-orange-500/20', + borderColor: 'border-amber-500/30', }, { id: 'mullein-tea', @@ -63,10 +63,10 @@ const smokingAids = [ image: 'https://m.media-amazon.com/images/I/81NU8bv72uL._SX679_PIbundle-20,TopRight,0,0_SX679SY693SH20_.jpg', url: 'https://amzn.to/3LzNpEM', icon: Coffee, - color: 'text-green-400', - bgColor: 'bg-green-500/10', - borderColor: 'border-green-500/20', - buttonColor: 'bg-green-500 hover:bg-green-600', + color: 'text-emerald-400', + themeColor: 'emerald', + gradient: 'from-emerald-500/20 to-teal-500/20', + borderColor: 'border-emerald-500/30', }, ]; @@ -74,99 +74,131 @@ export function SmokingAidsContent() { const { theme } = useTheme(); return ( -
+
{/* Hero Section */} -
-
+
+
-

- Tools for Your Freedom +

+ Tools for Your Freedom

-

- Transform your journey with tools designed to support your physical recovery and mental resilience. You don't have to do this alone. +

+ Transform your journey with tools designed to support your physical recovery and mental resilience. You don't have to do this alone.

{/* Grid Section */} -
- {smokingAids.map((item, index) => ( -
- - {/* Full card gradient overlay on hover */} -
+
+ {smokingAids.map((item, index) => { + const cardBackground = theme === 'light' + ? `linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%)` + : `linear-gradient(135deg, rgba(16, 16, 32, 0.7) 0%, rgba(24, 24, 48, 0.6) 100%)`; -
- {/* Image Section - Top on mobile, Left on desktop */} -
-
-
- {item.title} -
-
- - {item.category} - -
+ return ( +
+ + {/* Specific card glow on hover */} +
- {/* Content Section */} -
-
-
-

- {item.title} -

-
- {[...Array(5)].map((_, i) => ( - - ))} - ({item.rating}) +
+ {/* Image Section - Now with seamless blending */} +
+ {/* Atmospheric background glow - larger and softer */} +
+ + {/* Vertical fader to blend image area into content area */} +
+ +
+ {/* High-fidelity glass orb effect */} +
+ + {/* Inner glow/shimmer */} +
+ +
+ {item.title}
-
- +
+ + {item.category} +
-

- {item.description} -

- -
-
- -

- {item.benefit} -

+ {/* Content Section */} +
+
+
+

+ {item.title} +

+
+ {[...Array(5)].map((_, i) => ( + + ))} + {item.rating} +
+
+
+ +
-
- +

+ {item.description} +

+ +
+
+
+ +

+ {item.benefit} +

+
+
+ + +
-
- -
- ))} + +
+ ); + })}
{/* Trust/Disclaimer Section */}