Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +894 -19
- prompts.txt +16 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: hyper-dns-pro
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: yellow
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,894 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="fr">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Tableau de Bord Paiements - HyperDNS Pro</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.gradient-bg {
|
11 |
+
background: linear-gradient(135deg, #6e8efb, #a777e3);
|
12 |
+
}
|
13 |
+
.dashboard-card {
|
14 |
+
transition: all 0.3s ease;
|
15 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
|
16 |
+
}
|
17 |
+
.dashboard-card:hover {
|
18 |
+
transform: translateY(-2px);
|
19 |
+
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
|
20 |
+
}
|
21 |
+
.payment-method.active {
|
22 |
+
border-color: #6e8efb;
|
23 |
+
background-color: #f0f4ff;
|
24 |
+
}
|
25 |
+
.nav-item {
|
26 |
+
transition: all 0.2s ease;
|
27 |
+
}
|
28 |
+
.nav-item.active {
|
29 |
+
border-left: 4px solid #6e8efb;
|
30 |
+
background-color: #f8f9fa;
|
31 |
+
}
|
32 |
+
.nav-item:hover:not(.active) {
|
33 |
+
background-color: #f8f9fa;
|
34 |
+
}
|
35 |
+
.progress-bar {
|
36 |
+
transition: width 0.6s ease;
|
37 |
+
}
|
38 |
+
.notification-badge {
|
39 |
+
top: -5px;
|
40 |
+
right: -5px;
|
41 |
+
}
|
42 |
+
.alert {
|
43 |
+
animation: slideIn 0.3s ease-out;
|
44 |
+
}
|
45 |
+
@keyframes slideIn {
|
46 |
+
from { transform: translateX(100%); }
|
47 |
+
to { transform: translateX(0); }
|
48 |
+
}
|
49 |
+
.success-message {
|
50 |
+
animation: fadeIn 0.5s ease-out;
|
51 |
+
}
|
52 |
+
@keyframes fadeIn {
|
53 |
+
from { opacity: 0; transform: translateY(-10px); }
|
54 |
+
to { opacity: 1; transform: translateY(0); }
|
55 |
+
}
|
56 |
+
.btn-active {
|
57 |
+
background-color: #4f46e5 !important;
|
58 |
+
transform: scale(0.98);
|
59 |
+
}
|
60 |
+
.btn-hover:hover {
|
61 |
+
transform: translateY(-1px);
|
62 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
63 |
+
}
|
64 |
+
.cart-item {
|
65 |
+
transition: all 0.2s ease;
|
66 |
+
}
|
67 |
+
.cart-item:hover {
|
68 |
+
background-color: #f8f9fa;
|
69 |
+
}
|
70 |
+
.login-modal {
|
71 |
+
animation: fadeIn 0.3s ease-out;
|
72 |
+
}
|
73 |
+
</style>
|
74 |
+
</head>
|
75 |
+
<body class="bg-gray-50 font-sans">
|
76 |
+
<!-- Login Modal -->
|
77 |
+
<div id="login-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 login-modal">
|
78 |
+
<div class="bg-white rounded-lg p-6 w-full max-w-md">
|
79 |
+
<div class="flex justify-between items-center mb-4">
|
80 |
+
<h3 class="text-xl font-bold">Connexion Administrateur</h3>
|
81 |
+
<button onclick="closeLoginModal()" class="text-gray-500 hover:text-gray-700">
|
82 |
+
<i class="fas fa-times"></i>
|
83 |
+
</button>
|
84 |
+
</div>
|
85 |
+
<form id="login-form" onsubmit="return handleLogin(event)">
|
86 |
+
<div class="mb-4">
|
87 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Email</label>
|
88 |
+
<input type="email" id="login-email" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="[email protected]" required>
|
89 |
+
</div>
|
90 |
+
<div class="mb-6">
|
91 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Mot de passe</label>
|
92 |
+
<input type="password" id="login-password" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="••••••••" required>
|
93 |
+
</div>
|
94 |
+
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md font-medium transition duration-200">
|
95 |
+
Se connecter
|
96 |
+
</button>
|
97 |
+
</form>
|
98 |
+
<div id="login-error" class="hidden mt-3 p-3 bg-red-50 text-red-700 rounded-md">
|
99 |
+
<i class="fas fa-exclamation-circle mr-2"></i> Email ou mot de passe incorrect
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
+
</div>
|
103 |
+
|
104 |
+
<!-- Main Content (hidden until login) -->
|
105 |
+
<div id="main-content" class="hidden">
|
106 |
+
<!-- Navigation -->
|
107 |
+
<div class="flex h-screen">
|
108 |
+
<!-- Sidebar -->
|
109 |
+
<div class="w-64 bg-white shadow-md">
|
110 |
+
<div class="p-4 border-b">
|
111 |
+
<div class="flex items-center">
|
112 |
+
<i class="fas fa-bolt text-purple-600 text-2xl mr-2"></i>
|
113 |
+
<span class="text-xl font-bold">HyperDNS Pro</span>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<nav class="mt-6">
|
117 |
+
<a href="#" class="nav-item active px-6 py-3 cursor-pointer flex items-center">
|
118 |
+
<i class="fas fa-credit-card mr-3 text-gray-600"></i>
|
119 |
+
<span class="font-medium">Paiements</span>
|
120 |
+
</a>
|
121 |
+
<a href="#" class="nav-item px-6 py-3 cursor-pointer flex items-center">
|
122 |
+
<i class="fas fa-globe mr-3 text-gray-600"></i>
|
123 |
+
<span>Domaines</span>
|
124 |
+
</a>
|
125 |
+
<a href="#" class="nav-item px-6 py-3 cursor-pointer flex items-center">
|
126 |
+
<i class="fas fa-lock mr-3 text-gray-600"></i>
|
127 |
+
<span>Certificats SSL</span>
|
128 |
+
</a>
|
129 |
+
<a href="#" class="nav-item px-6 py-3 cursor-pointer flex items-center">
|
130 |
+
<i class="fas fa-shopping-cart mr-3 text-gray-600"></i>
|
131 |
+
<span>Panier</span>
|
132 |
+
</a>
|
133 |
+
<a href="#" class="nav-item px-6 py-3 cursor-pointer flex items-center">
|
134 |
+
<i class="fas fa-chart-line mr-3 text-gray-600"></i>
|
135 |
+
<span>Analytiques</span>
|
136 |
+
</a>
|
137 |
+
<a href="#" class="nav-item px-6 py-3 cursor-pointer flex items-center">
|
138 |
+
<i class="fas fa-cog mr-3 text-gray-600"></i>
|
139 |
+
<span>Paramètres</span>
|
140 |
+
</a>
|
141 |
+
</nav>
|
142 |
+
</div>
|
143 |
+
|
144 |
+
<!-- Main Content -->
|
145 |
+
<div class="flex-1 overflow-auto">
|
146 |
+
<!-- Header -->
|
147 |
+
<header class="bg-white shadow-sm p-4">
|
148 |
+
<div class="flex justify-between items-center">
|
149 |
+
<h1 class="text-2xl font-bold text-gray-800">Tableau de Bord Paiements</h1>
|
150 |
+
<div class="flex items-center space-x-4">
|
151 |
+
<div class="relative cursor-pointer" id="notification-btn">
|
152 |
+
<i class="fas fa-bell text-gray-500 text-xl"></i>
|
153 |
+
<span class="notification-badge absolute h-3 w-3 rounded-full bg-red-500"></span>
|
154 |
+
</div>
|
155 |
+
<div class="flex items-center cursor-pointer" id="profile-btn">
|
156 |
+
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-8 h-8 rounded-full">
|
157 |
+
<span class="ml-2 font-medium" id="admin-name">Admin</span>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
</header>
|
162 |
+
|
163 |
+
<!-- Dashboard Content -->
|
164 |
+
<main class="p-6">
|
165 |
+
<!-- Welcome Card -->
|
166 |
+
<div class="gradient-bg text-white rounded-xl p-6 mb-6">
|
167 |
+
<div class="flex justify-between items-start">
|
168 |
+
<div>
|
169 |
+
<h2 class="text-2xl font-bold mb-2">Accès Premium Activé</h2>
|
170 |
+
<p class="mb-4">Vous bénéficiez d'un accès administrateur gratuit à tous nos produits premium.</p>
|
171 |
+
<div class="flex items-center">
|
172 |
+
<div class="w-full bg-white bg-opacity-20 rounded-full h-2.5 mr-2">
|
173 |
+
<div class="progress-bar bg-white h-2.5 rounded-full" style="width: 100%"></div>
|
174 |
+
</div>
|
175 |
+
<span class="text-sm">100% complété</span>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
<i class="fas fa-gem text-4xl opacity-50"></i>
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
|
182 |
+
<!-- Payment Methods Section -->
|
183 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
|
184 |
+
<!-- PayPal Card -->
|
185 |
+
<div class="dashboard-card bg-white rounded-lg border p-6">
|
186 |
+
<div class="flex justify-between items-start mb-4">
|
187 |
+
<div>
|
188 |
+
<h3 class="text-lg font-bold mb-1">PayPal</h3>
|
189 |
+
<p class="text-gray-600 text-sm">Recevez vos paiements directement sur votre compte PayPal</p>
|
190 |
+
</div>
|
191 |
+
<i class="fab fa-paypal text-3xl text-blue-500"></i>
|
192 |
+
</div>
|
193 |
+
|
194 |
+
<div id="paypal-status" class="mb-4">
|
195 |
+
<div class="flex items-center text-sm mb-2">
|
196 |
+
<span class="font-medium mr-2">Statut:</span>
|
197 |
+
<span id="paypal-status-text" class="px-2 py-1 rounded text-xs font-medium bg-gray-100 text-gray-800">Non configuré</span>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
|
201 |
+
<form id="paypal-form">
|
202 |
+
<div class="mb-4">
|
203 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Email PayPal</label>
|
204 |
+
<input type="email" id="paypal-email" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="[email protected]" required>
|
205 |
+
</div>
|
206 |
+
<button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md font-medium transition duration-200 btn-hover">
|
207 |
+
Enregistrer
|
208 |
+
</button>
|
209 |
+
</form>
|
210 |
+
<div id="paypal-success" class="hidden mt-3 p-3 bg-green-50 text-green-700 rounded-md success-message">
|
211 |
+
<i class="fas fa-check-circle mr-2"></i> Configuration PayPal enregistrée avec succès!
|
212 |
+
</div>
|
213 |
+
</div>
|
214 |
+
|
215 |
+
<!-- Stripe Card -->
|
216 |
+
<div class="dashboard-card bg-white rounded-lg border p-6">
|
217 |
+
<div class="flex justify-between items-start mb-4">
|
218 |
+
<div>
|
219 |
+
<h3 class="text-lg font-bold mb-1">Stripe</h3>
|
220 |
+
<p class="text-gray-600 text-sm">Configurez votre compte Stripe pour recevoir des paiements par carte</p>
|
221 |
+
</div>
|
222 |
+
<i class="fab fa-stripe text-3xl text-purple-500"></i>
|
223 |
+
</div>
|
224 |
+
|
225 |
+
<div id="stripe-status" class="mb-4">
|
226 |
+
<div class="flex items-center text-sm mb-2">
|
227 |
+
<span class="font-medium mr-2">Statut:</span>
|
228 |
+
<span id="stripe-status-text" class="px-2 py-1 rounded text-xs font-medium bg-gray-100 text-gray-800">Non configuré</span>
|
229 |
+
</div>
|
230 |
+
</div>
|
231 |
+
|
232 |
+
<form id="stripe-form">
|
233 |
+
<div class="mb-4">
|
234 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Numéro de carte</label>
|
235 |
+
<input type="text" id="card-number" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="4242 4242 4242 4242" required>
|
236 |
+
</div>
|
237 |
+
<div class="grid grid-cols-2 gap-4 mb-4">
|
238 |
+
<div>
|
239 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Date d'expiration</label>
|
240 |
+
<input type="text" id="expiry-date" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="MM/AA" required>
|
241 |
+
</div>
|
242 |
+
<div>
|
243 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">CVC</label>
|
244 |
+
<input type="text" id="cvc" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="123" required>
|
245 |
+
</div>
|
246 |
+
</div>
|
247 |
+
<button type="submit" class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-md font-medium transition duration-200 btn-hover">
|
248 |
+
Enregistrer
|
249 |
+
</button>
|
250 |
+
</form>
|
251 |
+
<div id="stripe-success" class="hidden mt-3 p-3 bg-green-50 text-green-700 rounded-md success-message">
|
252 |
+
<i class="fas fa-check-circle mr-2"></i> Configuration Stripe enregistrée avec succès!
|
253 |
+
</div>
|
254 |
+
</div>
|
255 |
+
</div>
|
256 |
+
|
257 |
+
<!-- Shopping Cart Section -->
|
258 |
+
<div class="bg-white rounded-lg border p-6 mb-8">
|
259 |
+
<h3 class="text-lg font-bold mb-4">Panier d'achat</h3>
|
260 |
+
|
261 |
+
<div class="overflow-x-auto">
|
262 |
+
<table class="min-w-full divide-y divide-gray-200">
|
263 |
+
<thead class="bg-gray-50">
|
264 |
+
<tr>
|
265 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Produit</th>
|
266 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Prix</th>
|
267 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Quantité</th>
|
268 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total</th>
|
269 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
270 |
+
</tr>
|
271 |
+
</thead>
|
272 |
+
<tbody class="bg-white divide-y divide-gray-200" id="cart-items">
|
273 |
+
<!-- Cart items will be added here -->
|
274 |
+
</tbody>
|
275 |
+
</table>
|
276 |
+
</div>
|
277 |
+
|
278 |
+
<div class="mt-6 flex justify-between items-center">
|
279 |
+
<button onclick="clearCart()" class="bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 px-4 rounded-md font-medium transition duration-200">
|
280 |
+
Vider le panier
|
281 |
+
</button>
|
282 |
+
<div class="text-right">
|
283 |
+
<p class="text-gray-600">Total: <span id="cart-total" class="font-bold text-lg">€0.00</span></p>
|
284 |
+
<button onclick="checkout()" class="mt-2 bg-green-600 hover:bg-green-700 text-white py-2 px-6 rounded-md font-medium transition duration-200">
|
285 |
+
Payer maintenant
|
286 |
+
</button>
|
287 |
+
</div>
|
288 |
+
</div>
|
289 |
+
</div>
|
290 |
+
|
291 |
+
<!-- Products Access Section -->
|
292 |
+
<div class="bg-white rounded-lg border p-6 mb-8">
|
293 |
+
<h3 class="text-lg font-bold mb-4">Accès aux Produits</h3>
|
294 |
+
<p class="text-gray-600 mb-6">Vos méthodes de paiement sont configurées. Vous avez maintenant accès gratuitement à tous nos produits premium.</p>
|
295 |
+
|
296 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
297 |
+
<!-- Product 1 -->
|
298 |
+
<div class="dashboard-card border rounded-lg p-4 flex items-center hover:bg-gray-50 transition duration-200 cursor-pointer" onclick="showProductModal('domains')">
|
299 |
+
<div class="p-3 bg-purple-100 rounded-full mr-4">
|
300 |
+
<i class="fas fa-globe text-purple-600"></i>
|
301 |
+
</div>
|
302 |
+
<div>
|
303 |
+
<h4 class="font-medium">Enregistrement de Domaines</h4>
|
304 |
+
<p class="text-sm text-gray-500">Accès illimité</p>
|
305 |
+
</div>
|
306 |
+
<i class="fas fa-check-circle text-green-500 ml-auto"></i>
|
307 |
+
</div>
|
308 |
+
|
309 |
+
<!-- Product 2 -->
|
310 |
+
<div class="dashboard-card border rounded-lg p-4 flex items-center hover:bg-gray-50 transition duration-200 cursor-pointer" onclick="showProductModal('ssl')">
|
311 |
+
<div class="p-3 bg-blue-100 rounded-full mr-4">
|
312 |
+
<i class="fas fa-lock text-blue-600"></i>
|
313 |
+
</div>
|
314 |
+
<div>
|
315 |
+
<h4 class="font-medium">Certificats SSL</h4>
|
316 |
+
<p class="text-sm text-gray-500">Accès illimité</p>
|
317 |
+
</div>
|
318 |
+
<i class="fas fa-check-circle text-green-500 ml-auto"></i>
|
319 |
+
</div>
|
320 |
+
|
321 |
+
<!-- Product 3 -->
|
322 |
+
<div class="dashboard-card border rounded-lg p-4 flex items-center hover:bg-gray-50 transition duration-200 cursor-pointer" onclick="showProductModal('dns')">
|
323 |
+
<div class="p-3 bg-green-100 rounded-full mr-4">
|
324 |
+
<i class="fas fa-tachometer-alt text-green-600"></i>
|
325 |
+
</div>
|
326 |
+
<div>
|
327 |
+
<h4 class="font-medium">DNS Premium</h4>
|
328 |
+
<p class="text-sm text-gray-500">Accès illimité</p>
|
329 |
+
</div>
|
330 |
+
<i class="fas fa-check-circle text-green-500 ml-auto"></i>
|
331 |
+
</div>
|
332 |
+
</div>
|
333 |
+
</div>
|
334 |
+
|
335 |
+
<!-- Earnings Section -->
|
336 |
+
<div class="bg-white rounded-lg border p-6">
|
337 |
+
<h3 class="text-lg font-bold mb-4">Vos Revenus</h3>
|
338 |
+
<p class="text-gray-600 mb-6">Visualisez vos revenus générés grâce à vos méthodes de paiement configurées.</p>
|
339 |
+
|
340 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
341 |
+
<!-- Total Earnings -->
|
342 |
+
<div class="dashboard-card border rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50" onclick="showEarningsDetails('total')">
|
343 |
+
<div class="text-3xl font-bold text-purple-600 mb-2">€0.00</div>
|
344 |
+
<div class="text-gray-600">Total des revenus</div>
|
345 |
+
</div>
|
346 |
+
|
347 |
+
<!-- PayPal Earnings -->
|
348 |
+
<div class="dashboard-card border rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50" onclick="showEarningsDetails('paypal')">
|
349 |
+
<div class="text-3xl font-bold text-blue-500 mb-2">€0.00</div>
|
350 |
+
<div class="text-gray-600">Via PayPal</div>
|
351 |
+
</div>
|
352 |
+
|
353 |
+
<!-- Stripe Earnings -->
|
354 |
+
<div class="dashboard-card border rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50" onclick="showEarningsDetails('stripe')">
|
355 |
+
<div class="text-3xl font-bold text-purple-500 mb-2">€0.00</div>
|
356 |
+
<div class="text-gray-600">Via Stripe</div>
|
357 |
+
</div>
|
358 |
+
</div>
|
359 |
+
|
360 |
+
<div class="border-t pt-4">
|
361 |
+
<div class="flex justify-between items-center mb-3">
|
362 |
+
<h4 class="font-medium">Historique des transactions</h4>
|
363 |
+
<div class="text-blue-600 hover:text-blue-800 flex items-center cursor-pointer" onclick="refreshTransactions()">
|
364 |
+
<i class="fas fa-sync-alt mr-2"></i>
|
365 |
+
Actualiser
|
366 |
+
</div>
|
367 |
+
</div>
|
368 |
+
<div class="bg-gray-50 rounded-lg p-4 text-center text-gray-500 cursor-pointer hover:bg-gray-100" onclick="showTransactions()">
|
369 |
+
<i class="fas fa-exchange-alt text-2xl mb-2"></i>
|
370 |
+
<p>Aucune transaction pour le moment</p>
|
371 |
+
</div>
|
372 |
+
</div>
|
373 |
+
</div>
|
374 |
+
</main>
|
375 |
+
</div>
|
376 |
+
</div>
|
377 |
+
|
378 |
+
<!-- Notification Dropdown -->
|
379 |
+
<div id="notification-dropdown" class="hidden absolute right-4 top-16 w-72 bg-white rounded-md shadow-lg z-50 border">
|
380 |
+
<div class="p-4 border-b">
|
381 |
+
<div class="flex justify-between items-center">
|
382 |
+
<h3 class="font-medium">Notifications</h3>
|
383 |
+
<div class="text-xs text-blue-600 cursor-pointer hover:text-blue-800" onclick="markAllAsRead()">Marquer tout comme lu</div>
|
384 |
+
</div>
|
385 |
+
</div>
|
386 |
+
<div class="max-h-60 overflow-y-auto">
|
387 |
+
<div class="p-3 border-b hover:bg-gray-50 cursor-pointer" onclick="showNotification('update')">
|
388 |
+
<div class="flex items-start">
|
389 |
+
<div class="p-2 bg-blue-100 rounded-full mr-3">
|
390 |
+
<i class="fas fa-bell text-blue-500"></i>
|
391 |
+
</div>
|
392 |
+
<div>
|
393 |
+
<p class="text-sm font-medium">Nouvelle mise à jour disponible</p>
|
394 |
+
<p class="text-xs text-gray-500">Il y a 2 heures</p>
|
395 |
+
</div>
|
396 |
+
</div>
|
397 |
+
</div>
|
398 |
+
<div class="p-3 border-b hover:bg-gray-50 cursor-pointer" onclick="showNotification('payment')">
|
399 |
+
<div class="flex items-start">
|
400 |
+
<div class="p-2 bg-green-100 rounded-full mr-3">
|
401 |
+
<i class="fas fa-check-circle text-green-500"></i>
|
402 |
+
</div>
|
403 |
+
<div>
|
404 |
+
<p class="text-sm font-medium">Paiement reçu avec succès</p>
|
405 |
+
<p class="text-xs text-gray-500">Hier à 14:30</p>
|
406 |
+
</div>
|
407 |
+
</div>
|
408 |
+
</div>
|
409 |
+
</div>
|
410 |
+
<div class="p-3 text-center border-t">
|
411 |
+
<div class="text-sm text-blue-600 cursor-pointer hover:text-blue-800" onclick="showAllNotifications()">Voir toutes les notifications</div>
|
412 |
+
</div>
|
413 |
+
</div>
|
414 |
+
|
415 |
+
<!-- Profile Dropdown -->
|
416 |
+
<div id="profile-dropdown" class="hidden absolute right-4 top-16 w-56 bg-white rounded-md shadow-lg z-50 border">
|
417 |
+
<div class="p-4 border-b">
|
418 |
+
<div class="flex items-center">
|
419 |
+
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-10 h-10 rounded-full mr-3">
|
420 |
+
<div>
|
421 |
+
<p class="font-medium" id="profile-name">Admin</p>
|
422 |
+
<p class="text-xs text-gray-500" id="profile-email">[email protected]</p>
|
423 |
+
</div>
|
424 |
+
</div>
|
425 |
+
</div>
|
426 |
+
<div class="py-1">
|
427 |
+
<div class="px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 cursor-pointer" onclick="navigateTo('account')">Mon compte</div>
|
428 |
+
<div class="px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 cursor-pointer" onclick="navigateTo('settings')">Paramètres</div>
|
429 |
+
<div class="px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 cursor-pointer" onclick="navigateTo('help')">Aide</div>
|
430 |
+
</div>
|
431 |
+
<div class="py-1 border-t">
|
432 |
+
<div class="px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 cursor-pointer" onclick="logout()">Déconnexion</div>
|
433 |
+
</div>
|
434 |
+
</div>
|
435 |
+
|
436 |
+
<!-- Product Modal -->
|
437 |
+
<div id="product-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
|
438 |
+
<div class="bg-white rounded-lg p-6 w-full max-w-md">
|
439 |
+
<div class="flex justify-between items-center mb-4">
|
440 |
+
<h3 id="product-modal-title" class="text-xl font-bold"></h3>
|
441 |
+
<button onclick="closeModal()" class="text-gray-500 hover:text-gray-700">
|
442 |
+
<i class="fas fa-times"></i>
|
443 |
+
</button>
|
444 |
+
</div>
|
445 |
+
<div id="product-modal-content" class="mb-4">
|
446 |
+
<!-- Content will be inserted here -->
|
447 |
+
</div>
|
448 |
+
<div class="flex justify-between">
|
449 |
+
<button onclick="addToCart()" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md font-medium transition duration-200">
|
450 |
+
Ajouter au panier
|
451 |
+
</button>
|
452 |
+
<button onclick="closeModal()" class="bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 px-4 rounded-md font-medium transition duration-200">
|
453 |
+
Fermer
|
454 |
+
</button>
|
455 |
+
</div>
|
456 |
+
</div>
|
457 |
+
</div>
|
458 |
+
|
459 |
+
<!-- Earnings Modal -->
|
460 |
+
<div id="earnings-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
|
461 |
+
<div class="bg-white rounded-lg p-6 w-full max-w-md">
|
462 |
+
<div class="flex justify-between items-center mb-4">
|
463 |
+
<h3 id="earnings-modal-title" class="text-xl font-bold"></h3>
|
464 |
+
<button onclick="closeModal()" class="text-gray-500 hover:text-gray-700">
|
465 |
+
<i class="fas fa-times"></i>
|
466 |
+
</button>
|
467 |
+
</div>
|
468 |
+
<div id="earnings-modal-content" class="mb-4">
|
469 |
+
<!-- Content will be inserted here -->
|
470 |
+
</div>
|
471 |
+
<div class="flex justify-end">
|
472 |
+
<button onclick="closeModal()" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md font-medium transition duration-200">
|
473 |
+
Fermer
|
474 |
+
</button>
|
475 |
+
</div>
|
476 |
+
</div>
|
477 |
+
</div>
|
478 |
+
|
479 |
+
<!-- Checkout Modal -->
|
480 |
+
<div id="checkout-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
|
481 |
+
<div class="bg-white rounded-lg p-6 w-full max-w-md">
|
482 |
+
<div class="flex justify-between items-center mb-4">
|
483 |
+
<h3 class="text-xl font-bold">Paiement</h3>
|
484 |
+
<button onclick="closeCheckoutModal()" class="text-gray-500 hover:text-gray-700">
|
485 |
+
<i class="fas fa-times"></i>
|
486 |
+
</button>
|
487 |
+
</div>
|
488 |
+
<div class="mb-4">
|
489 |
+
<p class="mb-2">Montant total: <span id="checkout-total" class="font-bold">€0.00</span></p>
|
490 |
+
<div class="mb-4">
|
491 |
+
<label class="block text-gray-700 text-sm font-medium mb-1">Méthode de paiement</label>
|
492 |
+
<select id="payment-method" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
493 |
+
<option value="paypal">PayPal</option>
|
494 |
+
<option value="stripe">Carte de crédit (Stripe)</option>
|
495 |
+
</select>
|
496 |
+
</div>
|
497 |
+
</div>
|
498 |
+
<div class="flex justify-between">
|
499 |
+
<button onclick="processPayment()" class="bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-md font-medium transition duration-200">
|
500 |
+
Payer maintenant
|
501 |
+
</button>
|
502 |
+
<button onclick="closeCheckoutModal()" class="bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 px-4 rounded-md font-medium transition duration-200">
|
503 |
+
Annuler
|
504 |
+
</button>
|
505 |
+
</div>
|
506 |
+
</div>
|
507 |
+
</div>
|
508 |
+
</div>
|
509 |
+
|
510 |
+
<script>
|
511 |
+
// Admin credentials
|
512 |
+
const adminCredentials = {
|
513 |
+
"[email protected]": "Admin270574@",
|
514 |
+
"[email protected]": "Admin270574@"
|
515 |
+
};
|
516 |
+
|
517 |
+
// Products data
|
518 |
+
const products = {
|
519 |
+
domains: {
|
520 |
+
name: "Enregistrement de Domaines",
|
521 |
+
price: 9.99,
|
522 |
+
description: "Service premium d'enregistrement de domaines avec gestion DNS avancée et protection de la vie privée."
|
523 |
+
},
|
524 |
+
ssl: {
|
525 |
+
name: "Certificats SSL",
|
526 |
+
price: 29.99,
|
527 |
+
description: "Certificats SSL sécurisés pour protéger votre site web avec validation rapide et support 24/7."
|
528 |
+
},
|
529 |
+
dns: {
|
530 |
+
name: "DNS Premium",
|
531 |
+
price: 19.99,
|
532 |
+
description: "Service DNS haute performance avec résolution ultra-rapide et protection DDoS intégrée."
|
533 |
+
}
|
534 |
+
};
|
535 |
+
|
536 |
+
// Cart data
|
537 |
+
let cart = [];
|
538 |
+
let currentProduct = null;
|
539 |
+
|
540 |
+
// Show login modal on page load
|
541 |
+
document.addEventListener('DOMContentLoaded', function() {
|
542 |
+
document.getElementById('login-modal').classList.remove('hidden');
|
543 |
+
});
|
544 |
+
|
545 |
+
// Handle login
|
546 |
+
function handleLogin(event) {
|
547 |
+
event.preventDefault();
|
548 |
+
const email = document.getElementById('login-email').value;
|
549 |
+
const password = document.getElementById('login-password').value;
|
550 |
+
|
551 |
+
if (adminCredentials[email] && adminCredentials[email] === password) {
|
552 |
+
// Successful login
|
553 |
+
document.getElementById('login-modal').classList.add('hidden');
|
554 |
+
document.getElementById('main-content').classList.remove('hidden');
|
555 |
+
|
556 |
+
// Update profile info
|
557 |
+
document.getElementById('admin-name').textContent = email.split('@')[0];
|
558 |
+
document.getElementById('profile-name').textContent = email.split('@')[0];
|
559 |
+
document.getElementById('profile-email').textContent = email;
|
560 |
+
|
561 |
+
// Pre-fill payment methods for admin
|
562 |
+
document.getElementById('paypal-email').value = email;
|
563 |
+
document.getElementById('card-number').value = '4242 4242 4242 4242';
|
564 |
+
document.getElementById('expiry-date').value = '12/25';
|
565 |
+
document.getElementById('cvc').value = '123';
|
566 |
+
|
567 |
+
// Add some sample cart items
|
568 |
+
addToCart('domains');
|
569 |
+
addToCart('ssl');
|
570 |
+
updateCart();
|
571 |
+
} else {
|
572 |
+
// Failed login
|
573 |
+
document.getElementById('login-error').classList.remove('hidden');
|
574 |
+
setTimeout(() => {
|
575 |
+
document.getElementById('login-error').classList.add('hidden');
|
576 |
+
}, 3000);
|
577 |
+
}
|
578 |
+
}
|
579 |
+
|
580 |
+
function closeLoginModal() {
|
581 |
+
document.getElementById('login-modal').classList.add('hidden');
|
582 |
+
}
|
583 |
+
|
584 |
+
// Toggle notification dropdown
|
585 |
+
document.getElementById('notification-btn').addEventListener('click', function(e) {
|
586 |
+
e.preventDefault();
|
587 |
+
e.stopPropagation();
|
588 |
+
document.getElementById('notification-dropdown').classList.toggle('hidden');
|
589 |
+
document.getElementById('profile-dropdown').classList.add('hidden');
|
590 |
+
});
|
591 |
+
|
592 |
+
// Toggle profile dropdown
|
593 |
+
document.getElementById('profile-btn').addEventListener('click', function(e) {
|
594 |
+
e.preventDefault();
|
595 |
+
e.stopPropagation();
|
596 |
+
document.getElementById('profile-dropdown').classList.toggle('hidden');
|
597 |
+
document.getElementById('notification-dropdown').classList.add('hidden');
|
598 |
+
});
|
599 |
+
|
600 |
+
// Close dropdowns when clicking outside
|
601 |
+
document.addEventListener('click', function() {
|
602 |
+
document.getElementById('notification-dropdown').classList.add('hidden');
|
603 |
+
document.getElementById('profile-dropdown').classList.add('hidden');
|
604 |
+
});
|
605 |
+
|
606 |
+
// Prevent dropdown from closing when clicking inside
|
607 |
+
document.getElementById('notification-dropdown').addEventListener('click', function(e) {
|
608 |
+
e.stopPropagation();
|
609 |
+
});
|
610 |
+
|
611 |
+
document.getElementById('profile-dropdown').addEventListener('click', function(e) {
|
612 |
+
e.stopPropagation();
|
613 |
+
});
|
614 |
+
|
615 |
+
// Handle PayPal form submission
|
616 |
+
document.getElementById('paypal-form').addEventListener('submit', function(e) {
|
617 |
+
e.preventDefault();
|
618 |
+
const email = document.getElementById('paypal-email').value;
|
619 |
+
const submitBtn = this.querySelector('button[type="submit"]');
|
620 |
+
|
621 |
+
// Add active state to button
|
622 |
+
submitBtn.classList.add('btn-active');
|
623 |
+
|
624 |
+
// Simulate API call
|
625 |
+
setTimeout(() => {
|
626 |
+
document.getElementById('paypal-status-text').textContent = 'Configuré';
|
627 |
+
document.getElementById('paypal-status-text').className = 'px-2 py-1 rounded text-xs font-medium bg-green-100 text-green-800';
|
628 |
+
|
629 |
+
document.getElementById('paypal-success').classList.remove('hidden');
|
630 |
+
setTimeout(() => {
|
631 |
+
document.getElementById('paypal-success').classList.add('hidden');
|
632 |
+
}, 3000);
|
633 |
+
|
634 |
+
// Remove active state after animation
|
635 |
+
setTimeout(() => {
|
636 |
+
submitBtn.classList.remove('btn-active');
|
637 |
+
}, 200);
|
638 |
+
}, 1000);
|
639 |
+
});
|
640 |
+
|
641 |
+
// Handle Stripe form submission
|
642 |
+
document.getElementById('stripe-form').addEventListener('submit', function(e) {
|
643 |
+
e.preventDefault();
|
644 |
+
const cardNumber = document.getElementById('card-number').value;
|
645 |
+
const expiryDate = document.getElementById('expiry-date').value;
|
646 |
+
const cvc = document.getElementById('cvc').value;
|
647 |
+
const submitBtn = this.querySelector('button[type="submit"]');
|
648 |
+
|
649 |
+
// Add active state to button
|
650 |
+
submitBtn.classList.add('btn-active');
|
651 |
+
|
652 |
+
// Simulate API call
|
653 |
+
setTimeout(() => {
|
654 |
+
document.getElementById('stripe-status-text').textContent = 'Configuré';
|
655 |
+
document.getElementById('stripe-status-text').className = 'px-2 py-1 rounded text-xs font-medium bg-green-100 text-green-800';
|
656 |
+
|
657 |
+
document.getElementById('stripe-success').classList.remove('hidden');
|
658 |
+
setTimeout(() => {
|
659 |
+
document.getElementById('stripe-success').classList.add('hidden');
|
660 |
+
}, 3000);
|
661 |
+
|
662 |
+
// Remove active state after animation
|
663 |
+
setTimeout(() => {
|
664 |
+
submitBtn.classList.remove('btn-active');
|
665 |
+
}, 200);
|
666 |
+
}, 1000);
|
667 |
+
});
|
668 |
+
|
669 |
+
// Add click effect to all buttons and clickable elements
|
670 |
+
document.querySelectorAll('button, [onclick], .cursor-pointer').forEach(btn => {
|
671 |
+
btn.addEventListener('mousedown', function() {
|
672 |
+
this.classList.add('btn-active');
|
673 |
+
});
|
674 |
+
|
675 |
+
btn.addEventListener('mouseup', function() {
|
676 |
+
setTimeout(() => {
|
677 |
+
this.classList.remove('btn-active');
|
678 |
+
}, 200);
|
679 |
+
});
|
680 |
+
|
681 |
+
btn.addEventListener('mouseleave', function() {
|
682 |
+
this.classList.remove('btn-active');
|
683 |
+
});
|
684 |
+
});
|
685 |
+
|
686 |
+
// Product Modal Functions
|
687 |
+
function showProductModal(product) {
|
688 |
+
currentProduct = product;
|
689 |
+
const productData = products[product];
|
690 |
+
|
691 |
+
document.getElementById('product-modal-title').textContent = productData.name;
|
692 |
+
document.getElementById('product-modal-content').innerHTML = `
|
693 |
+
<p class="mb-4">${productData.description}</p>
|
694 |
+
<div class="bg-gray-50 p-4 rounded-md">
|
695 |
+
<div class="flex justify-between items-center">
|
696 |
+
<span class="font-medium">Prix:</span>
|
697 |
+
<span class="text-xl font-bold text-purple-600">€${productData.price.toFixed(2)}</span>
|
698 |
+
</div>
|
699 |
+
</div>
|
700 |
+
`;
|
701 |
+
document.getElementById('product-modal').classList.remove('hidden');
|
702 |
+
}
|
703 |
+
|
704 |
+
function addToCart(productId = null) {
|
705 |
+
const product = productId ? products[productId] : products[currentProduct];
|
706 |
+
|
707 |
+
// Check if product already in cart
|
708 |
+
const existingItem = cart.find(item => item.id === (productId || currentProduct));
|
709 |
+
|
710 |
+
if (existingItem) {
|
711 |
+
existingItem.quantity += 1;
|
712 |
+
} else {
|
713 |
+
cart.push({
|
714 |
+
id: productId || currentProduct,
|
715 |
+
name: product.name,
|
716 |
+
price: product.price,
|
717 |
+
quantity: 1
|
718 |
+
});
|
719 |
+
}
|
720 |
+
|
721 |
+
updateCart();
|
722 |
+
closeModal();
|
723 |
+
}
|
724 |
+
|
725 |
+
function updateCart() {
|
726 |
+
const cartItemsContainer = document.getElementById('cart-items');
|
727 |
+
cartItemsContainer.innerHTML = '';
|
728 |
+
|
729 |
+
let total = 0;
|
730 |
+
|
731 |
+
cart.forEach(item => {
|
732 |
+
const itemTotal = item.price * item.quantity;
|
733 |
+
total += itemTotal;
|
734 |
+
|
735 |
+
const row = document.createElement('tr');
|
736 |
+
row.className = 'cart-item';
|
737 |
+
row.innerHTML = `
|
738 |
+
<td class="px-6 py-4 whitespace-nowrap">${item.name}</td>
|
739 |
+
<td class="px-6 py-4 whitespace-nowrap">€${item.price.toFixed(2)}</td>
|
740 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
741 |
+
<div class="flex items-center">
|
742 |
+
<button onclick="updateQuantity('${item.id}', -1)" class="bg-gray-200 hover:bg-gray-300 text-gray-800 py-1 px-2 rounded-l">
|
743 |
+
-
|
744 |
+
</button>
|
745 |
+
<span class="px-2 py-1 bg-gray-100">${item.quantity}</span>
|
746 |
+
<button onclick="updateQuantity('${item.id}', 1)" class="bg-gray-200 hover:bg-gray-300 text-gray-800 py-1 px-2 rounded-r">
|
747 |
+
+
|
748 |
+
</button>
|
749 |
+
</div>
|
750 |
+
</td>
|
751 |
+
<td class="px-6 py-4 whitespace-nowrap">€${itemTotal.toFixed(2)}</td>
|
752 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
753 |
+
<button onclick="removeFromCart('${item.id}')" class="text-red-600 hover:text-red-800">
|
754 |
+
<i class="fas fa-trash-alt"></i>
|
755 |
+
</button>
|
756 |
+
</td>
|
757 |
+
`;
|
758 |
+
|
759 |
+
cartItemsContainer.appendChild(row);
|
760 |
+
});
|
761 |
+
|
762 |
+
document.getElementById('cart-total').textContent = `€${total.toFixed(2)}`;
|
763 |
+
}
|
764 |
+
|
765 |
+
function updateQuantity(productId, change) {
|
766 |
+
const item = cart.find(item => item.id === productId);
|
767 |
+
if (item) {
|
768 |
+
item.quantity += change;
|
769 |
+
|
770 |
+
if (item.quantity <= 0) {
|
771 |
+
removeFromCart(productId);
|
772 |
+
} else {
|
773 |
+
updateCart();
|
774 |
+
}
|
775 |
+
}
|
776 |
+
}
|
777 |
+
|
778 |
+
function removeFromCart(productId) {
|
779 |
+
cart = cart.filter(item => item.id !== productId);
|
780 |
+
updateCart();
|
781 |
+
}
|
782 |
+
|
783 |
+
function clearCart() {
|
784 |
+
cart = [];
|
785 |
+
updateCart();
|
786 |
+
}
|
787 |
+
|
788 |
+
function checkout() {
|
789 |
+
if (cart.length === 0) {
|
790 |
+
alert('Votre panier est vide!');
|
791 |
+
return;
|
792 |
+
}
|
793 |
+
|
794 |
+
const total = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
|
795 |
+
document.getElementById('checkout-total').textContent = `€${total.toFixed(2)}`;
|
796 |
+
document.getElementById('checkout-modal').classList.remove('hidden');
|
797 |
+
}
|
798 |
+
|
799 |
+
function closeCheckoutModal() {
|
800 |
+
document.getElementById('checkout-modal').classList.add('hidden');
|
801 |
+
}
|
802 |
+
|
803 |
+
function processPayment() {
|
804 |
+
const method = document.getElementById('payment-method').value;
|
805 |
+
const total = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
|
806 |
+
|
807 |
+
alert(`Paiement de €${total.toFixed(2)} effectué via ${method === 'paypal' ? 'PayPal' : 'Carte de crédit'}`);
|
808 |
+
|
809 |
+
// Clear cart after payment
|
810 |
+
clearCart();
|
811 |
+
closeCheckoutModal();
|
812 |
+
}
|
813 |
+
|
814 |
+
// Earnings Modal Functions
|
815 |
+
function showEarningsDetails(type) {
|
816 |
+
let title = '';
|
817 |
+
let content = '';
|
818 |
+
|
819 |
+
switch(type) {
|
820 |
+
case 'total':
|
821 |
+
title = 'Total des Revenus';
|
822 |
+
content = `
|
823 |
+
<p class="mb-4">Vos revenus totaux depuis le début :</p>
|
824 |
+
<div class="text-4xl font-bold text-purple-600 mb-4">€0.00</div>
|
825 |
+
<p class="text-sm text-gray-500">Les revenus sont mis à jour toutes les 24 heures.</p>
|
826 |
+
`;
|
827 |
+
break;
|
828 |
+
case 'paypal':
|
829 |
+
title = 'Revenus PayPal';
|
830 |
+
content = `
|
831 |
+
<p class="mb-4">Vos revenus via PayPal :</p>
|
832 |
+
<div class="text-4xl font-bold text-blue-500 mb-4">€0.00</div>
|
833 |
+
<p class="text-sm text-gray-500">Les paiements PayPal sont traités instantanément.</p>
|
834 |
+
`;
|
835 |
+
break;
|
836 |
+
case 'stripe':
|
837 |
+
title = 'Revenus Stripe';
|
838 |
+
content = `
|
839 |
+
<p class="mb-4">Vos revenus via Stripe :</p>
|
840 |
+
<div class="text-4xl font-bold text-purple-500 mb-4">€0.00</div>
|
841 |
+
<p class="text-sm text-gray-500">Les paiements Stripe sont traités sous 2-3 jours ouvrables.</p>
|
842 |
+
`;
|
843 |
+
break;
|
844 |
+
}
|
845 |
+
|
846 |
+
document.getElementById('earnings-modal-title').textContent = title;
|
847 |
+
document.getElementById('earnings-modal-content').innerHTML = content;
|
848 |
+
document.getElementById('earnings-modal').classList.remove('hidden');
|
849 |
+
}
|
850 |
+
|
851 |
+
// Close modal
|
852 |
+
function closeModal() {
|
853 |
+
document.getElementById('product-modal').classList.add('hidden');
|
854 |
+
document.getElementById('earnings-modal').classList.add('hidden');
|
855 |
+
}
|
856 |
+
|
857 |
+
// Navigation functions
|
858 |
+
function navigateTo(page) {
|
859 |
+
alert(`Navigation vers ${page} (simulée)`);
|
860 |
+
document.getElementById('profile-dropdown').classList.add('hidden');
|
861 |
+
}
|
862 |
+
|
863 |
+
function logout() {
|
864 |
+
alert('Déconnexion (simulée)');
|
865 |
+
document.getElementById('profile-dropdown').classList.add('hidden');
|
866 |
+
document.getElementById('main-content').classList.add('hidden');
|
867 |
+
document.getElementById('login-modal').classList.remove('hidden');
|
868 |
+
}
|
869 |
+
|
870 |
+
function markAllAsRead() {
|
871 |
+
alert('Toutes les notifications marquées comme lues (simulé)');
|
872 |
+
document.getElementById('notification-dropdown').classList.add('hidden');
|
873 |
+
}
|
874 |
+
|
875 |
+
function showNotification(type) {
|
876 |
+
alert(`Affichage de la notification ${type} (simulé)`);
|
877 |
+
document.getElementById('notification-dropdown').classList.add('hidden');
|
878 |
+
}
|
879 |
+
|
880 |
+
function showAllNotifications() {
|
881 |
+
alert('Affichage de toutes les notifications (simulé)');
|
882 |
+
document.getElementById('notification-dropdown').classList.add('hidden');
|
883 |
+
}
|
884 |
+
|
885 |
+
function refreshTransactions() {
|
886 |
+
alert('Actualisation des transactions (simulée)');
|
887 |
+
}
|
888 |
+
|
889 |
+
function showTransactions() {
|
890 |
+
alert('Affichage de l\'historique des transactions (simulé)');
|
891 |
+
}
|
892 |
+
</script>
|
893 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=docto41/hyper-dns-pro" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
894 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
enregistrement domaine, ssl , serveur dns, etc.. en automatique , avec enregistrement au registraire directement dans la seconde qui suit sur toutes les navigateur du monde , serveur dns les plus puissant et plus rapide du monde a la seconde pres , avec référencement google searche console et google analytique directement robotisé le tout sur systeme sofistiqué 24/24 et 7jour sur 7jour le tout automatisé
|
2 |
+
probleme des boutons non cliquable veuillez corriger toutes les erreur des boutons qui ne foctionne pas activer toutes les boutons non fonctionnel , réparer toute et refaire une mise a jours pour toute corriger les problelme de fonctionnement :ajouter bouton paypal , stripe , avec mes information pour etre payer , ajouter panier d'achat , obligatio de sabonner pour utiliser le site gratuitement : je veux acces gratuite pour moi seulement administrateur : [email protected] : Admin270574@ et [email protected] : Admin270574@
|
3 |
+
je veux acces gratuite pour moi seulement administrateur : [email protected] : Admin270574@ et [email protected] : Admin270574@
|
4 |
+
impossible de se connecter
|
5 |
+
le bouton :Accès Restreint Vous devez vous abonner pour utiliser ce service. Seuls les administrateurs ont accès gratuitement. Se connecter: nest pas cliquable et fonctionne pas
|
6 |
+
je veux acces gratuit a toute les produit , je veux entrer mes information paypal et stripe
|
7 |
+
je peux pas acceder au produit , creer un tableau de bord pour entrer mes information paypal et stripe pour etre payer
|
8 |
+
aucun bouton fonctionne , veuillez corriger
|
9 |
+
toutes les bouton du tableau de bord ne fonctionne pas
|
10 |
+
aucun bouton du tableau de bord fonctionne
|
11 |
+
aucun bouton du tableau de bors sont cliquable
|
12 |
+
ouvrer toutes les bouton dans une nouvel fenetre
|
13 |
+
ouvrer toutes les bouton dans une nouvel page
|
14 |
+
active toutes bouton , recongigue
|
15 |
+
activer les bouton
|
16 |
+
probleme des boutons non cliquable veuillez corriger toutes les erreur des boutons qui ne foctionne pas activer toutes les boutons non fonctionnel , réparer toute et refaire une mise a jours pour toute corriger les problelme de fonctionnement :ajouter bouton paypal , stripe , avec mes information pour etre payer , ajouter panier d'achat , obligatio de sabonner pour utiliser le site gratuitement : je veux acces gratuite pour moi seulement administrateur : [email protected] : Admin270574@ et [email protected] : Admin270574@
|