feat: make tryIt presets, limits, badges and buttons completely dynamic from JSON configs

This commit is contained in:
2026-11-04 15:36:30 +05:30
parent de20dd4c7e
commit e5c318099d
21 changed files with 881 additions and 250 deletions
+50 -41
View File
@@ -1,56 +1,65 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none">
<defs>
<linearGradient id="cre-cyan-blue" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00F0FF" />
<stop offset="100%" stop-color="#3B82F6" />
<linearGradient id="cre-bright-cyan" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00F5FF" />
<stop offset="100%" stop-color="#2563EB" />
</linearGradient>
<linearGradient id="cre-purple-pink" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#7928CA" />
<stop offset="100%" stop-color="#FF0080" />
<linearGradient id="cre-bright-purple" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#A855F7" />
<stop offset="100%" stop-color="#EC4899" />
</linearGradient>
<linearGradient id="cre-emerald-teal" x1="0%" y1="0%" x2="100%" y2="100%">
<linearGradient id="cre-bright-gold" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#F59E0B" />
<stop offset="100%" stop-color="#FACC15" />
</linearGradient>
<linearGradient id="cre-bright-teal" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#10B981" />
<stop offset="100%" stop-color="#00F0FF" />
<stop offset="100%" stop-color="#06B6D4" />
</linearGradient>
<filter id="neon-glow" x="-20%" y="-20%" width="140%" height="140%">
<feGaussianBlur stdDeviation="3" result="blur" />
<feComposite in="SourceGraphic" in2="blur" operator="over" />
</filter>
<radialGradient id="cre-core-glow" cx="50%" cy="50%" r="50%">
<radialGradient id="cre-star-bloom" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#FFFFFF" />
<stop offset="40%" stop-color="#00F0FF" stop-opacity="0.8" />
<stop offset="100%" stop-color="#00F0FF" stop-opacity="0" />
<stop offset="35%" stop-color="#38BDF8" stop-opacity="0.95" />
<stop offset="70%" stop-color="#818CF8" stop-opacity="0.4" />
<stop offset="100%" stop-color="#0284C7" stop-opacity="0" />
</radialGradient>
<radialGradient id="cre-bg-cosmic" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#1E293B" />
<stop offset="60%" stop-color="#0F172A" />
<stop offset="100%" stop-color="#020617" />
</radialGradient>
</defs>
<!-- Outer Neural Ring -->
<circle cx="50" cy="50" r="44" stroke="rgba(255, 255, 255, 0.08)" stroke-width="1.5" stroke-dasharray="4 6" />
<!-- Cosmic Background Disc -->
<circle cx="50" cy="50" r="48" fill="url(#cre-bg-cosmic)" />
<!-- Geometric Interlocking Aperture Blades -->
<!-- Blade 1: Cyan Arc -->
<path d="M 50 14 C 68 14, 82 26, 84 44 C 74 38, 62 38, 50 44 C 42 34, 46 22, 50 14 Z"
fill="url(#cre-cyan-blue)"
opacity="0.95" />
<!-- Outer Orbiting Energy Ring -->
<circle cx="50" cy="50" r="41" stroke="rgba(56, 189, 248, 0.45)" stroke-width="1.5" stroke-dasharray="4 6" />
<circle cx="50" cy="9" r="3" fill="#00F5FF" />
<circle cx="91" cy="50" r="2.5" fill="#EC4899" />
<circle cx="15" cy="70" r="2.5" fill="#FACC15" />
<!-- Blade 2: Purple-Pink Arc -->
<path d="M 84 56 C 80 74, 66 84, 50 86 C 54 74, 50 62, 40 54 C 52 48, 66 48, 84 56 Z"
fill="url(#cre-purple-pink)"
opacity="0.95" />
<!-- Inner Counter-Orbiting Track -->
<circle cx="50" cy="50" r="33" stroke="rgba(168, 85, 247, 0.35)" stroke-width="1" stroke-dasharray="2 4" />
<!-- Blade 3: Emerald Arc -->
<path d="M 38 82 C 22 76, 14 62, 16 44 C 26 50, 38 48, 48 42 C 46 56, 44 70, 38 82 Z"
fill="url(#cre-emerald-teal)"
opacity="0.95" />
<!-- Faceted Quantum Crystal Prism -->
<polygon points="50,16 62,38 50,50 38,38" fill="url(#cre-bright-cyan)" opacity="0.95" />
<polygon points="84,50 62,62 50,50 62,38" fill="url(#cre-bright-purple)" opacity="0.95" />
<polygon points="50,84 38,62 50,50 62,62" fill="url(#cre-bright-gold)" opacity="0.95" />
<polygon points="16,50 38,38 50,50 38,62" fill="url(#cre-bright-teal)" opacity="0.95" />
<!-- Inner Dynamic Prism Lines -->
<path d="M 50 20 L 76 68 L 24 68 Z" stroke="rgba(255, 255, 255, 0.4)" stroke-width="1.2" fill="none" />
<!-- Central Radiant Core Node -->
<circle cx="50" cy="52" r="12" fill="url(#cre-core-glow)" filter="url(#neon-glow)" />
<circle cx="50" cy="52" r="4.5" fill="#FFFFFF" />
<polygon points="50,50 62,38 72,28 62,28" fill="#38BDF8" opacity="0.8" />
<polygon points="50,50 62,62 72,72 72,62" fill="#EC4899" opacity="0.8" />
<polygon points="50,50 38,62 28,72 38,72" fill="#FACC15" opacity="0.8" />
<polygon points="50,50 38,38 28,28 28,38" fill="#10B981" opacity="0.8" />
<!-- Focal Vertex Nodes -->
<circle cx="50" cy="20" r="2.5" fill="#00F0FF" />
<circle cx="76" cy="68" r="2.5" fill="#FF0080" />
<circle cx="24" cy="68" r="2.5" fill="#10B981" />
</svg>
<line x1="50" y1="16" x2="50" y2="84" stroke="#FFFFFF" stroke-width="1.2" opacity="0.85" />
<line x1="16" y1="50" x2="84" y2="50" stroke="#FFFFFF" stroke-width="1.2" opacity="0.85" />
<line x1="26" y1="26" x2="74" y2="74" stroke="#FFFFFF" stroke-width="0.8" opacity="0.6" />
<line x1="74" y1="26" x2="26" y2="74" stroke="#FFFFFF" stroke-width="0.8" opacity="0.6" />
<!-- Radiant Core Bloom -->
<circle cx="50" cy="50" r="14" fill="url(#cre-star-bloom)" />
<circle cx="50" cy="50" r="5" fill="#FFFFFF" />
<polygon points="50,42 52,50 50,58 48,50" fill="#FFFFFF" />
<polygon points="42,50 50,52 58,50 50,48" fill="#FFFFFF" />
</svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB