From 6097af75a436ee88ece140a6188b8b1afa9c4b45 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Mon, 28 Jul 2025 08:56:42 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=AF=20Refine=20Rarity=20Effects:=20Car?= =?UTF-8?q?d-Focused=20Glow=20+=20Hero=20Particles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ Perfect Balance Achieved: - Removed bold rarity gradient from hero background - Hero now uses neutral theme-based gradient - Added beautiful rarity glow effect around card image only - Kept magical particle effects in full hero space 🎨 Card Glow System: - Subtle blur glow behind card with rarity colors - Enhanced box-shadow with rarity-specific colors - Gentle pulsing animation for mystical effect - Proper scaling and positioning for perfect visual balance 🌟 Improved Readability: - Hero text now uses consistent theme colors - No more contrast issues with bold backgrounds - Clean, professional appearance with magical touches The result: Subtle, elegant rarity indication focused on the card itself while maintaining the magical particle atmosphere --- pages/card/[id].js | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/pages/card/[id].js b/pages/card/[id].js index d55aeed..bad9023 100644 --- a/pages/card/[id].js +++ b/pages/card/[id].js @@ -135,16 +135,16 @@ export default function CardDetail() { const getRarityGradient = (rarity) => { const rarityKey = rarity?.toLowerCase(); const gradients = { - 'common': '#f3f4f6, #e5e7eb, #d1d5db', // Subtle gray - 'uncommon': '#ecfdf5, #d1fae5, #a7f3d0', // Subtle green - 'rare': '#fef3c7, #fde68a, #fcd34d', // Subtle gold - 'mythic': '#fef9c3, #fef08a, #facc15', // Rich gold - 'holographic': '#fce7f3, #fbcfe8, #f9a8d4', // Subtle pink - 'enchanted': '#f3e8ff, #e9d5ff, #c4b5fd', // Subtle purple - 'super rare': '#dbeafe, #bfdbfe, #93c5fd', // Subtle blue - 'legendary': '#fef3c7, #fde68a, #f59e0b' // Vibrant gold + 'common': '#9ca3af, #6b7280, #4b5563', // Subtle gray glow + 'uncommon': '#10b981, #059669, #047857', // Green glow + 'rare': '#f59e0b, #d97706, #b45309', // Gold glow + 'mythic': '#fbbf24, #f59e0b, #d97706', // Rich gold glow + 'holographic': '#ec4899, #db2777, #be185d', // Pink glow + 'enchanted': '#a855f7, #9333ea, #7c3aed', // Purple glow + 'super rare': '#3b82f6, #2563eb, #1d4ed8', // Blue glow + 'legendary': '#fbbf24, #f59e0b, #ea580c' // Vibrant gold-orange glow }; - return gradients[rarityKey] || '#f9fafb, #f3f4f6, #e5e7eb'; + return gradients[rarityKey] || '#6b7280, #4b5563, #374151'; }; const getParticleCount = (rarity) => { @@ -374,7 +374,7 @@ export default function CardDetail() {
{/* Animated Particles Background */} @@ -415,11 +415,19 @@ export default function CardDetail() { {/* Card Image */}
+ {/* Rarity Glow Effect */}
+
{card.image_url ? ( @@ -447,11 +455,7 @@ export default function CardDetail() {
{/* Card Info */} -
+

{card.name}

{card.oracle_text || card.card_type}