Spaces:
Running
Running
Download checkout.html from dntr228/shadowcheat-hub: direct link, hf CLI and curl.
- Browser
- Download file 8.82 kB
-
https://huggingface.co/spaces/dntr228/shadowcheat-hub/resolve/main/checkout.html
- Command line
-
hf download hf://spaces/dntr228/shadowcheat-hub/checkout.html
-
curl -L -o checkout.html https://huggingface.co/spaces/dntr228/shadowcheat-hub/resolve/main/checkout.html
8.82 kB
| <html lang="ru" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Оформление заказа | ShadowCheat HUB</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> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#6d28d9', | |
| secondary: '#1e293b', | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| :root { | |
| --light-bg: #f8fafc; | |
| --light-text: #1e293b; | |
| --light-card-bg: #ffffff; | |
| --light-border: #e2e8f0; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-secondary-800 text-gray-200 min-h-screen dark:bg-secondary-800 dark:text-gray-200"> | |
| <!-- Navigation --> | |
| <nav class="bg-secondary-900 bg-opacity-80 backdrop-blur-md sticky top-0 z-50 border-b border-primary-600"> | |
| <div class="container mx-auto px-4 py-3 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="shield" class="text-primary-500"></i> | |
| <span class="text-xl font-bold text-primary-400">ShadowCheat HUB</span> | |
| <span class="text-sm text-gray-400">| Русский</span> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <a href="index.html" class="hover:text-primary-400 transition">Вернуться на главную</a> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Checkout Section --> | |
| <section class="py-16 px-4"> | |
| <div class="container mx-auto max-w-4xl"> | |
| <h1 class="text-3xl font-bold mb-8 text-primary-400">Оформление заказа</h1> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-8"> | |
| <!-- Order Summary --> | |
| <div class="bg-secondary-800 p-6 rounded-lg border border-secondary-700 dark:bg-secondary-800 dark:border-secondary-700"> | |
| <h2 class="text-xl font-bold mb-4 text-primary-400">Ваш заказ</h2> | |
| <div id="checkout-items" class="space-y-4 mb-6"> | |
| <!-- Items will be populated by JavaScript --> | |
| </div> | |
| <div class="border-t border-secondary-700 pt-4"> | |
| <div class="flex justify-between items-center mb-2"> | |
| <span>Промежуточный итог:</span> | |
| <span id="subtotal">$0.00</span> | |
| </div> | |
| <div class="flex justify-between items-center mb-2"> | |
| <span>Комиссия:</span> | |
| <span>$0.00</span> | |
| </div> | |
| <div class="flex justify-between items-center font-bold text-lg"> | |
| <span>Итого:</span> | |
| <span id="total">$0.00</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Payment Form --> | |
| <div class="bg-secondary-800 p-6 rounded-lg border border-secondary-700 dark:bg-secondary-800 dark:border-secondary-700"> | |
| <h2 class="text-xl font-bold mb-4 text-primary-400">Способ оплаты</h2> | |
| <div class="space-y-4"> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <label class="flex items-center p-3 border border-secondary-700 rounded cursor-pointer hover:border-primary-500"> | |
| <input type="radio" name="payment" value="bitcoin" class="mr-2" checked> | |
| <i data-feather="bitcoin" class="w-5 h-5 text-yellow-500 mr-2"></i> | |
| Bitcoin | |
| </label> | |
| <label class="flex items-center p-3 border border-secondary-700 rounded cursor-pointer hover:border-primary-500"> | |
| <input type="radio" name="payment" value="usdt" class="mr-2"> | |
| <span class="text-xs font-bold mr-2">USDT</span> | |
| Tether | |
| </label> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Email для получения лицензии</label> | |
| <input type="email" class="w-full bg-secondary-700 border border-secondary-600 rounded-md px-3 py-2 focus:outline-none focus:border-primary-500" placeholder="your@email.com" required> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium mb-2">Промокод (если есть)</label> | |
| <input type="text" class="w-full bg-secondary-700 border border-secondary-600 rounded-md px-3 py-2 focus:outline-none focus:border-primary-500" placeholder="Введите промокод"> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="terms" class="mr-2" required> | |
| <label for="terms" class="text-sm"> | |
| Я согласен с <a href="#" class="text-primary-400 hover:underline">условиями использования</a> | |
| </label> | |
| </div> | |
| <button id="confirm-payment" class="w-full bg-primary-600 hover:bg-primary-700 py-3 rounded-md font-bold transition"> | |
| Подтвердить оплату | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <script> | |
| // Load cart from localStorage | |
| const cart = JSON.parse(localStorage.getItem('cart')) || []; | |
| function renderCheckoutItems() { | |
| const checkoutItems = document.getElementById('checkout-items'); | |
| const subtotalElement = document.getElementById('subtotal'); | |
| const totalElement = document.getElementById('total'); | |
| if (cart.length === 0) { | |
| checkoutItems.innerHTML = '<p class="text-gray-400">Корзина пуста</p>'; | |
| subtotalElement.textContent = '$0.00'; | |
| totalElement.textContent = '$0.00'; | |
| return; | |
| } | |
| checkoutItems.innerHTML = cart.map(item => ` | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <div class="font-medium">${item.product}</div> | |
| <div class="text-sm text-gray-400">1 лицензия</div> | |
| </div> | |
| <div class="text-primary-400 font-bold">$${item.price}</div> | |
| </div> | |
| `).join(''); | |
| const subtotal = cart.reduce((sum, item) => sum + parseFloat(item.price), 0); | |
| subtotalElement.textContent = `$${subtotal.toFixed(2)}`; | |
| totalElement.textContent = `$${subtotal.toFixed(2)}`; | |
| } | |
| document.getElementById('confirm-payment').addEventListener('click', () => { | |
| if (cart.length === 0) { | |
| alert('Корзина пуста!'); | |
| return; | |
| } | |
| if (!document.getElementById('terms').checked) { | |
| alert('Пожалуйста, согласитесь с условиями использования'); | |
| return; | |
| } | |
| // Simulate payment processing | |
| alert('Оплата успешно обработана! Лицензия будет отправлена на указанный email.'); | |
| // Clear cart after successful payment | |
| localStorage.removeItem('cart'); | |
| window.location.href = 'index.html'; | |
| }); | |
| // Initialize checkout page | |
| renderCheckoutItems(); | |
| feather.replace(); | |
| // Theme toggle (same as index) | |
| const currentTheme = localStorage.getItem('theme') || 'dark'; | |
| if (currentTheme === 'light') { | |
| document.documentElement.classList.remove('dark'); | |
| } else { | |
| document.documentElement.classList.add('dark'); | |
| } | |
| </script> | |
| </body> | |
| </html> | |