Spaces:
Running
Running
Download index.html from Marcelosales/undefined: direct link, hf CLI and curl.
- Browser
- Download file 28.9 kB
-
https://huggingface.co/spaces/Marcelosales/undefined/resolve/main/index.html
- Command line
-
hf download hf://spaces/Marcelosales/undefined/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Marcelosales/undefined/resolve/main/index.html
28.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Forex Ninja Training Dojo</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 500: '#3b82f6', | |
| }, | |
| secondary: { | |
| 500: '#10b981', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| .hero-section { | |
| height: 80vh; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .ninja-card { | |
| transition: all 0.3s ease; | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .ninja-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| .currency-pair { | |
| font-family: 'Courier New', monospace; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Vanta.js Background --> | |
| <div id="vanta-bg" class="hero-section w-full fixed top-0 left-0 z-0"></div> | |
| <!-- Navigation --> | |
| <nav class="relative z-10 bg-white bg-opacity-90 shadow-sm"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16 items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <i data-feather="dollar-sign" class="text-primary-500 h-8 w-8"></i> | |
| <span class="ml-2 text-xl font-bold text-gray-800">Forex Ninja Dojo</span> | |
| </div> | |
| <div class="hidden md:block"> | |
| <div class="ml-10 flex items-center space-x-4"> | |
| <a href="#" class="text-primary-500 px-3 py-2 rounded-md text-sm font-medium">Home</a> | |
| <a href="#" class="text-gray-700 hover:text-primary-500 px-3 py-2 rounded-md text-sm font-medium">Courses</a> | |
| <a href="#" class="text-gray-700 hover:text-primary-500 px-3 py-2 rounded-md text-sm font-medium">Simulator</a> | |
| <a href="#" class="text-gray-700 hover:text-primary-500 px-3 py-2 rounded-md text-sm font-medium">Community</a> | |
| <button class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-md text-sm font-medium transition duration-300"> | |
| Start Training | |
| </button> | |
| </div> | |
| </div> | |
| <div class="-mr-2 flex md:hidden"> | |
| <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-700 hover:text-primary-500 focus:outline-none"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <main class="relative z-10 mt-16"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20"> | |
| <div class="text-center"> | |
| <h1 class="text-4xl md:text-6xl font-extrabold tracking-tight text-gray-900"> | |
| <span class="block">Master <span class="text-primary-500">Forex Trading</span></span> | |
| <span class="block">Like a Ninja</span> | |
| </h1> | |
| <p class="mt-6 max-w-lg mx-auto text-xl text-gray-600"> | |
| Our dojo transforms beginners into disciplined traders through ancient financial wisdom and modern techniques. | |
| </p> | |
| <div class="mt-10"> | |
| <div class="inline-flex rounded-md shadow"> | |
| <a href="#" class="inline-flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-primary-500 hover:bg-primary-600 md:py-4 md:text-lg md:px-10 transition duration-300"> | |
| Begin Your Journey | |
| </a> | |
| </div> | |
| <div class="mt-4 inline-flex rounded-md shadow ml-3"> | |
| <a href="#" class="inline-flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-primary-500 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10 transition duration-300"> | |
| <i data-feather="play-circle" class="mr-2"></i> Watch Intro | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Trading Stats --> | |
| <div class="bg-white py-12 shadow-lg rounded-lg max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-10 relative z-10"> | |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-4 text-center"> | |
| <div> | |
| <p class="text-3xl font-bold text-primary-500">10K+</p> | |
| <p class="text-gray-600">Students Trained</p> | |
| </div> | |
| <div> | |
| <p class="text-3xl font-bold text-secondary-500">300+</p> | |
| <p class="text-gray-600">Training Hours</p> | |
| </div> | |
| <div> | |
| <p class="text-3xl font-bold text-primary-500">85%</p> | |
| <p class="text-gray-600">Success Rate</p> | |
| </div> | |
| <div> | |
| <p class="text-3xl font-bold text-secondary-500">24/7</p> | |
| <p class="text-gray-600">Dojo Access</p> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Course Section --> | |
| <section class="relative z-10 py-20 bg-gray-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center"> | |
| <h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl"> | |
| Seu Caminho para Maestria | |
| </h2> | |
| <p class="mt-4 max-w-2xl text-xl text-gray-600 mx-auto"> | |
| Nosso sistema de faixas cuidadosamente elaborado leva você de iniciante faixa branca a mestre faixa preta. | |
| </p> | |
| </div> | |
| <div class="mt-16 grid gap-8 md:grid-cols-3"> | |
| <!-- White Belt --> | |
| <div class="ninja-card bg-white rounded-lg overflow-hidden shadow-md"> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <div class="p-2 bg-gray-100 rounded-full"> | |
| <i data-feather="user" class="text-gray-600"></i> | |
| </div> | |
| <span class="ml-3 font-bold text-gray-700">Faixa Branca</span> | |
| </div> | |
| <h3 class="mt-4 text-xl font-bold text-gray-900">Fundamentos do Forex</h3> | |
| <p class="mt-2 text-gray-600"> | |
| Aprenda o básico sobre negociação de moedas, estrutura de mercado e psicologia de trading. | |
| </p> | |
| <ul class="mt-4 space-y-2"> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Entendendo pares de moedas</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Lendo gráficos de preços</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Terminologia básica de trading</span> | |
| </li> | |
| </ul> | |
| <button class="mt-6 w-full bg-primary-500 hover:bg-primary-600 text-white py-2 px-4 rounded-md transition duration-300"> | |
| Iniciar Curso | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Green Belt --> | |
| <div class="ninja-card bg-white rounded-lg overflow-hidden shadow-md transform scale-105 z-20"> | |
| <div class="absolute top-0 right-0 bg-secondary-500 text-white px-3 py-1 text-xs font-bold rounded-bl-lg"> | |
| POPULAR | |
| </div> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <div class="p-2 bg-green-100 rounded-full"> | |
| <i data-feather="bar-chart-2" class="text-secondary-500"></i> | |
| </div> | |
| <span class="ml-3 font-bold text-gray-700">Faixa Verde</span> | |
| </div> | |
| <h3 class="mt-4 text-xl font-bold text-gray-900">Análise Técnica</h3> | |
| <p class="mt-2 text-gray-600"> | |
| Domine padrões de gráficos, indicadores e desenvolva sua estratégia de trading. | |
| </p> | |
| <ul class="mt-4 space-y-2"> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Padrões de candlestick</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Suporte e resistência</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Médias móveis e RSI</span> | |
| </li> | |
| </ul> | |
| <button class="mt-6 w-full bg-secondary-500 hover:bg-secondary-600 text-white py-2 px-4 rounded-md transition duration-300"> | |
| Iniciar Curso | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Black Belt --> | |
| <div class="ninja-card bg-white rounded-lg overflow-hidden shadow-md"> | |
| <div class="px-6 py-4"> | |
| <div class="flex items-center"> | |
| <div class="p-2 bg-gray-800 rounded-full"> | |
| <i data-feather="award" class="text-white"></i> | |
| </div> | |
| <span class="ml-3 font-bold text-gray-700">Faixa Preta</span> | |
| </div> | |
| <h3 class="mt-4 text-xl font-bold text-gray-900">Estratégias Avançadas</h3> | |
| <p class="mt-2 text-gray-600"> | |
| Aprenda técnicas profissionais de trading, gerenciamento de risco e psicologia. | |
| </p> | |
| <ul class="mt-4 space-y-2"> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Padrões de gráficos avançados</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Trading com Fibonacci</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i data-feather="check" class="text-secondary-500 mr-2 mt-1"></i> | |
| <span>Conceitos de trading institucional</span> | |
| </li> | |
| </ul> | |
| <button class="mt-6 w-full bg-gray-800 hover:bg-black text-white py-2 px-4 rounded-md transition duration-300"> | |
| Iniciar Curso | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Market Info Section --> | |
| <section class="relative z-10 py-20 bg-white"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="lg:grid lg:grid-cols-12 lg:gap-8"> | |
| <div class="lg:col-span-5"> | |
| <h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl"> | |
| Real-time Market Data | |
| </h2> | |
| <p class="mt-3 text-lg text-gray-600"> | |
| Practice with live currency pairs and understand how global markets move. | |
| </p> | |
| <div class="mt-8"> | |
| <div class="inline-flex rounded-md shadow"> | |
| <a href="#" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-primary-500 hover:bg-primary-600 transition duration-300"> | |
| <i data-feather="activity" class="mr-2"></i> Live Trading Room | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-12 lg:mt-0 lg:col-span-7"> | |
| <div class="bg-gray-50 rounded-lg shadow-lg overflow-hidden"> | |
| <div class="px-6 py-4 bg-gray-100 border-b border-gray-200"> | |
| <h3 class="text-lg font-medium text-gray-900">Major Currency Pairs</h3> | |
| </div> | |
| <div class="divide-y divide-gray-200"> | |
| <!-- EUR/USD --> | |
| <div class="px-6 py-4 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <span class="text-blue-800 font-bold">EU</span> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">EUR/USD</div> | |
| <div class="text-sm text-gray-500">Euro / US Dollar</div> | |
| </div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-sm font-medium text-gray-900 currency-pair">1.0954</div> | |
| <div class="text-sm text-green-500">+0.12%</div> | |
| </div> | |
| </div> | |
| <!-- GBP/USD --> | |
| <div class="px-6 py-4 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-red-100 flex items-center justify-center"> | |
| <span class="text-red-800 font-bold">GU</span> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">GBP/USD</div> | |
| <div class="text-sm text-gray-500">British Pound / US Dollar</div> | |
| </div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-sm font-medium text-gray-900 currency-pair">1.2832</div> | |
| <div class="text-sm text-green-500">+0.08%</div> | |
| </div> | |
| </div> | |
| <!-- USD/JPY --> | |
| <div class="px-6 py-4 flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-yellow-100 flex items-center justify-center"> | |
| <span class="text-yellow-800 font-bold">UJ</span> | |
| </div> | |
| <div class="ml-4"> | |
| <div class="text-sm font-medium text-gray-900">USD/JPY</div> | |
| <div class="text-sm text-gray-500">US Dollar / Japanese Yen</div> | |
| </div> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-sm font-medium text-gray-900 currency-pair">133.68</div> | |
| <div class="text-sm text-red-500">-0.24%</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonial Section --> | |
| <section class="relative z-10 py-20 bg-primary-500 bg-opacity-5"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="text-center"> | |
| <h2 class="text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl"> | |
| Hear From Our Ninja Traders | |
| </h2> | |
| <p class="mt-4 max-w-2xl text-xl text-gray-600 mx-auto"> | |
| Don't just take our word for it - hear from our students who've transformed their trading. | |
| </p> | |
| </div> | |
| <div class="mt-16 grid gap-8 md:grid-cols-3"> | |
| <!-- Testimonial 1 --> | |
| <div class="bg-white p-8 rounded-lg shadow-md"> | |
| <div class="flex items-center"> | |
| <img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/1" alt="Sarah K."> | |
| <div class="ml-4"> | |
| <div class="text-lg font-medium text-gray-900">Sarah K.</div> | |
| <div class="text-secondary-500">6 Months in Dojo</div> | |
| </div> | |
| </div> | |
| <p class="mt-4 text-gray-600"> | |
| "The belt system made learning forex structured and achievable. I went from knowing nothing to consistently profitable in 5 months!" | |
| </p> | |
| <div class="mt-4 flex text-yellow-400"> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| </div> | |
| </div> | |
| <!-- Testimonial 2 --> | |
| <div class="bg-white p-8 rounded-lg shadow-md"> | |
| <div class="flex items-center"> | |
| <img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/2" alt="Mike T."> | |
| <div class="ml-4"> | |
| <div class="text-lg font-medium text-gray-900">Mike T.</div> | |
| <div class="text-secondary-500">Black Belt Trader</div> | |
| </div> | |
| </div> | |
| <p class="mt-4 text-gray-600"> | |
| "The risk management techniques alone were worth the price. I've doubled my account while most traders blow theirs up." | |
| </p> | |
| <div class="mt-4 flex text-yellow-400"> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| </div> | |
| </div> | |
| <!-- Testimonial 3 --> | |
| <div class="bg-white p-8 rounded-lg shadow-md"> | |
| <div class="flex items-center"> | |
| <img class="h-12 w-12 rounded-full" src="http://static.photos/people/200x200/3" alt="Lisa M."> | |
| <div class="ml-4"> | |
| <div class="text-lg font-medium text-gray-900">Lisa M.</div> | |
| <div class="text-secondary-500">Green Belt Trader</div> | |
| </div> | |
| </div> | |
| <p class="mt-4 text-gray-600"> | |
| "The community support is incredible. Having access to experienced traders makes all the difference when you're starting out." | |
| </p> | |
| <div class="mt-4 flex text-yellow-400"> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| <i data-feather="star" class="fill-current"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- CTA Section --> | |
| <section class="relative z-10 py-20 bg-primary-500 text-white"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center"> | |
| <h2 class="text-3xl font-extrabold tracking-tight sm:text-4xl"> | |
| Ready to Begin Your Trading Journey? | |
| </h2> | |
| <p class="mt-4 max-w-2xl text-xl mx-auto"> | |
| Join our dojo today and get instant access to all courses, trading tools, and our private community. | |
| </p> | |
| <div class="mt-10"> | |
| <div class="inline-flex rounded-md shadow"> | |
| <a href="#" class="inline-flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-primary-500 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10 transition duration-300"> | |
| Enroll Now - $97/month | |
| </a> | |
| </div> | |
| <div class="mt-4 inline-flex rounded-md shadow ml-3"> | |
| <a href="#" class="inline-flex items-center justify-center px-8 py-3 border border-white text-base font-medium rounded-md text-white hover:bg-primary-600 md:py-4 md:text-lg md:px-10 transition duration-300"> | |
| <i data-feather="mail" class="mr-2"></i> Free Beginner's Guide | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="relative z-10 bg-gray-800 text-gray-300"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> | |
| <div class="grid grid-cols-2 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-white text-sm font-semibold tracking-wider uppercase">Forex Ninja Dojo</h3> | |
| <p class="mt-4 text-sm"> | |
| Transforming beginners into disciplined traders through ancient financial wisdom and modern techniques. | |
| </p> | |
| <div class="mt-4 flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="twitter"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="youtube"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white"> | |
| <i data-feather="instagram"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="text-white text-sm font-semibold tracking-wider uppercase">Courses</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-sm hover:text-white">White Belt</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">Green Belt</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">Black Belt</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">Master Classes</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-white text-sm font-semibold tracking-wider uppercase">Resources</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-sm hover:text-white">Trading Tools</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">Economic Calendar</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">Blog</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">FAQ</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-white text-sm font-semibold tracking-wider uppercase">Legal</h3> | |
| <ul class="mt-4 space-y-2"> | |
| <li><a href="#" class="text-sm hover:text-white">Disclaimer</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">Privacy Policy</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">Terms of Service</a></li> | |
| <li><a href="#" class="text-sm hover:text-white">Refund Policy</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="mt-12 border-t border-gray-700 pt-8 flex flex-col md:flex-row justify-between"> | |
| <p class="text-sm"> | |
| © 2023 Forex Ninja Dojo. All rights reserved. | |
| </p> | |
| <p class="mt-4 md:mt-0 text-sm"> | |
| Disclaimer: Trading forex carries a high level of risk and may not be suitable for all investors. | |
| </p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Initialize Vanta.js background | |
| VANTA.NET({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0x3b82f6, | |
| backgroundColor: 0xf8fafc, | |
| points: 12.00, | |
| maxDistance: 22.00, | |
| spacing: 18.00 | |
| }); | |
| // Simulate changing currency pair prices | |
| function updatePrices() { | |
| const pairs = document.querySelectorAll('.currency-pair'); | |
| pairs.forEach(pair => { | |
| const currentValue = parseFloat(pair.textContent); | |
| const change = (Math.random() * 0.02) - 0.01; // Random small change | |
| const newValue = currentValue + (currentValue * change); | |
| pair.textContent = newValue.toFixed(4); | |
| // Update the percentage change | |
| const percentageElement = pair.nextElementSibling; | |
| const percentageValue = (change * 100).toFixed(2); | |
| if (change >= 0) { | |
| percentageElement.textContent = `+${percentageValue}%`; | |
| percentageElement.classList.remove('text-red-500'); | |
| percentageElement.classList.add('text-green-500'); | |
| } else { | |
| percentageElement.textContent = `${percentageValue}%`; | |
| percentageElement.classList.remove('text-green-500'); | |
| percentageElement.classList.add('text-red-500'); | |
| } | |
| }); | |
| } | |
| // Update prices every 3 seconds | |
| setInterval(updatePrices, 3000); | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> | |