Ashusinghhhh commited on
Commit
2e80faa
·
verified ·
1 Parent(s): 5e1756b

Make a real application like paytm which is downloadable in my device also add all the working features of paytm and work all the functions properly like scanning qr sending money got reward and options of adding bank account. Also add the money sending sound when transaction successfully completed - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +385 -18
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Playstore
3
- emoji: 👁
4
- colorFrom: blue
5
- colorTo: blue
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: playstore
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,386 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Paytm - Secure Digital Payments</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
10
+ <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <style>
14
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
15
+ body {
16
+ font-family: 'Inter', sans-serif;
17
+ background-color: #f5f7fa;
18
+ }
19
+ .paytm-blue {
20
+ background-color: #00baf2;
21
+ }
22
+ .paytm-blue-text {
23
+ color: #00baf2;
24
+ }
25
+ .qr-scanner {
26
+ animation: pulse 2s infinite;
27
+ }
28
+ @keyframes pulse {
29
+ 0% { box-shadow: 0 0 0 0 rgba(0, 186, 242, 0.4); }
30
+ 70% { box-shadow: 0 0 0 15px rgba(0, 186, 242, 0); }
31
+ 100% { box-shadow: 0 0 0 0 rgba(0, 186, 242, 0); }
32
+ }
33
+ .transaction-success {
34
+ animation: fadeIn 0.5s ease-in-out;
35
+ }
36
+ @keyframes fadeIn {
37
+ from { opacity: 0; transform: translateY(20px); }
38
+ to { opacity: 1; transform: translateY(0); }
39
+ }
40
+ </style>
41
+ </head>
42
+ <body class="bg-gray-100">
43
+ <!-- Header -->
44
+ <header class="paytm-blue text-white py-3 px-4 sticky top-0 z-50 shadow-md">
45
+ <div class="flex justify-between items-center max-w-6xl mx-auto">
46
+ <div class="flex items-center space-x-2">
47
+ <i data-feather="smartphone" class="w-6 h-6"></i>
48
+ <h1 class="text-xl font-bold">Paytm</h1>
49
+ </div>
50
+ <div class="flex items-center space-x-4">
51
+ <button class="bg-white paytm-blue-text px-3 py-1 rounded-full text-sm font-medium">Sign In</button>
52
+ <i data-feather="bell" class="w-5 h-5"></i>
53
+ </div>
54
+ </div>
55
+ </header>
56
+
57
+ <!-- Wallet Balance -->
58
+ <div class="bg-white shadow-sm py-6 px-4">
59
+ <div class="max-w-6xl mx-auto">
60
+ <div class="flex justify-between items-center">
61
+ <div>
62
+ <p class="text-gray-500 text-sm">Paytm Wallet Balance</p>
63
+ <div class="flex items-center mt-1">
64
+ <span class="text-2xl font-bold">₹5,000</span>
65
+ <button class="ml-3 bg-gray-100 text-gray-700 px-2 py-1 rounded-full text-xs flex items-center">
66
+ <i data-feather="refresh-cw" class="w-3 h-3 mr-1"></i> Refresh
67
+ </button>
68
+ </div>
69
+ </div>
70
+ <button class="bg-yellow-400 text-black px-4 py-2 rounded-full font-medium flex items-center">
71
+ <i data-feather="plus" class="w-4 h-4 mr-1"></i> Add Money
72
+ </button>
73
+ </div>
74
+ </div>
75
+ </div>
76
+
77
+ <!-- Quick Actions -->
78
+ <div class="bg-white mt-4 py-4 px-4 shadow-sm">
79
+ <div class="max-w-6xl mx-auto">
80
+ <h2 class="text-lg font-semibold mb-4">Quick Actions</h2>
81
+ <div class="grid grid-cols-4 gap-4 text-center">
82
+ <button onclick="showPaymentModal()" class="flex flex-col items-center">
83
+ <div class="bg-blue-100 p-3 rounded-full mb-2">
84
+ <i data-feather="send" class="w-6 h-6 text-blue-600"></i>
85
+ </div>
86
+ <span class="text-xs">Send Money</span>
87
+ </button>
88
+ <button onclick="showQRScanner()" class="flex flex-col items-center">
89
+ <div class="bg-green-100 p-3 rounded-full mb-2">
90
+ <i data-feather="maximize" class="w-6 h-6 text-green-600"></i>
91
+ </div>
92
+ <span class="text-xs">Scan QR</span>
93
+ </button>
94
+ <button onclick="showBankModal()" class="flex flex-col items-center">
95
+ <div class="bg-purple-100 p-3 rounded-full mb-2">
96
+ <i data-feather="credit-card" class="w-6 h-6 text-purple-600"></i>
97
+ </div>
98
+ <span class="text-xs">Bank Transfer</span>
99
+ </button>
100
+ <button onclick="showRewards()" class="flex flex-col items-center">
101
+ <div class="bg-yellow-100 p-3 rounded-full mb-2">
102
+ <i data-feather="gift" class="w-6 h-6 text-yellow-600"></i>
103
+ </div>
104
+ <span class="text-xs">Rewards</span>
105
+ </button>
106
+ </div>
107
+ </div>
108
+ </div>
109
+
110
+ <!-- Promotions -->
111
+ <div class="bg-white mt-4 py-4 px-4 shadow-sm">
112
+ <div class="max-w-6xl mx-auto">
113
+ <div class="flex justify-between items-center mb-4">
114
+ <h2 class="text-lg font-semibold">Promotions</h2>
115
+ <button class="text-blue-600 text-sm font-medium">See All</button>
116
+ </div>
117
+ <div class="relative">
118
+ <div class="overflow-x-auto flex space-x-4 pb-2">
119
+ <div class="flex-shrink-0 w-64 bg-gradient-to-r from-blue-500 to-blue-400 rounded-lg p-4 text-white">
120
+ <h3 class="font-bold mb-1">Get ₹100 Cashback</h3>
121
+ <p class="text-xs mb-2">On your first transaction above ₹500</p>
122
+ <button class="bg-white text-blue-600 text-xs px-3 py-1 rounded-full">Claim Now</button>
123
+ </div>
124
+ <div class="flex-shrink-0 w-64 bg-gradient-to-r from-green-500 to-green-400 rounded-lg p-4 text-white">
125
+ <h3 class="font-bold mb-1">Refer & Earn</h3>
126
+ <p class="text-xs mb-2">Get ₹50 for each friend</p>
127
+ <button class="bg-white text-green-600 text-xs px-3 py-1 rounded-full">Invite Now</button>
128
+ </div>
129
+ <div class="flex-shrink-0 w-64 bg-gradient-to-r from-purple-500 to-purple-400 rounded-lg p-4 text-white">
130
+ <h3 class="font-bold mb-1">UPI Cashback</h3>
131
+ <p class="text-xs mb-2">10% cashback on UPI payments</p>
132
+ <button class="bg-white text-purple-600 text-xs px-3 py-1 rounded-full">Shop Now</button>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+
139
+ <!-- More Services -->
140
+ <div class="bg-white mt-4 py-4 px-4 shadow-sm">
141
+ <div class="max-w-6xl mx-auto">
142
+ <h2 class="text-lg font-semibold mb-4">More Services</h2>
143
+ <div class="grid grid-cols-4 gap-4 text-center">
144
+ <button class="flex flex-col items-center">
145
+ <div class="bg-gray-100 p-3 rounded-full mb-2">
146
+ <i data-feather="shopping-bag" class="w-6 h-6 text-gray-600"></i>
147
+ </div>
148
+ <span class="text-xs">Paytm Mall</span>
149
+ </button>
150
+ <button class="flex flex-col items-center">
151
+ <div class="bg-gray-100 p-3 rounded-full mb-2">
152
+ <i data-feather="truck" class="w-6 h-6 text-gray-600"></i>
153
+ </div>
154
+ <span class="text-xs">Travel</span>
155
+ </button>
156
+ <button class="flex flex-col items-center">
157
+ <div class="bg-gray-100 p-3 rounded-full mb-2">
158
+ <i data-feather="film" class="w-6 h-6 text-gray-600"></i>
159
+ </div>
160
+ <span class="text-xs">Movies</span>
161
+ </button>
162
+ <button class="flex flex-col items-center">
163
+ <div class="bg-gray-100 p-3 rounded-full mb-2">
164
+ <i data-feather="tv" class="w-6 h-6 text-gray-600"></i>
165
+ </div>
166
+ <span class="text-xs">Recharge</span>
167
+ </button>
168
+ </div>
169
+ </div>
170
+ </div>
171
+
172
+ <!-- QR Scanner Modal -->
173
+ <div id="qrScannerModal" class="fixed inset-0 bg-black bg-opacity-75 z-50 flex items-center justify-center hidden">
174
+ <div class="bg-white rounded-lg p-6 w-full max-w-md mx-4">
175
+ <div class="flex justify-between items-center mb-4">
176
+ <h3 class="text-lg font-semibold">Scan QR Code</h3>
177
+ <button onclick="hideQRScanner()" class="text-gray-500">
178
+ <i data-feather="x" class="w-6 h-6"></i>
179
+ </button>
180
+ </div>
181
+ <div class="border-4 border-blue-500 rounded-lg p-8 flex items-center justify-center qr-scanner mb-4">
182
+ <i data-feather="maximize" class="w-20 h-20 text-blue-500"></i>
183
+ </div>
184
+ <p class="text-center text-gray-600 mb-4">Point your camera at the QR code to scan</p>
185
+ <button class="w-full bg-blue-600 text-white py-2 rounded-lg font-medium">Enter UPI ID Manually</button>
186
+ </div>
187
+ </div>
188
+
189
+ <!-- Send Money Modal -->
190
+ <div id="paymentModal" class="fixed inset-0 bg-black bg-opacity-75 z-50 flex items-center justify-center hidden">
191
+ <div class="bg-white rounded-lg p-6 w-full max-w-md mx-4">
192
+ <div class="flex justify-between items-center mb-4">
193
+ <h3 class="text-lg font-semibold">Send Money</h3>
194
+ <button onclick="hidePaymentModal()" class="text-gray-500">
195
+ <i data-feather="x" class="w-6 h-6"></i>
196
+ </button>
197
+ </div>
198
+ <div class="mb-4">
199
+ <label class="block text-gray-700 text-sm font-medium mb-1">Enter UPI ID or Mobile Number</label>
200
+ <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="name@upi or 9876543210">
201
+ </div>
202
+ <div class="mb-4">
203
+ <label class="block text-gray-700 text-sm font-medium mb-1">Amount</label>
204
+ <input type="number" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="₹">
205
+ </div>
206
+ <div class="mb-4">
207
+ <label class="block text-gray-700 text-sm font-medium mb-1">Note (Optional)</label>
208
+ <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="What's this for?">
209
+ </div>
210
+ <button onclick="sendMoney()" class="w-full bg-blue-600 text-white py-2 rounded-lg font-medium">Send Money</button>
211
+ </div>
212
+ </div>
213
+
214
+ <!-- Transaction Success Modal -->
215
+ <div id="transactionSuccess" class="fixed inset-0 bg-black bg-opacity-75 z-50 flex items-center justify-center hidden">
216
+ <div class="bg-white rounded-lg p-6 w-full max-w-md mx-4 transaction-success">
217
+ <div class="flex flex-col items-center">
218
+ <div class="bg-green-100 p-4 rounded-full mb-4">
219
+ <i data-feather="check" class="w-8 h-8 text-green-600"></i>
220
+ </div>
221
+ <h3 class="text-xl font-semibold mb-2">Payment Successful</h3>
222
+ <p class="text-gray-600 text-center mb-6">₹500 has been sent to john@upi</p>
223
+ <button onclick="hideTransactionSuccess()" class="w-full bg-blue-600 text-white py-2 rounded-lg font-medium">Done</button>
224
+ <button class="mt-2 text-blue-600 text-sm font-medium">View Receipt</button>
225
+ </div>
226
+ </div>
227
+ </div>
228
+
229
+ <!-- Add Bank Account Modal -->
230
+ <div id="bankModal" class="fixed inset-0 bg-black bg-opacity-75 z-50 flex items-center justify-center hidden">
231
+ <div class="bg-white rounded-lg p-6 w-full max-w-md mx-4">
232
+ <div class="flex justify-between items-center mb-4">
233
+ <h3 class="text-lg font-semibold">Add Bank Account</h3>
234
+ <button onclick="hideBankModal()" class="text-gray-500">
235
+ <i data-feather="x" class="w-6 h-6"></i>
236
+ </button>
237
+ </div>
238
+ <div class="mb-4">
239
+ <label class="block text-gray-700 text-sm font-medium mb-1">Bank Name</label>
240
+ <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
241
+ <option value="">Select Bank</option>
242
+ <option value="sbi">State Bank of India</option>
243
+ <option value="hdfc">HDFC Bank</option>
244
+ <option value="icici">ICICI Bank</option>
245
+ <option value="axis">Axis Bank</option>
246
+ </select>
247
+ </div>
248
+ <div class="mb-4">
249
+ <label class="block text-gray-700 text-sm font-medium mb-1">Account Number</label>
250
+ <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Enter account number">
251
+ </div>
252
+ <div class="mb-4">
253
+ <label class="block text-gray-700 text-sm font-medium mb-1">IFSC Code</label>
254
+ <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Enter IFSC code">
255
+ </div>
256
+ <button onclick="addBankAccount()" class="w-full bg-blue-600 text-white py-2 rounded-lg font-medium">Add Bank Account</button>
257
+ </div>
258
+ </div>
259
+
260
+ <!-- Rewards Modal -->
261
+ <div id="rewardsModal" class="fixed inset-0 bg-black bg-opacity-75 z-50 flex items-center justify-center hidden">
262
+ <div class="bg-white rounded-lg p-6 w-full max-w-md mx-4">
263
+ <div class="flex justify-between items-center mb-4">
264
+ <h3 class="text-lg font-semibold">Your Rewards</h3>
265
+ <button onclick="hideRewards()" class="text-gray-500">
266
+ <i data-feather="x" class="w-6 h-6"></i>
267
+ </button>
268
+ </div>
269
+ <div class="bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-4">
270
+ <div class="flex items-center">
271
+ <div class="bg-yellow-100 p-2 rounded-full mr-3">
272
+ <i data-feather="star" class="w-5 h-5 text-yellow-600"></i>
273
+ </div>
274
+ <div>
275
+ <h4 class="font-medium">Paytm First</h4>
276
+ <p class="text-xs text-gray-600">Earn 5% cashback on all transactions</p>
277
+ </div>
278
+ </div>
279
+ </div>
280
+ <div class="space-y-3">
281
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
282
+ <div class="flex items-center">
283
+ <div class="bg-blue-100 p-2 rounded-full mr-3">
284
+ <i data-feather="credit-card" class="w-4 h-4 text-blue-600"></i>
285
+ </div>
286
+ <span class="text-sm">Cashback on UPI</span>
287
+ </div>
288
+ <span class="text-sm font-medium">₹25</span>
289
+ </div>
290
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
291
+ <div class="flex items-center">
292
+ <div class="bg-green-100 p-2 rounded-full mr-3">
293
+ <i data-feather="shopping-bag" class="w-4 h-4 text-green-600"></i>
294
+ </div>
295
+ <span class="text-sm">Shopping Reward</span>
296
+ </div>
297
+ <span class="text-sm font-medium">₹50</span>
298
+ </div>
299
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
300
+ <div class="flex items-center">
301
+ <div class="bg-purple-100 p-2 rounded-full mr-3">
302
+ <i data-feather="gift" class="w-4 h-4 text-purple-600"></i>
303
+ </div>
304
+ <span class="text-sm">Referral Bonus</span>
305
+ </div>
306
+ <span class="text-sm font-medium">₹100</span>
307
+ </div>
308
+ </div>
309
+ <button class="w-full mt-4 bg-blue-600 text-white py-2 rounded-lg font-medium">Redeem Rewards</button>
310
+ </div>
311
+ </div>
312
+
313
+ <!-- Bottom Navigation -->
314
+ <div class="fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200 py-2 px-4">
315
+ <div class="flex justify-around max-w-6xl mx-auto">
316
+ <button class="flex flex-col items-center text-blue-600">
317
+ <i data-feather="home" class="w-5 h-5"></i>
318
+ <span class="text-xs mt-1">Home</span>
319
+ </button>
320
+ <button class="flex flex-col items-center text-gray-500">
321
+ <i data-feather="credit-card" class="w-5 h-5"></i>
322
+ <span class="text-xs mt-1">Cards</span>
323
+ </button>
324
+ <button class="flex flex-col items-center text-gray-500">
325
+ <i data-feather="activity" class="w-5 h-5"></i>
326
+ <span class="text-xs mt-1">Activity</span>
327
+ </button>
328
+ <button class="flex flex-col items-center text-gray-500">
329
+ <i data-feather="user" class="w-5 h-5"></i>
330
+ <span class="text-xs mt-1">Profile</span>
331
+ </button>
332
+ </div>
333
+ </div>
334
+
335
+ <script>
336
+ // Initialize AOS and Feather Icons
337
+ AOS.init();
338
+ feather.replace();
339
+
340
+ // Modal functions
341
+ function showQRScanner() {
342
+ document.getElementById('qrScannerModal').classList.remove('hidden');
343
+ }
344
+ function hideQRScanner() {
345
+ document.getElementById('qrScannerModal').classList.add('hidden');
346
+ }
347
+ function showPaymentModal() {
348
+ document.getElementById('paymentModal').classList.remove('hidden');
349
+ }
350
+ function hidePaymentModal() {
351
+ document.getElementById('paymentModal').classList.add('hidden');
352
+ }
353
+ function showBankModal() {
354
+ document.getElementById('bankModal').classList.remove('hidden');
355
+ }
356
+ function hideBankModal() {
357
+ document.getElementById('bankModal').classList.add('hidden');
358
+ }
359
+ function showRewards() {
360
+ document.getElementById('rewardsModal').classList.remove('hidden');
361
+ }
362
+ function hideRewards() {
363
+ document.getElementById('rewardsModal').classList.add('hidden');
364
+ }
365
+ function showTransactionSuccess() {
366
+ document.getElementById('transactionSuccess').classList.remove('hidden');
367
+ // Play transaction sound
368
+ const audio = new Audio('https://assets.mixkit.co/sfx/preview/mixkit-cash-register-purchase-2596.mp3');
369
+ audio.play();
370
+ }
371
+ function hideTransactionSuccess() {
372
+ document.getElementById('transactionSuccess').classList.add('hidden');
373
+ }
374
+
375
+ // Mock functions
376
+ function sendMoney() {
377
+ hidePaymentModal();
378
+ setTimeout(showTransactionSuccess, 500);
379
+ }
380
+ function addBankAccount() {
381
+ hideBankModal();
382
+ alert('Bank account added successfully!');
383
+ }
384
+ </script>
385
+ </body>
386
  </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Make a real application like paytm which is downloadable in my device also add all the working features of paytm and work all the functions properly like scanning qr sending money got reward and options of adding bank account. Also add the money sending sound when transaction successfully completed