Spaces:
Running
Running
Download components/hero.js from Pro-Support/tradematrix-triumph: direct link, hf CLI and curl.
- Browser
- Download file 5.51 kB
-
https://huggingface.co/spaces/Pro-Support/tradematrix-triumph/resolve/main/components/hero.js
- Command line
-
hf download hf://spaces/Pro-Support/tradematrix-triumph/components/hero.js
-
curl -L -o hero.js https://huggingface.co/spaces/Pro-Support/tradematrix-triumph/resolve/main/components/hero.js
5.51 kB
| class CustomHero extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .hero-pattern { | |
| background-image: | |
| radial-gradient(circle at 25% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%), | |
| radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .hero-pattern::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, transparent 100%); | |
| z-index: 0; | |
| } | |
| </style> | |
| <section class="hero-pattern pt-32 pb-20 relative"> | |
| <div class="absolute inset-0 overflow-hidden"> | |
| <div class="absolute top-1/4 left-1/4 w-64 h-64 rounded-full bg-indigo-500/10 blur-[100px]"></div> | |
| <div class="absolute top-1/3 right-1/4 w-96 h-96 rounded-full bg-emerald-500/10 blur-[120px]"></div> | |
| </div> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col lg:flex-row items-center"> | |
| <div class="lg:w-1/2 mb-12 lg:mb-0"> | |
| <div class="inline-block px-3 py-1 rounded-full bg-gray-800 mb-4"> | |
| <span class="text-sm font-medium gradient-text">LIMITED TIME OFFER</span> | |
| </div> | |
| <h1 class="text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight"> | |
| Copy Our <span class="gradient-text">Winning Matrix</span><br>And Start Trading Today! | |
| </h1> | |
| <p class="text-lg text-gray-400 mb-8 max-w-lg"> | |
| Get instant access to our elite $800 trading course for a fraction of the price. | |
| Limited spots available - join before the timer runs out! | |
| </p> | |
| <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4"> | |
| <a href="#signup" class="px-8 py-4 rounded-xl gradient-bg hover:opacity-90 font-bold text-center transition hover-scale"> | |
| Enroll Now - Only $99 | |
| </a> | |
| <a href="#matrix" class="px-8 py-4 rounded-xl bg-gray-800 hover:bg-gray-700 font-bold text-center transition hover-scale"> | |
| Copy Trading Matrix | |
| </a> | |
| </div> | |
| <div class="mt-8 p-4 bg-gray-800/50 rounded-lg border border-gray-700"> | |
| <p class="text-center text-gray-300 mb-2"> | |
| <span class="font-medium">Offer expires in:</span> | |
| <span id="countdown" class="font-bold ml-2 text-blue-400">3d 0h 0m 0s</span> | |
| </p> | |
| </div> | |
| </div> | |
| <div class="lg:w-1/2 lg:pl-12"> | |
| <div class="relative"> | |
| <div class="absolute -top-6 -left-6 w-64 h-64 rounded-full gradient-bg opacity-20 blur-3xl"></div> | |
| <div class="relative bg-gray-800/50 border border-gray-700 rounded-2xl overflow-hidden card-shadow hover-scale"> | |
| <img src="http://static.photos/finance/1024x576/42" alt="Trading Dashboard" class="w-full h-auto"> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold mb-2">Our Proven Trading Matrix</h3> | |
| <p class="text-gray-400 mb-4">The exact system our elite traders use to generate consistent profits</p> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-8 h-8 rounded-full gradient-bg flex items-center justify-center"> | |
| <i data-feather="copy" class="text-white" style="width: 16px; height: 16px;"></i> | |
| </div> | |
| <span class="text-sm font-medium">Copy & Paste Ready</span> | |
| </div> | |
| <button class="copy-matrix px-4 py-2 rounded-lg gradient-bg text-sm font-medium hover:opacity-90 transition"> | |
| Copy Matrix | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-hero', CustomHero); |