77 lines
3.4 KiB
HTML
77 lines
3.4 KiB
HTML
{% extends "base.html" %}
|
|
{% block content %}
|
|
<div class="min-h-screen bg-dark py-8 px-4">
|
|
<div class="max-w-xl mx-auto bg-dark-lighter rounded-lg shadow-lg p-6">
|
|
<h1 class="text-2xl font-bold mb-6 text-center">Subscribe to VPN Service</h1>
|
|
<form id="subscription-form" class="space-y-6">
|
|
<div>
|
|
<label class="block text-sm font-medium mb-2">User ID</label>
|
|
<input
|
|
type="text"
|
|
id="user-id"
|
|
readonly
|
|
class="w-full px-3 py-2 bg-dark border border-gray-600 rounded-md text-white focus:outline-none focus:border-blue-500 font-mono text-sm"
|
|
>
|
|
<p class="mt-1 text-sm text-gray-400">Save this ID - you'll need it to manage your subscription</p>
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium mb-2">WireGuard Public Key</label>
|
|
<input
|
|
type="text"
|
|
id="public-key"
|
|
readonly
|
|
class="w-full px-3 py-2 bg-dark border border-gray-600 rounded-md text-white focus:outline-none focus:border-blue-500 font-mono text-sm"
|
|
>
|
|
<button
|
|
type="button"
|
|
id="regenerate-keys"
|
|
class="mt-2 w-full px-3 py-2 bg-dark border border-gray-600 rounded-md text-white hover:bg-gray-800 transition-colors"
|
|
>
|
|
Regenerate Keys
|
|
</button>
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-sm font-medium mb-2">Duration</label>
|
|
<div class="space-y-4">
|
|
<input
|
|
type="range"
|
|
id="duration-slider"
|
|
min="1"
|
|
max="720"
|
|
value="24"
|
|
class="w-full"
|
|
>
|
|
<div class="flex justify-between text-sm text-gray-400">
|
|
<button type="button" data-hours="1" class="duration-preset hover:text-blue-400">1 Hour</button>
|
|
<button type="button" data-hours="24" class="duration-preset hover:text-blue-400">1 Day</button>
|
|
<button type="button" data-hours="168" class="duration-preset hover:text-blue-400">1 Week</button>
|
|
<button type="button" data-hours="720" class="duration-preset hover:text-blue-400">1 Month</button>
|
|
</div>
|
|
</div>
|
|
<p id="duration-display" class="mt-2 text-center text-gray-400"></p>
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
<p class="text-2xl font-bold text-blue-400">
|
|
<span id="price-display">-</span> sats
|
|
</p>
|
|
</div>
|
|
|
|
<button
|
|
type="submit"
|
|
class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition-colors"
|
|
>
|
|
Pay with Bitcoin
|
|
</button>
|
|
|
|
<div class="mt-4 text-sm text-gray-400 space-y-1">
|
|
<p>• Keys are generated securely in your browser</p>
|
|
<p>• Your private key never leaves your device</p>
|
|
<p>• Configuration will be available after payment</p>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |