Spaces:
Running
Running
undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +423 -19
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: moneytransfert
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: green
|
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,423 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>MoneyTransfer - Envoyez de l'argent facilement</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, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
|
12 |
+
}
|
13 |
+
.card-hover:hover {
|
14 |
+
transform: translateY(-5px);
|
15 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
16 |
+
}
|
17 |
+
.transition-all {
|
18 |
+
transition: all 0.3s ease;
|
19 |
+
}
|
20 |
+
.input-focus:focus {
|
21 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
|
22 |
+
}
|
23 |
+
</style>
|
24 |
+
</head>
|
25 |
+
<body class="bg-gray-50 font-sans">
|
26 |
+
<!-- Header -->
|
27 |
+
<header class="gradient-bg text-white shadow-lg">
|
28 |
+
<div class="container mx-auto px-4 py-6">
|
29 |
+
<div class="flex justify-between items-center">
|
30 |
+
<div class="flex items-center space-x-2">
|
31 |
+
<i class="fas fa-money-bill-wave text-3xl"></i>
|
32 |
+
<h1 class="text-2xl font-bold">MoneyTransfer</h1>
|
33 |
+
</div>
|
34 |
+
<nav class="hidden md:flex space-x-8">
|
35 |
+
<a href="#" class="hover:text-blue-200 transition-all">Accueil</a>
|
36 |
+
<a href="#" class="hover:text-blue-200 transition-all">Envoyer</a>
|
37 |
+
<a href="#" class="hover:text-blue-200 transition-all">Suivre</a>
|
38 |
+
<a href="#" class="hover:text-blue-200 transition-all">Tarifs</a>
|
39 |
+
<a href="#" class="hover:text-blue-200 transition-all">Contact</a>
|
40 |
+
</nav>
|
41 |
+
<div class="flex items-center space-x-4">
|
42 |
+
<button class="bg-white text-blue-600 px-4 py-2 rounded-full font-medium hover:bg-blue-50 transition-all">
|
43 |
+
Connexion
|
44 |
+
</button>
|
45 |
+
<button class="md:hidden text-2xl" id="menuBtn">
|
46 |
+
<i class="fas fa-bars"></i>
|
47 |
+
</button>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
</header>
|
52 |
+
|
53 |
+
<!-- Mobile Menu -->
|
54 |
+
<div class="hidden bg-white shadow-lg absolute w-full z-10" id="mobileMenu">
|
55 |
+
<div class="container mx-auto px-4 py-3 flex flex-col space-y-3">
|
56 |
+
<a href="#" class="py-2 border-b border-gray-100">Accueil</a>
|
57 |
+
<a href="#" class="py-2 border-b border-gray-100">Envoyer</a>
|
58 |
+
<a href="#" class="py-2 border-b border-gray-100">Suivre</a>
|
59 |
+
<a href="#" class="py-2 border-b border-gray-100">Tarifs</a>
|
60 |
+
<a href="#" class="py-2">Contact</a>
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
|
64 |
+
<!-- Hero Section -->
|
65 |
+
<section class="gradient-bg text-white py-16">
|
66 |
+
<div class="container mx-auto px-4 flex flex-col md:flex-row items-center">
|
67 |
+
<div class="md:w-1/2 mb-10 md:mb-0">
|
68 |
+
<h2 class="text-4xl md:text-5xl font-bold mb-6">Envoyez de l'argent dans le monde entier</h2>
|
69 |
+
<p class="text-xl mb-8">Transferts rapides, sécurisés et à des tarifs compétitifs. Plus de 500 000 points de retrait dans 200 pays.</p>
|
70 |
+
<div class="flex space-x-4">
|
71 |
+
<button class="bg-white text-blue-600 px-6 py-3 rounded-full font-medium hover:bg-blue-50 transition-all">
|
72 |
+
Envoyer maintenant
|
73 |
+
</button>
|
74 |
+
<button class="border-2 border-white text-white px-6 py-3 rounded-full font-medium hover:bg-white hover:text-blue-600 transition-all">
|
75 |
+
Télécharger l'app
|
76 |
+
</button>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
<div class="md:w-1/2 flex justify-center">
|
80 |
+
<div class="bg-white rounded-2xl shadow-2xl p-6 w-full max-w-md">
|
81 |
+
<h3 class="text-2xl font-bold text-gray-800 mb-6">Nouveau transfert</h3>
|
82 |
+
|
83 |
+
<form id="transferForm">
|
84 |
+
<div class="mb-4">
|
85 |
+
<label class="block text-gray-700 mb-2" for="fromCountry">De</label>
|
86 |
+
<div class="relative">
|
87 |
+
<select id="fromCountry" class="w-full p-3 border border-gray-300 rounded-lg input-focus appearance-none">
|
88 |
+
<option value="FR">France</option>
|
89 |
+
<option value="US">États-Unis</option>
|
90 |
+
<option value="UK">Royaume-Uni</option>
|
91 |
+
<option value="DE">Allemagne</option>
|
92 |
+
</select>
|
93 |
+
<div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
|
94 |
+
<i class="fas fa-chevron-down text-gray-500"></i>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
|
99 |
+
<div class="mb-4">
|
100 |
+
<label class="block text-gray-700 mb-2" for="toCountry">À</label>
|
101 |
+
<div class="relative">
|
102 |
+
<select id="toCountry" class="w-full p-3 border border-gray-300 rounded-lg input-focus appearance-none">
|
103 |
+
<option value="US">États-Unis</option>
|
104 |
+
<option value="FR">France</option>
|
105 |
+
<option value="UK">Royaume-Uni</option>
|
106 |
+
<option value="DE">Allemagne</option>
|
107 |
+
</select>
|
108 |
+
<div class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none">
|
109 |
+
<i class="fas fa-chevron-down text-gray-500"></i>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
|
114 |
+
<div class="mb-4">
|
115 |
+
<label class="block text-gray-700 mb-2" for="amount">Montant</label>
|
116 |
+
<div class="relative">
|
117 |
+
<span class="absolute left-3 top-3 text-gray-500">€</span>
|
118 |
+
<input type="number" id="amount" class="w-full p-3 pl-8 border border-gray-300 rounded-lg input-focus" placeholder="100">
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
|
122 |
+
<div class="mb-6">
|
123 |
+
<label class="block text-gray-700 mb-2" for="receiveAmount">Montant reçu</label>
|
124 |
+
<div class="relative">
|
125 |
+
<span class="absolute left-3 top-3 text-gray-500">$</span>
|
126 |
+
<input type="number" id="receiveAmount" class="w-full p-3 pl-8 border border-gray-300 rounded-lg bg-gray-100" placeholder="107.50" readonly>
|
127 |
+
</div>
|
128 |
+
<p class="text-sm text-gray-500 mt-1">Taux: 1 EUR = 1.075 USD</p>
|
129 |
+
</div>
|
130 |
+
|
131 |
+
<button type="submit" class="w-full bg-blue-600 text-white p-3 rounded-lg font-medium hover:bg-blue-700 transition-all">
|
132 |
+
Continuer <i class="fas fa-arrow-right ml-2"></i>
|
133 |
+
</button>
|
134 |
+
</form>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
</section>
|
139 |
+
|
140 |
+
<!-- Features Section -->
|
141 |
+
<section class="py-16 bg-white">
|
142 |
+
<div class="container mx-auto px-4">
|
143 |
+
<h2 class="text-3xl font-bold text-center mb-12">Pourquoi choisir MoneyTransfer ?</h2>
|
144 |
+
|
145 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
146 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover transition-all">
|
147 |
+
<div class="text-blue-600 mb-4">
|
148 |
+
<i class="fas fa-bolt text-4xl"></i>
|
149 |
+
</div>
|
150 |
+
<h3 class="text-xl font-bold mb-3">Transferts rapides</h3>
|
151 |
+
<p class="text-gray-600">Votre argent arrive en quelques minutes dans la plupart des cas, 24h/24 et 7j/7.</p>
|
152 |
+
</div>
|
153 |
+
|
154 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover transition-all">
|
155 |
+
<div class="text-blue-600 mb-4">
|
156 |
+
<i class="fas fa-lock text-4xl"></i>
|
157 |
+
</div>
|
158 |
+
<h3 class="text-xl font-bold mb-3">Sécurité garantie</h3>
|
159 |
+
<p class="text-gray-600">Nous utilisons les dernières technologies de cryptage pour protéger vos données.</p>
|
160 |
+
</div>
|
161 |
+
|
162 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover transition-all">
|
163 |
+
<div class="text-blue-600 mb-4">
|
164 |
+
<i class="fas fa-euro-sign text-4xl"></i>
|
165 |
+
</div>
|
166 |
+
<h3 class="text-xl font-bold mb-3">Tarifs compétitifs</h3>
|
167 |
+
<p class="text-gray-600">Des frais bas et des taux de change avantageux pour tous vos transferts.</p>
|
168 |
+
</div>
|
169 |
+
</div>
|
170 |
+
</div>
|
171 |
+
</section>
|
172 |
+
|
173 |
+
<!-- Recent Transactions -->
|
174 |
+
<section class="py-16 bg-gray-50">
|
175 |
+
<div class="container mx-auto px-4">
|
176 |
+
<h2 class="text-3xl font-bold text-center mb-12">Vos transferts récents</h2>
|
177 |
+
|
178 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden max-w-4xl mx-auto">
|
179 |
+
<div class="overflow-x-auto">
|
180 |
+
<table class="w-full">
|
181 |
+
<thead class="bg-gray-100">
|
182 |
+
<tr>
|
183 |
+
<th class="py-3 px-6 text-left">Destinataire</th>
|
184 |
+
<th class="py-3 px-6 text-left">Montant</th>
|
185 |
+
<th class="py-3 px-6 text-left">Statut</th>
|
186 |
+
<th class="py-3 px-6 text-left">Date</th>
|
187 |
+
<th class="py-3 px-6 text-left">Actions</th>
|
188 |
+
</tr>
|
189 |
+
</thead>
|
190 |
+
<tbody id="transactionsList">
|
191 |
+
<!-- Transactions will be added here by JavaScript -->
|
192 |
+
</tbody>
|
193 |
+
</table>
|
194 |
+
</div>
|
195 |
+
|
196 |
+
<div class="p-4 border-t border-gray-200 flex justify-center">
|
197 |
+
<button class="text-blue-600 font-medium hover:text-blue-800 transition-all">
|
198 |
+
Voir tout l'historique <i class="fas fa-chevron-right ml-1"></i>
|
199 |
+
</button>
|
200 |
+
</div>
|
201 |
+
</div>
|
202 |
+
</div>
|
203 |
+
</section>
|
204 |
+
|
205 |
+
<!-- Transfer Modal -->
|
206 |
+
<div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-20" id="transferModal">
|
207 |
+
<div class="bg-white rounded-xl p-6 w-full max-w-md mx-4">
|
208 |
+
<div class="flex justify-between items-center mb-6">
|
209 |
+
<h3 class="text-2xl font-bold">Confirmer le transfert</h3>
|
210 |
+
<button id="closeModal" class="text-gray-500 hover:text-gray-700">
|
211 |
+
<i class="fas fa-times"></i>
|
212 |
+
</button>
|
213 |
+
</div>
|
214 |
+
|
215 |
+
<div class="mb-6">
|
216 |
+
<div class="flex justify-between mb-3">
|
217 |
+
<span class="text-gray-600">Destinataire:</span>
|
218 |
+
<span class="font-medium" id="modalRecipient">John Doe</span>
|
219 |
+
</div>
|
220 |
+
<div class="flex justify-between mb-3">
|
221 |
+
<span class="text-gray-600">Montant envoyé:</span>
|
222 |
+
<span class="font-medium" id="modalAmountSent">100 €</span>
|
223 |
+
</div>
|
224 |
+
<div class="flex justify-between mb-3">
|
225 |
+
<span class="text-gray-600">Montant reçu:</span>
|
226 |
+
<span class="font-medium" id="modalAmountReceived">107.50 $</span>
|
227 |
+
</div>
|
228 |
+
<div class="flex justify-between mb-3">
|
229 |
+
<span class="text-gray-600">Frais:</span>
|
230 |
+
<span class="font-medium" id="modalFees">2.99 €</span>
|
231 |
+
</div>
|
232 |
+
<div class="flex justify-between pt-3 border-t border-gray-200">
|
233 |
+
<span class="text-gray-600">Total:</span>
|
234 |
+
<span class="font-bold text-lg" id="modalTotal">102.99 €</span>
|
235 |
+
</div>
|
236 |
+
</div>
|
237 |
+
|
238 |
+
<div class="flex space-x-4">
|
239 |
+
<button id="cancelTransfer" class="flex-1 border border-gray-300 text-gray-700 p-3 rounded-lg font-medium hover:bg-gray-100 transition-all">
|
240 |
+
Annuler
|
241 |
+
</button>
|
242 |
+
<button id="confirmTransfer" class="flex-1 bg-blue-600 text-white p-3 rounded-lg font-medium hover:bg-blue-700 transition-all">
|
243 |
+
Confirmer
|
244 |
+
</button>
|
245 |
+
</div>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
|
249 |
+
<!-- Success Notification -->
|
250 |
+
<div class="fixed bottom-4 right-4 bg-green-500 text-white px-6 py-3 rounded-lg shadow-lg hidden z-30" id="successNotification">
|
251 |
+
<div class="flex items-center">
|
252 |
+
<i class="fas fa-check-circle mr-3 text-xl"></i>
|
253 |
+
<span>Transfert effectué avec succès !</span>
|
254 |
+
</div>
|
255 |
+
</div>
|
256 |
+
|
257 |
+
<!-- Footer -->
|
258 |
+
<footer class="bg-gray-900 text-white py-12">
|
259 |
+
<div class="container mx-auto px-4">
|
260 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
261 |
+
<div>
|
262 |
+
<h4 class="text-xl font-bold mb-4">MoneyTransfer</h4>
|
263 |
+
<p class="text-gray-400">La solution simple et sécurisée pour envoyer de l'argent à vos proches dans le monde entier.</p>
|
264 |
+
</div>
|
265 |
+
|
266 |
+
<div>
|
267 |
+
<h4 class="text-lg font-bold mb-4">Services</h4>
|
268 |
+
<ul class="space-y-2">
|
269 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition-all">Envoyer de l'argent</a></li>
|
270 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition-all">Suivre un transfert</a></li>
|
271 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition-all">Trouver un point de retrait</a></li>
|
272 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition-all">Tarifs</a></li>
|
273 |
+
</ul>
|
274 |
+
</div>
|
275 |
+
|
276 |
+
<div>
|
277 |
+
<h4 class="text-lg font-bold mb-4">À propos</h4>
|
278 |
+
<ul class="space-y-2">
|
279 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition-all">Notre entreprise</a></li>
|
280 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition-all">Carrières</a></li>
|
281 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition-all">Presse</a></li>
|
282 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition-all">Responsabilité sociale</a></li>
|
283 |
+
</ul>
|
284 |
+
</div>
|
285 |
+
|
286 |
+
<div>
|
287 |
+
<h4 class="text-lg font-bold mb-4">Contact</h4>
|
288 |
+
<ul class="space-y-2">
|
289 |
+
<li class="flex items-center">
|
290 |
+
<i class="fas fa-phone-alt mr-2 text-gray-400"></i>
|
291 |
+
<span class="text-gray-400">+33 1 23 45 67 89</span>
|
292 |
+
</li>
|
293 |
+
<li class="flex items-center">
|
294 |
+
<i class="fas fa-envelope mr-2 text-gray-400"></i>
|
295 |
+
<span class="text-gray-400">[email protected]</span>
|
296 |
+
</li>
|
297 |
+
<li class="flex items-center">
|
298 |
+
<i class="fas fa-map-marker-alt mr-2 text-gray-400"></i>
|
299 |
+
<span class="text-gray-400">Paris, France</span>
|
300 |
+
</li>
|
301 |
+
</ul>
|
302 |
+
</div>
|
303 |
+
</div>
|
304 |
+
|
305 |
+
<div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
|
306 |
+
<p class="text-gray-400 mb-4 md:mb-0">© 2023 MoneyTransfer. Tous droits réservés.</p>
|
307 |
+
<div class="flex space-x-6">
|
308 |
+
<a href="#" class="text-gray-400 hover:text-white transition-all">
|
309 |
+
<i class="fab fa-facebook-f"></i>
|
310 |
+
</a>
|
311 |
+
<a href="#" class="text-gray-400 hover:text-white transition-all">
|
312 |
+
<i class="fab fa-twitter"></i>
|
313 |
+
</a>
|
314 |
+
<a href="#" class="text-gray-400 hover:text-white transition-all">
|
315 |
+
<i class="fab fa-instagram"></i>
|
316 |
+
</a>
|
317 |
+
<a href="#" class="text-gray-400 hover:text-white transition-all">
|
318 |
+
<i class="fab fa-linkedin-in"></i>
|
319 |
+
</a>
|
320 |
+
</div>
|
321 |
+
</div>
|
322 |
+
</div>
|
323 |
+
</footer>
|
324 |
+
|
325 |
+
<script>
|
326 |
+
// Sample transaction data
|
327 |
+
const transactions = [
|
328 |
+
{
|
329 |
+
id: 1,
|
330 |
+
recipient: "Jean Dupont",
|
331 |
+
amount: "150 €",
|
332 |
+
received: "161.25 $",
|
333 |
+
status: "Complété",
|
334 |
+
date: "15 juin 2023",
|
335 |
+
statusClass: "text-green-500"
|
336 |
+
},
|
337 |
+
{
|
338 |
+
id: 2,
|
339 |
+
recipient: "Marie Martin",
|
340 |
+
amount: "75 €",
|
341 |
+
received: "80.63 $",
|
342 |
+
status: "En cours",
|
343 |
+
date: "10 juin 2023",
|
344 |
+
statusClass: "text-yellow-500"
|
345 |
+
},
|
346 |
+
{
|
347 |
+
id: 3,
|
348 |
+
recipient: "Pierre Lambert",
|
349 |
+
amount: "200 €",
|
350 |
+
received: "215.00 $",
|
351 |
+
status: "Complété",
|
352 |
+
date: "5 juin 2023",
|
353 |
+
statusClass: "text-green-500"
|
354 |
+
}
|
355 |
+
];
|
356 |
+
|
357 |
+
// DOM Elements
|
358 |
+
const menuBtn = document.getElementById('menuBtn');
|
359 |
+
const mobileMenu = document.getElementById('mobileMenu');
|
360 |
+
const transferForm = document.getElementById('transferForm');
|
361 |
+
const transactionsList = document.getElementById('transactionsList');
|
362 |
+
const transferModal = document.getElementById('transferModal');
|
363 |
+
const closeModal = document.getElementById('closeModal');
|
364 |
+
const cancelTransfer = document.getElementById('cancelTransfer');
|
365 |
+
const confirmTransfer = document.getElementById('confirmTransfer');
|
366 |
+
const successNotification = document.getElementById('successNotification');
|
367 |
+
const amountInput = document.getElementById('amount');
|
368 |
+
const receiveAmountInput = document.getElementById('receiveAmount');
|
369 |
+
|
370 |
+
// Toggle mobile menu
|
371 |
+
menuBtn.addEventListener('click', () => {
|
372 |
+
mobileMenu.classList.toggle('hidden');
|
373 |
+
});
|
374 |
+
|
375 |
+
// Close mobile menu when clicking outside
|
376 |
+
document.addEventListener('click', (e) => {
|
377 |
+
if (!mobileMenu.contains(e.target) && e.target !== menuBtn) {
|
378 |
+
mobileMenu.classList.add('hidden');
|
379 |
+
}
|
380 |
+
});
|
381 |
+
|
382 |
+
// Populate transactions table
|
383 |
+
function renderTransactions() {
|
384 |
+
transactionsList.innerHTML = '';
|
385 |
+
transactions.forEach(transaction => {
|
386 |
+
const row = document.createElement('tr');
|
387 |
+
row.className = 'hover:bg-gray-50 border-b border-gray-100';
|
388 |
+
row.innerHTML = `
|
389 |
+
<td class="py-4 px-6">${transaction.recipient}</td>
|
390 |
+
<td class="py-4 px-6">${transaction.amount}</td>
|
391 |
+
<td class="py-4 px-6 ${transaction.statusClass}">${transaction.status}</td>
|
392 |
+
<td class="py-4 px-6">${transaction.date}</td>
|
393 |
+
<td class="py-4 px-6">
|
394 |
+
<button class="text-blue-600 hover:text-blue-800 transition-all">
|
395 |
+
<i class="fas fa-redo"></i>
|
396 |
+
</button>
|
397 |
+
</td>
|
398 |
+
`;
|
399 |
+
transactionsList.appendChild(row);
|
400 |
+
});
|
401 |
+
}
|
402 |
+
|
403 |
+
// Calculate received amount when amount changes
|
404 |
+
amountInput.addEventListener('input', () => {
|
405 |
+
const amount = parseFloat(amountInput.value) || 0;
|
406 |
+
const exchangeRate = 1.075; // Sample exchange rate
|
407 |
+
receiveAmountInput.value = (amount * exchangeRate).toFixed(2);
|
408 |
+
});
|
409 |
+
|
410 |
+
// Form submission
|
411 |
+
transferForm.addEventListener('submit', (e) => {
|
412 |
+
e.preventDefault();
|
413 |
+
|
414 |
+
// Get form values
|
415 |
+
const fromCountry = document.getElementById('fromCountry').value;
|
416 |
+
const toCountry = document.getElementById('toCountry').value;
|
417 |
+
const amount = amountInput.value;
|
418 |
+
const receiveAmount = receiveAmountInput.value;
|
419 |
+
|
420 |
+
// Update modal with form values
|
421 |
+
document.getElementById('modal
|
422 |
+
<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=Madaliou/moneytransfert" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
423 |
+
</html>
|