Helleon commited on
Commit
e2dca41
·
verified ·
1 Parent(s): e9d7815

refresh butonu ilk yaptığın yerde olsun - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +480 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Temp
3
- emoji: 🏆
4
- colorFrom: purple
5
- colorTo: red
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: temp
3
+ emoji: 🐳
4
+ colorFrom: green
5
+ colorTo: gray
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,480 @@
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>TempMail - Disposable Email</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
+ <audio id="notification-sound" src="https://assets.mixkit.co/sfx/preview/mixkit-software-interface-start-2574.mp3" preload="auto"></audio>
10
+ <style>
11
+ .bg-dark {
12
+ background-color: #121212;
13
+ }
14
+ .bg-secondary {
15
+ background-color: #1E1E1E;
16
+ }
17
+ .text-primary {
18
+ color: #BB86FC;
19
+ }
20
+ .text-secondary {
21
+ color: #03DAC6;
22
+ }
23
+ .text-accent {
24
+ color: #FF7597;
25
+ }
26
+ .border-primary {
27
+ border-color: #BB86FC;
28
+ }
29
+ .border-secondary {
30
+ border-color: #03DAC6;
31
+ }
32
+ .border-accent {
33
+ border-color: #FF7597;
34
+ }
35
+ .hover-primary:hover {
36
+ color: #BB86FC;
37
+ }
38
+ .hover-secondary:hover {
39
+ color: #03DAC6;
40
+ }
41
+ .hover-accent:hover {
42
+ color: #FF7597;
43
+ }
44
+ .bg-primary {
45
+ background-color: #BB86FC;
46
+ }
47
+ .bg-accent {
48
+ background-color: #FF7597;
49
+ }
50
+ .bg-green {
51
+ background-color: #03DAC6;
52
+ }
53
+ .btn-primary {
54
+ background: linear-gradient(90deg,
55
+ #FF0000,
56
+ #FFFF00,
57
+ #00FF00,
58
+ #FF0000);
59
+ background-size: 200vw 100%;
60
+ color: #121212;
61
+ transition: all 0.3s ease;
62
+ animation: gradientSlide 4s linear infinite;
63
+ }
64
+ .btn-primary:hover {
65
+ box-shadow: 0 0 15px #BB86FC;
66
+ }
67
+ .btn-accent {
68
+ background: linear-gradient(90deg,
69
+ #FF0000,
70
+ #FFFF00,
71
+ #00FF00,
72
+ #FF0000);
73
+ background-size: 200vw 100%;
74
+ color: #121212;
75
+ transition: all 0.3s ease;
76
+ animation: gradientSlide 4s linear infinite;
77
+ }
78
+ .btn-accent:hover {
79
+ box-shadow: 0 0 15px #FF7597;
80
+ }
81
+ .btn-green {
82
+ background: linear-gradient(90deg,
83
+ #FF0000,
84
+ #FFFF00,
85
+ #00FF00,
86
+ #FF0000);
87
+ background-size: 200vw 100%;
88
+ color: #121212;
89
+ transition: all 0.3s ease;
90
+ animation: gradientSlide 4s linear infinite;
91
+ }
92
+ .btn-green:hover {
93
+ box-shadow: 0 0 15px #03DAC6;
94
+ }
95
+ .dropdown-menu {
96
+ display: none;
97
+ position: absolute;
98
+ right: 0;
99
+ top: 100%;
100
+ background-color: #1E1E1E;
101
+ border: 1px solid #BB86FC;
102
+ border-radius: 0.5rem;
103
+ z-index: 10;
104
+ min-width: 200px;
105
+ }
106
+ .dropdown:hover .dropdown-menu {
107
+ display: block;
108
+ }
109
+ .email-item:hover {
110
+ background-color: #2E2E2E;
111
+ border-left: 3px solid #BB86FC;
112
+ }
113
+ .email-item.unread {
114
+ background-color: #252525;
115
+ }
116
+ .email-content {
117
+ max-height: 0;
118
+ overflow: hidden;
119
+ transition: max-height 0.3s ease;
120
+ }
121
+ .email-content.open {
122
+ max-height: 500px;
123
+ }
124
+ .copy-btn {
125
+ transition: all 0.3s ease;
126
+ }
127
+ .copy-btn:hover {
128
+ transform: scale(1.1);
129
+ }
130
+ .copy-btn.copied {
131
+ background-color: #03DAC6 !important;
132
+ }
133
+ @keyframes gradientSlide {
134
+ 0% {
135
+ background-position: 0 0;
136
+ }
137
+ 100% {
138
+ background-position: 200vw 0;
139
+ }
140
+ }
141
+ .inbox-count {
142
+ background: linear-gradient(90deg,
143
+ #FF0000,
144
+ #FFFF00,
145
+ #00FF00,
146
+ #FF0000);
147
+ background-size: 200vw 100%;
148
+ animation: gradientSlide 4s linear infinite;
149
+ border-radius: 9999px;
150
+ padding: 0.25rem 1.5rem;
151
+ transition: all 0.3s ease;
152
+ color: #121212 !important;
153
+ font-size: 0.875rem;
154
+ min-width: 60px;
155
+ text-align: center;
156
+ font-weight: bold;
157
+ border: none;
158
+ }
159
+ .inbox-count:hover {
160
+ transform: scale(1.1);
161
+ }
162
+ </style>
163
+ </head>
164
+ <body class="bg-dark text-gray-100 min-h-screen">
165
+ <div class="container mx-auto px-4 py-6">
166
+ <!-- Header -->
167
+ <header class="flex justify-between items-center mb-8">
168
+ <div class="flex items-center">
169
+ <i class="fas fa-envelope text-primary text-3xl mr-3"></i>
170
+ <h1 class="text-2xl font-bold">Temp<span class="text-accent">Mail</span></h1>
171
+ </div>
172
+
173
+ <!-- User Profile Dropdown -->
174
+ <div class="dropdown relative">
175
+ <button class="flex items-center space-x-2 focus:outline-none">
176
+ <div class="w-10 h-10 rounded-full bg-secondary flex items-center justify-center border-2 border-primary">
177
+ <i class="fas fa-user text-primary"></i>
178
+ </div>
179
+ <span class="text-primary"><i class="fas fa-caret-down"></i></span>
180
+ </button>
181
+
182
+ <div class="dropdown-menu py-2 mt-2">
183
+ <div id="login-form" class="px-4 py-3">
184
+ <h3 class="text-primary font-bold mb-2">Login</h3>
185
+ <input type="email" placeholder="Email" class="w-full bg-secondary border border-primary rounded px-3 py-2 mb-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary">
186
+ <input type="password" placeholder="Password" class="w-full bg-secondary border border-primary rounded px-3 py-2 mb-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary">
187
+ <button class="btn-primary text-sm w-full py-2 rounded font-bold">Sign In</button>
188
+ </div>
189
+ <div class="border-t border-gray-700"></div>
190
+ <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-800 hover-text-primary"><i class="fas fa-sign-out-alt mr-2"></i>Logout</a>
191
+ </div>
192
+ </div>
193
+ </header>
194
+
195
+ <!-- Notification -->
196
+ <div id="new-email-notification" class="hidden fixed top-4 right-4 bg-green-500 text-white px-4 py-2 rounded-lg shadow-lg z-50 flex items-center">
197
+ <i class="fas fa-envelope mr-2"></i>
198
+ <span>New email received!</span>
199
+ </div>
200
+
201
+ <!-- Main Content -->
202
+ <div class="flex flex-col md:flex-row gap-6">
203
+ <!-- Sidebar -->
204
+ <aside class="w-full md:w-1/4 bg-secondary rounded-lg p-4">
205
+ <div class="mb-6">
206
+ <h2 class="text-lg font-bold text-primary mb-4">Your Temporary Email</h2>
207
+ <div class="bg-dark rounded-lg p-3 mb-3">
208
+ <div class="flex justify-between items-center mb-2">
209
+ <span class="text-sm font-medium text-accent">Email:</span>
210
+ <button id="copy-email" class="copy-btn bg-primary text-dark text-xs px-2 py-1 rounded">
211
+ <i class="fas fa-copy"></i> Copy
212
+ </button>
213
+ </div>
214
+ <p id="temp-email" class="text-sm break-all font-bold">user<span class="text-secondary">@</span>tempmail<span class="text-accent">.com</span></p>
215
+ </div>
216
+ <div class="bg-dark rounded-lg p-3">
217
+ <div class="flex justify-between items-center mb-2">
218
+ <span class="text-sm font-medium text-secondary">Password:</span>
219
+ <button id="copy-password" class="copy-btn bg-green text-dark text-xs px-2 py-1 rounded">
220
+ <i class="fas fa-copy"></i> Copy
221
+ </button>
222
+ </div>
223
+ <p id="temp-password" class="text-sm font-bold">t3mpP@ss<span class="text-accent">123</span></p>
224
+ </div>
225
+ </div>
226
+
227
+
228
+ <div>
229
+ <h3 class="text-lg font-bold text-primary mb-3">Folders</h3>
230
+ <ul class="space-y-2">
231
+ <li>
232
+ <a href="#" class="flex items-center text-gray-300 hover-text-primary">
233
+ <i class="fas fa-inbox mr-3 text-primary"></i>
234
+ <span>Inbox</span>
235
+ <span class="inbox-count ml-auto">12</span>
236
+ </a>
237
+ </li>
238
+ <li>
239
+ <a href="#" class="flex items-center text-gray-300 hover-text-secondary">
240
+ <i class="fas fa-star mr-3 text-secondary"></i>
241
+ <span>Starred</span>
242
+ </a>
243
+ </li>
244
+ <li>
245
+ <button class="w-full flex items-center text-gray-300 hover-text-primary bg-primary hover:bg-primary-dark text-dark text-sm px-4 py-2 rounded-lg font-bold">
246
+ <i class="fas fa-sync-alt mr-3"></i>
247
+ <span>Refresh Inbox</span>
248
+ </button>
249
+ </li>
250
+ <li>
251
+ <a href="#" class="flex items-center text-gray-300 hover-text-accent">
252
+ <i class="fas fa-trash mr-3 text-accent"></i>
253
+ <span>Trash</span>
254
+ </a>
255
+ </li>
256
+ </ul>
257
+ </div>
258
+ </aside>
259
+
260
+ <!-- Email List -->
261
+ <main class="w-full md:w-3/4">
262
+ <div class="bg-secondary rounded-lg overflow-hidden">
263
+ <div class="p-4 border-b border-gray-700 flex justify-between items-center">
264
+ <div class="flex items-center">
265
+ <button class="bg-dark hover:bg-gray-800 p-2 rounded mr-3">
266
+ <i class="fas fa-arrow-left text-primary"></i>
267
+ </button>
268
+ <h2 class="text-lg font-bold text-primary">Inbox</h2>
269
+ </div>
270
+ <div class="flex space-x-2">
271
+ <button class="bg-dark hover:bg-gray-800 p-2 rounded">
272
+ <i class="fas fa-trash text-accent"></i>
273
+ </button>
274
+ <button class="bg-dark hover:bg-gray-800 p-2 rounded">
275
+ <i class="fas fa-archive text-secondary"></i>
276
+ </button>
277
+ </div>
278
+ </div>
279
+
280
+ <!-- Email Items -->
281
+ <div class="divide-y divide-gray-700">
282
+ <!-- Email 1 -->
283
+ <div class="email-item unread p-4 cursor-pointer">
284
+ <div class="flex items-start">
285
+ <button class="star-btn mr-2 text-gray-400 hover:text-yellow-400 focus:outline-none">
286
+ <i class="far fa-star"></i>
287
+ </button>
288
+ <div class="w-10 h-10 rounded-full bg-accent flex items-center justify-center mr-3">
289
+ <i class="fas fa-user text-dark"></i>
290
+ </div>
291
+ <div class="flex-1">
292
+ <div class="flex justify-between items-start">
293
+ <h3 class="font-bold text-primary">Welcome to TempMail</h3>
294
+ <span class="text-xs text-gray-400">2 min ago</span>
295
+ </div>
296
+ <p class="text-sm text-gray-300 mt-1">Thank you for using our temporary email service...</p>
297
+ </div>
298
+ </div>
299
+ <div class="email-content mt-3 pl-13">
300
+ <div class="bg-dark rounded-lg p-4 text-sm">
301
+ <p>Hello,</p>
302
+ <p class="mt-2">Welcome to TempMail! Your temporary email address is ready to use.</p>
303
+ <p class="mt-2">You can use this email to sign up for services without revealing your personal email address.</p>
304
+ <p class="mt-2">This email will expire in 24 hours.</p>
305
+ <p class="mt-4 text-secondary">- The TempMail Team</p>
306
+ </div>
307
+ </div>
308
+ </div>
309
+
310
+ <!-- Email 2 -->
311
+ <div class="email-item p-4 cursor-pointer">
312
+ <div class="flex items-start">
313
+ <button class="star-btn mr-2 text-gray-400 hover:text-yellow-400 focus:outline-none">
314
+ <i class="far fa-star"></i>
315
+ </button>
316
+ <div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center mr-3">
317
+ <i class="fas fa-shopping-cart text-dark"></i>
318
+ </div>
319
+ <div class="flex-1">
320
+ <div class="flex justify-between items-start">
321
+ <h3 class="font-bold">Your Amazon Order #12345</h3>
322
+ <span class="text-xs text-gray-400">1 hour ago</span>
323
+ </div>
324
+ <p class="text-sm text-gray-300 mt-1">Your order has been shipped and will arrive...</p>
325
+ </div>
326
+ </div>
327
+ <div class="email-content mt-3 pl-13">
328
+ <div class="bg-dark rounded-lg p-4 text-sm">
329
+ <p>Hello,</p>
330
+ <p class="mt-2">Your Amazon order #12345 has been shipped and is on its way to you.</p>
331
+ <p class="mt-2">Expected delivery date: Friday, June 10</p>
332
+ <p class="mt-4 text-secondary">- Amazon Customer Service</p>
333
+ </div>
334
+ </div>
335
+ </div>
336
+
337
+ <!-- Email 3 -->
338
+ <div class="email-item unread p-4 cursor-pointer">
339
+ <div class="flex items-start">
340
+ <button class="star-btn mr-2 text-gray-400 hover:text-yellow-400 focus:outline-none">
341
+ <i class="far fa-star"></i>
342
+ </button>
343
+ <div class="w-10 h-10 rounded-full bg-green flex items-center justify-center mr-3">
344
+ <i class="fas fa-envelope text-dark"></i>
345
+ </div>
346
+ <div class="flex-1">
347
+ <div class="flex justify-between items-start">
348
+ <h3 class="font-bold text-primary">Verify your account</h3>
349
+ <span class="text-xs text-gray-400">3 hours ago</span>
350
+ </div>
351
+ <p class="text-sm text-gray-300 mt-1">Please verify your account by clicking the link below...</p>
352
+ </div>
353
+ </div>
354
+ <div class="email-content mt-3 pl-13">
355
+ <div class="bg-dark rounded-lg p-4 text-sm">
356
+ <p>Hello,</p>
357
+ <p class="mt-2">Thank you for signing up for our service. To complete your registration, please verify your email address by clicking the button below:</p>
358
+ <button class="btn-primary mt-3 px-4 py-2 rounded text-sm">Verify Email Address</button>
359
+ <p class="mt-4 text-xs text-gray-400">If you didn't request this, you can safely ignore this email.</p>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ </div>
364
+ </div>
365
+
366
+ <!-- Empty State -->
367
+ <!-- <div class="bg-secondary rounded-lg p-8 text-center">
368
+ <i class="fas fa-inbox text-4xl text-gray-500 mb-4"></i>
369
+ <h3 class="text-xl font-bold text-gray-400 mb-2">Your inbox is empty</h3>
370
+ <p class="text-gray-500">Any emails sent to your temporary address will appear here</p>
371
+ </div> -->
372
+ </main>
373
+ </div>
374
+ </div>
375
+
376
+ <script>
377
+ // Toggle email content
378
+ document.querySelectorAll('.email-item').forEach(item => {
379
+ item.addEventListener('click', function() {
380
+ const content = this.querySelector('.email-content');
381
+ content.classList.toggle('open');
382
+ this.classList.toggle('unread');
383
+ });
384
+ });
385
+
386
+ // Copy email
387
+ document.getElementById('copy-email').addEventListener('click', function() {
388
+ const email = document.getElementById('temp-email').textContent;
389
+ navigator.clipboard.writeText(email);
390
+
391
+ this.classList.add('copied');
392
+ this.innerHTML = '<i class="fas fa-check"></i> Copied!';
393
+
394
+ setTimeout(() => {
395
+ this.classList.remove('copied');
396
+ this.innerHTML = '<i class="fas fa-copy"></i> Copy';
397
+ }, 2000);
398
+ });
399
+
400
+ // Copy password
401
+ document.getElementById('copy-password').addEventListener('click', function() {
402
+ const password = document.getElementById('temp-password').textContent;
403
+ navigator.clipboard.writeText(password);
404
+
405
+ this.classList.add('copied');
406
+ this.innerHTML = '<i class="fas fa-check"></i> Copied!';
407
+
408
+ setTimeout(() => {
409
+ this.classList.remove('copied');
410
+ this.innerHTML = '<i class="fas fa-copy"></i> Copy';
411
+ }, 2000);
412
+ });
413
+
414
+ // Star toggle functionality
415
+ document.querySelectorAll('.star-btn').forEach(btn => {
416
+ btn.addEventListener('click', function(e) {
417
+ e.stopPropagation();
418
+ const icon = this.querySelector('i');
419
+ if (icon.classList.contains('far')) {
420
+ icon.classList.remove('far');
421
+ icon.classList.add('fas', 'text-yellow-400');
422
+ // Optional: Move to starred folder or mark in database
423
+ } else {
424
+ icon.classList.remove('fas', 'text-yellow-400');
425
+ icon.classList.add('far');
426
+ // Optional: Remove from starred folder or update in database
427
+ }
428
+ });
429
+ });
430
+
431
+ // Notification system
432
+ function showNewEmailNotification() {
433
+ const notification = document.getElementById('new-email-notification');
434
+ const sound = document.getElementById('notification-sound');
435
+
436
+ // Play sound
437
+ sound.currentTime = 0;
438
+ sound.play();
439
+
440
+ // Show notification
441
+ notification.classList.remove('hidden');
442
+
443
+ // Hide after 3 seconds
444
+ setTimeout(() => {
445
+ notification.classList.add('hidden');
446
+ }, 3000);
447
+ }
448
+
449
+ // Simulate new email arrival (for demo purposes)
450
+ setInterval(() => {
451
+ // In a real app, you would check your API/backend for new emails
452
+ // This is just for demonstration
453
+ if (Math.random() > 0.9) { // 10% chance to simulate new email
454
+ showNewEmailNotification();
455
+ }
456
+ }, 10000); // Check every 10 seconds
457
+
458
+ // Generate random email and password
459
+ function generateRandomString(length) {
460
+ const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
461
+ let result = '';
462
+ for (let i = 0; i < length; i++) {
463
+ result += chars.charAt(Math.floor(Math.random() * chars.length));
464
+ }
465
+ return result;
466
+ }
467
+
468
+ // Uncomment to generate random email and password on page load
469
+ /*
470
+ window.addEventListener('load', function() {
471
+ const randomEmail = generateRandomString(8) + '@tempmail.com';
472
+ const randomPassword = generateRandomString(12);
473
+
474
+ document.getElementById('temp-email').textContent = randomEmail;
475
+ document.getElementById('temp-password').textContent = randomPassword;
476
+ });
477
+ */
478
+ </script>
479
+ <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=Helleon/temp" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
480
+ </html>