Ashu9675 commited on
Commit
bd18dc2
·
verified ·
1 Parent(s): b1afc93

Create app snapzy which have all features like Instagram but different and have a custom logo and remainder that all feature working - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +601 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Snapzy
3
- emoji: 🌍
4
- colorFrom: purple
5
- colorTo: gray
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: snapzy
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: red
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,601 @@
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>Snapzy - Share Your Moments</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
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
11
+
12
+ body {
13
+ font-family: 'Poppins', sans-serif;
14
+ background-color: #fafafa;
15
+ }
16
+
17
+ .gradient-text {
18
+ background: linear-gradient(45deg, #FF5F6D, #FFC371);
19
+ -webkit-background-clip: text;
20
+ background-clip: text;
21
+ color: transparent;
22
+ }
23
+
24
+ .story-ring {
25
+ background: linear-gradient(45deg, #FF5F6D, #FFC371);
26
+ padding: 2px;
27
+ border-radius: 50%;
28
+ }
29
+
30
+ .post-image {
31
+ transition: transform 0.3s ease;
32
+ }
33
+
34
+ .post-image:hover {
35
+ transform: scale(1.03);
36
+ }
37
+
38
+ .custom-scrollbar::-webkit-scrollbar {
39
+ width: 5px;
40
+ height: 5px;
41
+ }
42
+
43
+ .custom-scrollbar::-webkit-scrollbar-track {
44
+ background: #f1f1f1;
45
+ }
46
+
47
+ .custom-scrollbar::-webkit-scrollbar-thumb {
48
+ background: #888;
49
+ border-radius: 10px;
50
+ }
51
+
52
+ .custom-scrollbar::-webkit-scrollbar-thumb:hover {
53
+ background: #555;
54
+ }
55
+
56
+ .modal {
57
+ transition: opacity 0.3s ease;
58
+ }
59
+ </style>
60
+ </head>
61
+ <body class="bg-gray-50">
62
+ <!-- Navigation Bar -->
63
+ <nav class="bg-white border-b border-gray-200 fixed w-full z-10">
64
+ <div class="max-w-6xl mx-auto px-4">
65
+ <div class="flex justify-between items-center h-16">
66
+ <!-- Logo -->
67
+ <div class="flex items-center">
68
+ <div class="flex items-center">
69
+ <div class="w-8 h-8 rounded-full bg-gradient-to-r from-pink-500 to-yellow-400 flex items-center justify-center">
70
+ <span class="text-white font-bold text-xl">S</span>
71
+ </div>
72
+ <span class="ml-2 text-xl font-bold gradient-text">Snapzy</span>
73
+ </div>
74
+ </div>
75
+
76
+ <!-- Search Bar -->
77
+ <div class="hidden md:block mx-4 flex-1 max-w-md">
78
+ <div class="relative">
79
+ <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
80
+ <i class="fas fa-search text-gray-400"></i>
81
+ </div>
82
+ <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-gray-50 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-pink-300 focus:border-pink-300" placeholder="Search">
83
+ </div>
84
+ </div>
85
+
86
+ <!-- Navigation Icons -->
87
+ <div class="flex items-center space-x-4 md:space-x-6">
88
+ <button class="text-gray-700 hover:text-pink-500">
89
+ <i class="fas fa-home text-xl"></i>
90
+ </button>
91
+ <button class="text-gray-700 hover:text-pink-500">
92
+ <i class="far fa-paper-plane text-xl"></i>
93
+ </button>
94
+ <button onclick="openCreatePostModal()" class="text-gray-700 hover:text-pink-500">
95
+ <i class="far fa-plus-square text-xl"></i>
96
+ </button>
97
+ <button class="text-gray-700 hover:text-pink-500">
98
+ <i class="far fa-compass text-xl"></i>
99
+ </button>
100
+ <button class="text-gray-700 hover:text-pink-500">
101
+ <i class="far fa-heart text-xl"></i>
102
+ </button>
103
+ <div class="relative">
104
+ <button onclick="toggleProfileDropdown()" class="flex items-center space-x-1 focus:outline-none">
105
+ <div class="w-8 h-8 rounded-full bg-gray-300 overflow-hidden">
106
+ <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-full h-full object-cover">
107
+ </div>
108
+ </button>
109
+ <!-- Profile Dropdown -->
110
+ <div id="profileDropdown" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-20">
111
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
112
+ <i class="fas fa-user mr-2"></i> Profile
113
+ </a>
114
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
115
+ <i class="fas fa-bookmark mr-2"></i> Saved
116
+ </a>
117
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
118
+ <i class="fas fa-cog mr-2"></i> Settings
119
+ </a>
120
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">
121
+ <i class="fas fa-sign-out-alt mr-2"></i> Logout
122
+ </a>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </div>
128
+ </nav>
129
+
130
+ <!-- Mobile Bottom Navigation -->
131
+ <div class="md:hidden fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 flex justify-around items-center h-14 z-10">
132
+ <button class="text-gray-700 hover:text-pink-500">
133
+ <i class="fas fa-home text-xl"></i>
134
+ </button>
135
+ <button class="text-gray-700 hover:text-pink-500">
136
+ <i class="far fa-search text-xl"></i>
137
+ </button>
138
+ <button onclick="openCreatePostModal()" class="text-gray-700 hover:text-pink-500">
139
+ <i class="far fa-plus-square text-xl"></i>
140
+ </button>
141
+ <button class="text-gray-700 hover:text-pink-500">
142
+ <i class="far fa-heart text-xl"></i>
143
+ </button>
144
+ <button onclick="toggleProfileDropdown()" class="text-gray-700 hover:text-pink-500">
145
+ <i class="fas fa-user text-xl"></i>
146
+ </button>
147
+ </div>
148
+
149
+ <!-- Main Content -->
150
+ <main class="pt-16 pb-20 md:pb-0 max-w-6xl mx-auto px-4">
151
+ <!-- Stories -->
152
+ <div class="bg-white border border-gray-200 rounded-lg mb-6 p-4 overflow-x-auto">
153
+ <div class="flex space-x-4 custom-scrollbar">
154
+ <!-- Your Story -->
155
+ <div class="flex flex-col items-center space-y-1">
156
+ <div class="story-ring">
157
+ <div class="w-16 h-16 rounded-full bg-white p-1 flex items-center justify-center">
158
+ <div class="w-full h-full rounded-full bg-gray-200 overflow-hidden flex items-center justify-center">
159
+ <i class="fas fa-plus text-gray-500"></i>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ <span class="text-xs">Your Story</span>
164
+ </div>
165
+
166
+ <!-- Other Stories -->
167
+ <div class="flex flex-col items-center space-y-1">
168
+ <div class="story-ring">
169
+ <div class="w-16 h-16 rounded-full bg-white p-1 flex items-center justify-center">
170
+ <div class="w-full h-full rounded-full overflow-hidden">
171
+ <img src="https://randomuser.me/api/portraits/women/12.jpg" alt="Story" class="w-full h-full object-cover">
172
+ </div>
173
+ </div>
174
+ </div>
175
+ <span class="text-xs">jessica_22</span>
176
+ </div>
177
+
178
+ <div class="flex flex-col items-center space-y-1">
179
+ <div class="story-ring">
180
+ <div class="w-16 h-16 rounded-full bg-white p-1 flex items-center justify-center">
181
+ <div class="w-full h-full rounded-full overflow-hidden">
182
+ <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Story" class="w-full h-full object-cover">
183
+ </div>
184
+ </div>
185
+ </div>
186
+ <span class="text-xs">mike_adams</span>
187
+ </div>
188
+
189
+ <div class="flex flex-col items-center space-y-1">
190
+ <div class="story-ring">
191
+ <div class="w-16 h-16 rounded-full bg-white p-1 flex items-center justify-center">
192
+ <div class="w-full h-full rounded-full overflow-hidden">
193
+ <img src="https://randomuser.me/api/portraits/women/65.jpg" alt="Story" class="w-full h-full object-cover">
194
+ </div>
195
+ </div>
196
+ </div>
197
+ <span class="text-xs">sarah_travels</span>
198
+ </div>
199
+
200
+ <div class="flex flex-col items-center space-y-1">
201
+ <div class="story-ring">
202
+ <div class="w-16 h-16 rounded-full bg-white p-1 flex items-center justify-center">
203
+ <div class="w-full h-full rounded-full overflow-hidden">
204
+ <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Story" class="w-full h-full object-cover">
205
+ </div>
206
+ </div>
207
+ </div>
208
+ <span class="text-xs">david_photog</span>
209
+ </div>
210
+
211
+ <div class="flex flex-col items-center space-y-1">
212
+ <div class="story-ring">
213
+ <div class="w-16 h-16 rounded-full bg-white p-1 flex items-center justify-center">
214
+ <div class="w-full h-full rounded-full overflow-hidden">
215
+ <img src="https://randomuser.me/api/portraits/women/33.jpg" alt="Story" class="w-full h-full object-cover">
216
+ </div>
217
+ </div>
218
+ </div>
219
+ <span class="text-xs">lisa_foodie</span>
220
+ </div>
221
+
222
+ <div class="flex flex-col items-center space-y-1">
223
+ <div class="story-ring">
224
+ <div class="w-16 h-16 rounded-full bg-white p-1 flex items-center justify-center">
225
+ <div class="w-full h-full rounded-full overflow-hidden">
226
+ <img src="https://randomuser.me/api/portraits/men/55.jpg" alt="Story" class="w-full h-full object-cover">
227
+ </div>
228
+ </div>
229
+ </div>
230
+ <span class="text-xs">tom_fitness</span>
231
+ </div>
232
+ </div>
233
+ </div>
234
+
235
+ <!-- Posts -->
236
+ <div class="space-y-6">
237
+ <!-- Post 1 -->
238
+ <div class="bg-white border border-gray-200 rounded-lg">
239
+ <!-- Post Header -->
240
+ <div class="flex items-center justify-between p-3">
241
+ <div class="flex items-center space-x-3">
242
+ <div class="w-8 h-8 rounded-full overflow-hidden">
243
+ <img src="https://randomuser.me/api/portraits/women/12.jpg" alt="User" class="w-full h-full object-cover">
244
+ </div>
245
+ <span class="font-semibold">jessica_22</span>
246
+ </div>
247
+ <button class="text-gray-500 hover:text-gray-700">
248
+ <i class="fas fa-ellipsis-h"></i>
249
+ </button>
250
+ </div>
251
+
252
+ <!-- Post Image -->
253
+ <div class="w-full aspect-square overflow-hidden">
254
+ <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Post" class="w-full h-full object-cover post-image">
255
+ </div>
256
+
257
+ <!-- Post Actions -->
258
+ <div class="p-3">
259
+ <div class="flex justify-between mb-2">
260
+ <div class="flex space-x-4">
261
+ <button class="text-gray-700 hover:text-pink-500">
262
+ <i class="far fa-heart text-xl"></i>
263
+ </button>
264
+ <button class="text-gray-700 hover:text-pink-500">
265
+ <i class="far fa-comment text-xl"></i>
266
+ </button>
267
+ <button class="text-gray-700 hover:text-pink-500">
268
+ <i class="far fa-paper-plane text-xl"></i>
269
+ </button>
270
+ </div>
271
+ <button class="text-gray-700 hover:text-pink-500">
272
+ <i class="far fa-bookmark text-xl"></i>
273
+ </button>
274
+ </div>
275
+
276
+ <!-- Likes -->
277
+ <div class="mb-1">
278
+ <span class="font-semibold">1,234 likes</span>
279
+ </div>
280
+
281
+ <!-- Caption -->
282
+ <div class="mb-1">
283
+ <span class="font-semibold">jessica_22</span>
284
+ <span class="ml-2">Enjoying the beautiful sunset at the beach today! 🌅 #summer #vacation</span>
285
+ </div>
286
+
287
+ <!-- Comments -->
288
+ <div class="text-gray-500 mb-1">
289
+ <button class="hover:text-gray-700">View all 42 comments</button>
290
+ </div>
291
+
292
+ <!-- Time Posted -->
293
+ <div class="text-xs text-gray-400">
294
+ <span>2 HOURS AGO</span>
295
+ </div>
296
+ </div>
297
+
298
+ <!-- Add Comment -->
299
+ <div class="border-t border-gray-200 p-3">
300
+ <div class="flex items-center">
301
+ <input type="text" placeholder="Add a comment..." class="flex-1 focus:outline-none">
302
+ <button class="text-blue-500 font-semibold ml-2">Post</button>
303
+ </div>
304
+ </div>
305
+ </div>
306
+
307
+ <!-- Post 2 -->
308
+ <div class="bg-white border border-gray-200 rounded-lg">
309
+ <!-- Post Header -->
310
+ <div class="flex items-center justify-between p-3">
311
+ <div class="flex items-center space-x-3">
312
+ <div class="w-8 h-8 rounded-full overflow-hidden">
313
+ <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-full h-full object-cover">
314
+ </div>
315
+ <span class="font-semibold">mike_adams</span>
316
+ </div>
317
+ <button class="text-gray-500 hover:text-gray-700">
318
+ <i class="fas fa-ellipsis-h"></i>
319
+ </button>
320
+ </div>
321
+
322
+ <!-- Post Image -->
323
+ <div class="w-full aspect-square overflow-hidden">
324
+ <img src="https://images.unsplash.com/photo-1517841905240-472988babdf9?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Post" class="w-full h-full object-cover post-image">
325
+ </div>
326
+
327
+ <!-- Post Actions -->
328
+ <div class="p-3">
329
+ <div class="flex justify-between mb-2">
330
+ <div class="flex space-x-4">
331
+ <button class="text-gray-700 hover:text-pink-500">
332
+ <i class="far fa-heart text-xl"></i>
333
+ </button>
334
+ <button class="text-gray-700 hover:text-pink-500">
335
+ <i class="far fa-comment text-xl"></i>
336
+ </button>
337
+ <button class="text-gray-700 hover:text-pink-500">
338
+ <i class="far fa-paper-plane text-xl"></i>
339
+ </button>
340
+ </div>
341
+ <button class="text-gray-700 hover:text-pink-500">
342
+ <i class="far fa-bookmark text-xl"></i>
343
+ </button>
344
+ </div>
345
+
346
+ <!-- Likes -->
347
+ <div class="mb-1">
348
+ <span class="font-semibold">892 likes</span>
349
+ </div>
350
+
351
+ <!-- Caption -->
352
+ <div class="mb-1">
353
+ <span class="font-semibold">mike_adams</span>
354
+ <span class="ml-2">New coffee shop in town has the best latte art! ☕ #coffee #latteart</span>
355
+ </div>
356
+
357
+ <!-- Comments -->
358
+ <div class="text-gray-500 mb-1">
359
+ <button class="hover:text-gray-700">View all 18 comments</button>
360
+ </div>
361
+
362
+ <!-- Time Posted -->
363
+ <div class="text-xs text-gray-400">
364
+ <span>5 HOURS AGO</span>
365
+ </div>
366
+ </div>
367
+
368
+ <!-- Add Comment -->
369
+ <div class="border-t border-gray-200 p-3">
370
+ <div class="flex items-center">
371
+ <input type="text" placeholder="Add a comment..." class="flex-1 focus:outline-none">
372
+ <button class="text-blue-500 font-semibold ml-2">Post</button>
373
+ </div>
374
+ </div>
375
+ </div>
376
+ </div>
377
+ </main>
378
+
379
+ <!-- Create Post Modal -->
380
+ <div id="createPostModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden modal">
381
+ <div class="bg-white rounded-lg w-full max-w-md mx-4">
382
+ <!-- Modal Header -->
383
+ <div class="border-b border-gray-200 p-4 flex justify-between items-center">
384
+ <h3 class="text-lg font-semibold">Create New Post</h3>
385
+ <button onclick="closeCreatePostModal()" class="text-gray-500 hover:text-gray-700">
386
+ <i class="fas fa-times"></i>
387
+ </button>
388
+ </div>
389
+
390
+ <!-- Modal Content -->
391
+ <div class="p-4">
392
+ <div class="border-2 border-dashed border-gray-300 rounded-lg p-8 text-center cursor-pointer hover:bg-gray-50">
393
+ <i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-2"></i>
394
+ <p class="text-gray-700 font-medium">Drag photos and videos here</p>
395
+ <button class="mt-4 bg-gradient-to-r from-pink-500 to-yellow-400 text-white px-4 py-2 rounded-md font-medium">
396
+ Select from computer
397
+ </button>
398
+ </div>
399
+
400
+ <div class="mt-4">
401
+ <label class="block text-gray-700 mb-2">Caption</label>
402
+ <textarea class="w-full border border-gray-300 rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-pink-300 focus:border-pink-300" rows="3" placeholder="Write a caption..."></textarea>
403
+ </div>
404
+
405
+ <div class="mt-4">
406
+ <label class="block text-gray-700 mb-2">Location</label>
407
+ <input type="text" class="w-full border border-gray-300 rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-pink-300 focus:border-pink-300" placeholder="Add location">
408
+ </div>
409
+
410
+ <div class="mt-4 flex space-x-2">
411
+ <div class="flex-1">
412
+ <label class="block text-gray-700 mb-2">Tag People</label>
413
+ <input type="text" class="w-full border border-gray-300 rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-pink-300 focus:border-pink-300" placeholder="Who's in this photo?">
414
+ </div>
415
+ <div class="flex-1">
416
+ <label class="block text-gray-700 mb-2">Add Hashtags</label>
417
+ <input type="text" class="w-full border border-gray-300 rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-pink-300 focus:border-pink-300" placeholder="#summer #vacation">
418
+ </div>
419
+ </div>
420
+ </div>
421
+
422
+ <!-- Modal Footer -->
423
+ <div class="border-t border-gray-200 p-4 flex justify-end">
424
+ <button onclick="closeCreatePostModal()" class="px-4 py-2 text-gray-700 mr-2 rounded-md hover:bg-gray-100">
425
+ Cancel
426
+ </button>
427
+ <button class="px-4 py-2 bg-gradient-to-r from-pink-500 to-yellow-400 text-white rounded-md font-medium">
428
+ Share
429
+ </button>
430
+ </div>
431
+ </div>
432
+ </div>
433
+
434
+ <!-- Direct Messages Modal -->
435
+ <div id="directMessagesModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden modal">
436
+ <div class="bg-white rounded-lg w-full max-w-md mx-4 h-96 flex flex-col">
437
+ <!-- Modal Header -->
438
+ <div class="border-b border-gray-200 p-4 flex justify-between items-center">
439
+ <h3 class="text-lg font-semibold">Direct Messages</h3>
440
+ <button onclick="closeDirectMessagesModal()" class="text-gray-500 hover:text-gray-700">
441
+ <i class="fas fa-times"></i>
442
+ </button>
443
+ </div>
444
+
445
+ <!-- Messages List -->
446
+ <div class="flex-1 overflow-y-auto custom-scrollbar">
447
+ <div class="p-4 border-b border-gray-200 hover:bg-gray-50 cursor-pointer">
448
+ <div class="flex items-center space-x-3">
449
+ <div class="w-10 h-10 rounded-full overflow-hidden">
450
+ <img src="https://randomuser.me/api/portraits/women/12.jpg" alt="User" class="w-full h-full object-cover">
451
+ </div>
452
+ <div class="flex-1">
453
+ <div class="flex justify-between items-center">
454
+ <span class="font-semibold">jessica_22</span>
455
+ <span class="text-xs text-gray-500">2h ago</span>
456
+ </div>
457
+ <p class="text-sm text-gray-500 truncate">Hey! How are you doing?</p>
458
+ </div>
459
+ </div>
460
+ </div>
461
+
462
+ <div class="p-4 border-b border-gray-200 hover:bg-gray-50 cursor-pointer">
463
+ <div class="flex items-center space-x-3">
464
+ <div class="w-10 h-10 rounded-full overflow-hidden">
465
+ <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-full h-full object-cover">
466
+ </div>
467
+ <div class="flex-1">
468
+ <div class="flex justify-between items-center">
469
+ <span class="font-semibold">mike_adams</span>
470
+ <span class="text-xs text-gray-500">5h ago</span>
471
+ </div>
472
+ <p class="text-sm text-gray-500 truncate">Check out this new coffee place!</p>
473
+ </div>
474
+ </div>
475
+ </div>
476
+
477
+ <div class="p-4 border-b border-gray-200 hover:bg-gray-50 cursor-pointer">
478
+ <div class="flex items-center space-x-3">
479
+ <div class="w-10 h-10 rounded-full overflow-hidden">
480
+ <img src="https://randomuser.me/api/portraits/women/65.jpg" alt="User" class="w-full h-full object-cover">
481
+ </div>
482
+ <div class="flex-1">
483
+ <div class="flex justify-between items-center">
484
+ <span class="font-semibold">sarah_travels</span>
485
+ <span class="text-xs text-gray-500">1d ago</span>
486
+ </div>
487
+ <p class="text-sm text-gray-500 truncate">When are we meeting for lunch?</p>
488
+ </div>
489
+ </div>
490
+ </div>
491
+
492
+ <div class="p-4 border-b border-gray-200 hover:bg-gray-50 cursor-pointer">
493
+ <div class="flex items-center space-x-3">
494
+ <div class="w-10 h-10 rounded-full overflow-hidden">
495
+ <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="User" class="w-full h-full object-cover">
496
+ </div>
497
+ <div class="flex-1">
498
+ <div class="flex justify-between items-center">
499
+ <span class="font-semibold">david_photog</span>
500
+ <span class="text-xs text-gray-500">2d ago</span>
501
+ </div>
502
+ <p class="text-sm text-gray-500 truncate">Got some great shots yesterday</p>
503
+ </div>
504
+ </div>
505
+ </div>
506
+
507
+ <div class="p-4 hover:bg-gray-50 cursor-pointer">
508
+ <div class="flex items-center space-x-3">
509
+ <div class="w-10 h-10 rounded-full overflow-hidden">
510
+ <img src="https://randomuser.me/api/portraits/women/33.jpg" alt="User" class="w-full h-full object-cover">
511
+ </div>
512
+ <div class="flex-1">
513
+ <div class="flex justify-between items-center">
514
+ <span class="font-semibold">lisa_foodie</span>
515
+ <span class="text-xs text-gray-500">3d ago</span>
516
+ </div>
517
+ <p class="text-sm text-gray-500 truncate">You have to try this new recipe!</p>
518
+ </div>
519
+ </div>
520
+ </div>
521
+ </div>
522
+
523
+ <!-- New Message Input -->
524
+ <div class="border-t border-gray-200 p-4">
525
+ <div class="flex items-center">
526
+ <input type="text" placeholder="Send a message..." class="flex-1 border border-gray-300 rounded-l-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-pink-300 focus:border-pink-300">
527
+ <button class="bg-gradient-to-r from-pink-500 to-yellow-400 text-white px-4 py-2 rounded-r-md">
528
+ <i class="fas fa-paper-plane"></i>
529
+ </button>
530
+ </div>
531
+ </div>
532
+ </div>
533
+ </div>
534
+
535
+ <script>
536
+ // Toggle profile dropdown
537
+ function toggleProfileDropdown() {
538
+ const dropdown = document.getElementById('profileDropdown');
539
+ dropdown.classList.toggle('hidden');
540
+ }
541
+
542
+ // Close dropdown when clicking outside
543
+ document.addEventListener('click', function(event) {
544
+ const dropdown = document.getElementById('profileDropdown');
545
+ const profileButton = document.querySelector('button[onclick="toggleProfileDropdown()"]');
546
+
547
+ if (!profileButton.contains(event.target) && !dropdown.contains(event.target)) {
548
+ dropdown.classList.add('hidden');
549
+ }
550
+ });
551
+
552
+ // Create Post Modal
553
+ function openCreatePostModal() {
554
+ const modal = document.getElementById('createPostModal');
555
+ modal.classList.remove('hidden');
556
+ }
557
+
558
+ function closeCreatePostModal() {
559
+ const modal = document.getElementById('createPostModal');
560
+ modal.classList.add('hidden');
561
+ }
562
+
563
+ // Direct Messages Modal
564
+ function openDirectMessagesModal() {
565
+ const modal = document.getElementById('directMessagesModal');
566
+ modal.classList.remove('hidden');
567
+ }
568
+
569
+ function closeDirectMessagesModal() {
570
+ const modal = document.getElementById('directMessagesModal');
571
+ modal.classList.add('hidden');
572
+ }
573
+
574
+ // Like button functionality
575
+ document.querySelectorAll('.far.fa-heart').forEach(button => {
576
+ button.addEventListener('click', function() {
577
+ if (this.classList.contains('far')) {
578
+ this.classList.remove('far');
579
+ this.classList.add('fas', 'text-red-500');
580
+ } else {
581
+ this.classList.remove('fas', 'text-red-500');
582
+ this.classList.add('far');
583
+ }
584
+ });
585
+ });
586
+
587
+ // Bookmark button functionality
588
+ document.querySelectorAll('.far.fa-bookmark').forEach(button => {
589
+ button.addEventListener('click', function() {
590
+ if (this.classList.contains('far')) {
591
+ this.classList.remove('far');
592
+ this.classList.add('fas', 'text-black');
593
+ } else {
594
+ this.classList.remove('fas', 'text-black');
595
+ this.classList.add('far');
596
+ }
597
+ });
598
+ });
599
+ </script>
600
+ <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=Ashu9675/snapzy" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
601
+ </html>