cansim commited on
Commit
b435547
·
verified ·
1 Parent(s): 243a2f0

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +623 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Https Cansim Med Com
3
- emoji: ⚡
4
- colorFrom: blue
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: https-cansim-med-com
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
+ colorTo: purple
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,623 @@
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="fr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Conférence en ligne</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
+ /* Custom styles that can't be done with Tailwind */
11
+ .video-grid {
12
+ display: grid;
13
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
14
+ gap: 1rem;
15
+ }
16
+
17
+ .participant-video {
18
+ position: relative;
19
+ aspect-ratio: 16/9;
20
+ background-color: #1e293b;
21
+ }
22
+
23
+ .controls-container {
24
+ transition: all 0.3s ease;
25
+ }
26
+
27
+ .chat-messages {
28
+ height: calc(100vh - 250px);
29
+ overflow-y: auto;
30
+ }
31
+
32
+ @media (max-width: 768px) {
33
+ .video-grid {
34
+ grid-template-columns: 1fr;
35
+ }
36
+ }
37
+ </style>
38
+ </head>
39
+ <body class="bg-gray-900 text-white">
40
+ <!-- Main container -->
41
+ <div class="flex flex-col h-screen">
42
+ <!-- Header -->
43
+ <header class="bg-gray-800 py-3 px-4 flex justify-between items-center border-b border-gray-700">
44
+ <div class="flex items-center space-x-4">
45
+ <h1 class="text-xl font-bold">Conférence en ligne</h1>
46
+ <span class="bg-blue-600 text-xs px-2 py-1 rounded">En direct</span>
47
+ <span id="timer" class="text-sm">00:00:00</span>
48
+ </div>
49
+ <div class="flex items-center space-x-4">
50
+ <button id="participants-btn" class="p-2 rounded-full hover:bg-gray-700">
51
+ <i class="fas fa-users"></i>
52
+ <span class="ml-1 hidden md:inline">Participants (5)</span>
53
+ </button>
54
+ <button id="chat-btn" class="p-2 rounded-full hover:bg-gray-700">
55
+ <i class="fas fa-comment"></i>
56
+ <span class="ml-1 hidden md:inline">Chat</span>
57
+ </button>
58
+ <button id="more-btn" class="p-2 rounded-full hover:bg-gray-700">
59
+ <i class="fas fa-ellipsis-h"></i>
60
+ </button>
61
+ <button id="leave-btn" class="bg-red-600 hover:bg-red-700 px-4 py-1 rounded-full">
62
+ Quitter
63
+ </button>
64
+ </div>
65
+ </header>
66
+
67
+ <!-- Main content area -->
68
+ <div class="flex flex-1 overflow-hidden">
69
+ <!-- Video grid area -->
70
+ <div class="flex-1 p-4 overflow-auto">
71
+ <div class="video-grid" id="video-container">
72
+ <!-- Participant videos will be added here by JavaScript -->
73
+ <div class="participant-video rounded-lg overflow-hidden">
74
+ <video class="w-full h-full object-cover" autoplay playsinline></video>
75
+ <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2">
76
+ <span class="text-sm">Vous (Organisateur)</span>
77
+ <div class="flex space-x-2 mt-1">
78
+ <span class="bg-red-500 text-white text-xs px-1 rounded">Mute</span>
79
+ <span class="bg-green-500 text-white text-xs px-1 rounded">Caméra</span>
80
+ </div>
81
+ </div>
82
+ </div>
83
+
84
+ <!-- Sample participant videos -->
85
+ <div class="participant-video rounded-lg overflow-hidden">
86
+ <div class="w-full h-full flex items-center justify-center">
87
+ <div class="w-20 h-20 rounded-full bg-blue-600 flex items-center justify-center">
88
+ <span class="text-2xl">JD</span>
89
+ </div>
90
+ </div>
91
+ <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2">
92
+ <span class="text-sm">Jean Dupont</span>
93
+ <div class="flex space-x-2 mt-1">
94
+ <span class="bg-green-500 text-white text-xs px-1 rounded">Micro</span>
95
+ <span class="bg-red-500 text-white text-xs px-1 rounded">Caméra off</span>
96
+ </div>
97
+ </div>
98
+ </div>
99
+
100
+ <div class="participant-video rounded-lg overflow-hidden">
101
+ <video class="w-full h-full object-cover" autoplay playsinline></video>
102
+ <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2">
103
+ <span class="text-sm">Marie Martin</span>
104
+ <div class="flex space-x-2 mt-1">
105
+ <span class="bg-green-500 text-white text-xs px-1 rounded">Micro</span>
106
+ <span class="bg-green-500 text-white text-xs px-1 rounded">Caméra</span>
107
+ </div>
108
+ </div>
109
+ </div>
110
+
111
+ <div class="participant-video rounded-lg overflow-hidden">
112
+ <div class="w-full h-full flex items-center justify-center">
113
+ <div class="w-20 h-20 rounded-full bg-purple-600 flex items-center justify-center">
114
+ <span class="text-2xl">PL</span>
115
+ </div>
116
+ </div>
117
+ <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2">
118
+ <span class="text-sm">Paul Leroy</span>
119
+ <div class="flex space-x-2 mt-1">
120
+ <span class="bg-red-500 text-white text-xs px-1 rounded">Mute</span>
121
+ <span class="bg-red-500 text-white text-xs px-1 rounded">Caméra off</span>
122
+ </div>
123
+ </div>
124
+ </div>
125
+
126
+ <div class="participant-video rounded-lg overflow-hidden">
127
+ <video class="w-full h-full object-cover" autoplay playsinline></video>
128
+ <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2">
129
+ <span class="text-sm">Sophie Lambert</span>
130
+ <div class="flex space-x-2 mt-1">
131
+ <span class="bg-green-500 text-white text-xs px-1 rounded">Micro</span>
132
+ <span class="bg-green-500 text-white text-xs px-1 rounded">Caméra</span>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+
139
+ <!-- Sidebar (hidden by default) -->
140
+ <div id="sidebar" class="w-0 md:w-80 bg-gray-800 border-l border-gray-700 overflow-hidden transition-all duration-300">
141
+ <div class="h-full flex flex-col">
142
+ <!-- Sidebar tabs -->
143
+ <div class="flex border-b border-gray-700">
144
+ <button class="sidebar-tab flex-1 py-3 px-4 hover:bg-gray-700" data-tab="participants">
145
+ <i class="fas fa-users mr-2"></i>
146
+ <span>Participants (5)</span>
147
+ </button>
148
+ <button class="sidebar-tab flex-1 py-3 px-4 hover:bg-gray-700" data-tab="chat">
149
+ <i class="fas fa-comment mr-2"></i>
150
+ <span>Chat</span>
151
+ </button>
152
+ </div>
153
+
154
+ <!-- Participants tab content -->
155
+ <div id="participants-tab" class="sidebar-content flex-1 overflow-auto p-4">
156
+ <div class="mb-4">
157
+ <input type="text" placeholder="Rechercher un participant" class="w-full bg-gray-700 rounded px-3 py-2 text-sm">
158
+ </div>
159
+
160
+ <div class="space-y-3">
161
+ <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded">
162
+ <div class="flex items-center space-x-3">
163
+ <div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center">
164
+ <span>VO</span>
165
+ </div>
166
+ <span>Vous (Organisateur)</span>
167
+ </div>
168
+ <div class="flex space-x-2">
169
+ <button class="text-gray-400 hover:text-white">
170
+ <i class="fas fa-microphone-slash"></i>
171
+ </button>
172
+ <button class="text-gray-400 hover:text-white">
173
+ <i class="fas fa-video-slash"></i>
174
+ </button>
175
+ </div>
176
+ </div>
177
+
178
+ <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded">
179
+ <div class="flex items-center space-x-3">
180
+ <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center">
181
+ <span>JD</span>
182
+ </div>
183
+ <span>Jean Dupont</span>
184
+ </div>
185
+ <div class="flex space-x-2">
186
+ <button class="text-green-500">
187
+ <i class="fas fa-microphone"></i>
188
+ </button>
189
+ <button class="text-red-500">
190
+ <i class="fas fa-video-slash"></i>
191
+ </button>
192
+ <button class="text-gray-400 hover:text-white">
193
+ <i class="fas fa-ellipsis-v"></i>
194
+ </button>
195
+ </div>
196
+ </div>
197
+
198
+ <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded">
199
+ <div class="flex items-center space-x-3">
200
+ <div class="w-8 h-8 rounded-full bg-green-600 flex items-center justify-center">
201
+ <span>MM</span>
202
+ </div>
203
+ <span>Marie Martin</span>
204
+ </div>
205
+ <div class="flex space-x-2">
206
+ <button class="text-green-500">
207
+ <i class="fas fa-microphone"></i>
208
+ </button>
209
+ <button class="text-green-500">
210
+ <i class="fas fa-video"></i>
211
+ </button>
212
+ <button class="text-gray-400 hover:text-white">
213
+ <i class="fas fa-ellipsis-v"></i>
214
+ </button>
215
+ </div>
216
+ </div>
217
+
218
+ <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded">
219
+ <div class="flex items-center space-x-3">
220
+ <div class="w-8 h-8 rounded-full bg-yellow-600 flex items-center justify-center">
221
+ <span>PL</span>
222
+ </div>
223
+ <span>Paul Leroy</span>
224
+ </div>
225
+ <div class="flex space-x-2">
226
+ <button class="text-red-500">
227
+ <i class="fas fa-microphone-slash"></i>
228
+ </button>
229
+ <button class="text-red-500">
230
+ <i class="fas fa-video-slash"></i>
231
+ </button>
232
+ <button class="text-gray-400 hover:text-white">
233
+ <i class="fas fa-ellipsis-v"></i>
234
+ </button>
235
+ </div>
236
+ </div>
237
+
238
+ <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded">
239
+ <div class="flex items-center space-x-3">
240
+ <div class="w-8 h-8 rounded-full bg-pink-600 flex items-center justify-center">
241
+ <span>SL</span>
242
+ </div>
243
+ <span>Sophie Lambert</span>
244
+ </div>
245
+ <div class="flex space-x-2">
246
+ <button class="text-green-500">
247
+ <i class="fas fa-microphone"></i>
248
+ </button>
249
+ <button class="text-green-500">
250
+ <i class="fas fa-video"></i>
251
+ </button>
252
+ <button class="text-gray-400 hover:text-white">
253
+ <i class="fas fa-ellipsis-v"></i>
254
+ </button>
255
+ </div>
256
+ </div>
257
+ </div>
258
+
259
+ <div class="mt-6">
260
+ <button class="w-full bg-blue-600 hover:bg-blue-700 py-2 rounded">
261
+ <i class="fas fa-plus mr-2"></i>
262
+ Inviter des participants
263
+ </button>
264
+ </div>
265
+ </div>
266
+
267
+ <!-- Chat tab content -->
268
+ <div id="chat-tab" class="sidebar-content hidden flex-1 flex flex-col">
269
+ <div class="chat-messages p-4 space-y-4">
270
+ <div class="flex">
271
+ <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center mr-3">
272
+ <span>JD</span>
273
+ </div>
274
+ <div>
275
+ <div class="text-xs text-gray-400 mb-1">Jean Dupont - 14:32</div>
276
+ <div class="bg-gray-700 p-3 rounded-lg max-w-xs">
277
+ Bonjour à tous, comment allez-vous ?
278
+ </div>
279
+ </div>
280
+ </div>
281
+
282
+ <div class="flex">
283
+ <div class="w-8 h-8 rounded-full bg-green-600 flex items-center justify-center mr-3">
284
+ <span>MM</span>
285
+ </div>
286
+ <div>
287
+ <div class="text-xs text-gray-400 mb-1">Marie Martin - 14:33</div>
288
+ <div class="bg-gray-700 p-3 rounded-lg max-w-xs">
289
+ Très bien merci! Et vous ?
290
+ </div>
291
+ </div>
292
+ </div>
293
+
294
+ <div class="flex justify-end">
295
+ <div class="text-right">
296
+ <div class="text-xs text-gray-400 mb-1">Vous - 14:34</div>
297
+ <div class="bg-blue-600 p-3 rounded-lg max-w-xs">
298
+ Je vais bien aussi, merci. Prêts à commencer la réunion ?
299
+ </div>
300
+ </div>
301
+ </div>
302
+
303
+ <div class="flex">
304
+ <div class="w-8 h-8 rounded-full bg-pink-600 flex items-center justify-center mr-3">
305
+ <span>SL</span>
306
+ </div>
307
+ <div>
308
+ <div class="text-xs text-gray-400 mb-1">Sophie Lambert - 14:35</div>
309
+ <div class="bg-gray-700 p-3 rounded-lg max-w-xs">
310
+ Oui, tout est prêt de mon côté!
311
+ </div>
312
+ </div>
313
+ </div>
314
+ </div>
315
+
316
+ <div class="p-4 border-t border-gray-700">
317
+ <div class="flex items-center space-x-2">
318
+ <button class="text-gray-400 hover:text-white p-2">
319
+ <i class="fas fa-smile"></i>
320
+ </button>
321
+ <input type="text" placeholder="Envoyer un message..." class="flex-1 bg-gray-700 rounded px-3 py-2 text-sm">
322
+ <button class="text-blue-500 p-2">
323
+ <i class="fas fa-paper-plane"></i>
324
+ </button>
325
+ </div>
326
+ </div>
327
+ </div>
328
+ </div>
329
+ </div>
330
+ </div>
331
+
332
+ <!-- Controls bar -->
333
+ <div class="controls-container bg-gray-800 py-3 px-6 border-t border-gray-700">
334
+ <div class="flex justify-center items-center space-x-4">
335
+ <button class="control-btn bg-gray-700 hover:bg-gray-600 w-12 h-12 rounded-full flex items-center justify-center">
336
+ <i class="fas fa-microphone text-white"></i>
337
+ </button>
338
+
339
+ <button class="control-btn bg-gray-700 hover:bg-gray-600 w-12 h-12 rounded-full flex items-center justify-center">
340
+ <i class="fas fa-video text-white"></i>
341
+ </button>
342
+
343
+ <button class="control-btn bg-gray-700 hover:bg-gray-600 w-12 h-12 rounded-full flex items-center justify-center">
344
+ <i class="fas fa-desktop text-white"></i>
345
+ </button>
346
+
347
+ <button class="control-btn bg-red-600 hover:bg-red-700 w-12 h-12 rounded-full flex items-center justify-center">
348
+ <i class="fas fa-phone-slash text-white"></i>
349
+ </button>
350
+
351
+ <div class="flex items-center space-x-4 ml-4">
352
+ <button class="control-btn bg-gray-700 hover:bg-gray-600 p-2 rounded">
353
+ <i class="fas fa-poll"></i>
354
+ <span class="ml-1 hidden md:inline">Sondage</span>
355
+ </button>
356
+
357
+ <button class="control-btn bg-gray-700 hover:bg-gray-600 p-2 rounded">
358
+ <i class="fas fa-chalkboard"></i>
359
+ <span class="ml-1 hidden md:inline">Tableau blanc</span>
360
+ </button>
361
+
362
+ <button class="control-btn bg-gray-700 hover:bg-gray-600 p-2 rounded">
363
+ <i class="fas fa-people-arrows"></i>
364
+ <span class="ml-1 hidden md:inline">Sous-salles</span>
365
+ </button>
366
+
367
+ <button class="control-btn bg-gray-700 hover:bg-gray-600 p-2 rounded">
368
+ <i class="fas fa-record-vinyl"></i>
369
+ <span class="ml-1 hidden md:inline">Enregistrer</span>
370
+ </button>
371
+ </div>
372
+ </div>
373
+ </div>
374
+ </div>
375
+
376
+ <!-- Modal for breakout rooms -->
377
+ <div id="breakout-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
378
+ <div class="bg-gray-800 rounded-lg w-full max-w-2xl p-6">
379
+ <div class="flex justify-between items-center mb-4">
380
+ <h3 class="text-xl font-bold">Gérer les sous-salles</h3>
381
+ <button id="close-breakout-modal" class="text-gray-400 hover:text-white">
382
+ <i class="fas fa-times"></i>
383
+ </button>
384
+ </div>
385
+
386
+ <div class="mb-6">
387
+ <div class="flex items-center space-x-4 mb-4">
388
+ <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded">
389
+ <i class="fas fa-plus mr-2"></i>
390
+ Créer une sous-salle
391
+ </button>
392
+ <button class="bg-gray-700 hover:bg-gray-600 px-4 py-2 rounded">
393
+ <i class="fas fa-random mr-2"></i>
394
+ Répartir automatiquement
395
+ </button>
396
+ </div>
397
+
398
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
399
+ <div class="bg-gray-700 p-4 rounded-lg">
400
+ <div class="flex justify-between items-center mb-3">
401
+ <h4 class="font-bold">Salle principale</h4>
402
+ <span class="text-sm bg-gray-600 px-2 py-1 rounded">5 participants</span>
403
+ </div>
404
+ <div class="space-y-2">
405
+ <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded">
406
+ <div class="flex items-center space-x-2">
407
+ <div class="w-6 h-6 rounded-full bg-blue-600 flex items-center justify-center text-xs">
408
+ VO
409
+ </div>
410
+ <span class="text-sm">Vous</span>
411
+ </div>
412
+ </div>
413
+ <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded">
414
+ <div class="flex items-center space-x-2">
415
+ <div class="w-6 h-6 rounded-full bg-purple-600 flex items-center justify-center text-xs">
416
+ JD
417
+ </div>
418
+ <span class="text-sm">Jean Dupont</span>
419
+ </div>
420
+ </div>
421
+ <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded">
422
+ <div class="flex items-center space-x-2">
423
+ <div class="w-6 h-6 rounded-full bg-green-600 flex items-center justify-center text-xs">
424
+ MM
425
+ </div>
426
+ <span class="text-sm">Marie Martin</span>
427
+ </div>
428
+ </div>
429
+ <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded">
430
+ <div class="flex items-center space-x-2">
431
+ <div class="w-6 h-6 rounded-full bg-yellow-600 flex items-center justify-center text-xs">
432
+ PL
433
+ </div>
434
+ <span class="text-sm">Paul Leroy</span>
435
+ </div>
436
+ </div>
437
+ <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded">
438
+ <div class="flex items-center space-x-2">
439
+ <div class="w-6 h-6 rounded-full bg-pink-600 flex items-center justify-center text-xs">
440
+ SL
441
+ </div>
442
+ <span class="text-sm">Sophie Lambert</span>
443
+ </div>
444
+ </div>
445
+ </div>
446
+ </div>
447
+
448
+ <div class="bg-gray-700 p-4 rounded-lg">
449
+ <div class="flex justify-between items-center mb-3">
450
+ <h4 class="font-bold">Sous-salle 1</h4>
451
+ <div class="flex space-x-2">
452
+ <button class="text-gray-400 hover:text-white text-sm">
453
+ <i class="fas fa-broadcast-tower"></i>
454
+ </button>
455
+ <button class="text-gray-400 hover:text-white text-sm">
456
+ <i class="fas fa-trash"></i>
457
+ </button>
458
+ </div>
459
+ </div>
460
+ <div class="text-sm text-gray-400 italic">Aucun participant</div>
461
+ </div>
462
+ </div>
463
+ </div>
464
+
465
+ <div class="flex justify-end space-x-3">
466
+ <button class="px-4 py-2 rounded border border-gray-600 hover:bg-gray-700">
467
+ Annuler
468
+ </button>
469
+ <button class="px-4 py-2 rounded bg-blue-600 hover:bg-blue-700">
470
+ Lancer les sous-salles
471
+ </button>
472
+ </div>
473
+ </div>
474
+ </div>
475
+
476
+ <script>
477
+ // Timer functionality
478
+ let seconds = 0;
479
+ const timerElement = document.getElementById('timer');
480
+
481
+ function updateTimer() {
482
+ seconds++;
483
+ const hours = Math.floor(seconds / 3600);
484
+ const minutes = Math.floor((seconds % 3600) / 60);
485
+ const secs = seconds % 60;
486
+
487
+ timerElement.textContent =
488
+ `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
489
+ }
490
+
491
+ setInterval(updateTimer, 1000);
492
+
493
+ // Sidebar functionality
494
+ const sidebar = document.getElementById('sidebar');
495
+ const participantsBtn = document.getElementById('participants-btn');
496
+ const chatBtn = document.getElementById('chat-btn');
497
+ const sidebarTabs = document.querySelectorAll('.sidebar-tab');
498
+ const sidebarContents = document.querySelectorAll('.sidebar-content');
499
+
500
+ function toggleSidebar() {
501
+ if (sidebar.classList.contains('w-0')) {
502
+ sidebar.classList.remove('w-0');
503
+ sidebar.classList.add('w-full', 'md:w-80');
504
+ } else {
505
+ sidebar.classList.add('w-0');
506
+ sidebar.classList.remove('w-full', 'md:w-80');
507
+ }
508
+ }
509
+
510
+ participantsBtn.addEventListener('click', () => {
511
+ toggleSidebar();
512
+ showTab('participants');
513
+ });
514
+
515
+ chatBtn.addEventListener('click', () => {
516
+ toggleSidebar();
517
+ showTab('chat');
518
+ });
519
+
520
+ function showTab(tabName) {
521
+ sidebarContents.forEach(content => {
522
+ content.classList.add('hidden');
523
+ if (content.id === `${tabName}-tab`) {
524
+ content.classList.remove('hidden');
525
+ }
526
+ });
527
+
528
+ sidebarTabs.forEach(tab => {
529
+ tab.classList.remove('bg-gray-700');
530
+ if (tab.dataset.tab === tabName) {
531
+ tab.classList.add('bg-gray-700');
532
+ }
533
+ });
534
+ }
535
+
536
+ sidebarTabs.forEach(tab => {
537
+ tab.addEventListener('click', () => {
538
+ showTab(tab.dataset.tab);
539
+ });
540
+ });
541
+
542
+ // Breakout rooms modal
543
+ const breakoutModal = document.getElementById('breakout-modal');
544
+ const breakoutBtn = document.querySelector('.control-btn:nth-child(7)'); // 7th control button
545
+ const closeBreakoutModal = document.getElementById('close-breakout-modal');
546
+
547
+ breakoutBtn.addEventListener('click', () => {
548
+ breakoutModal.classList.remove('hidden');
549
+ });
550
+
551
+ closeBreakoutModal.addEventListener('click', () => {
552
+ breakoutModal.classList.add('hidden');
553
+ });
554
+
555
+ // Toggle mute/unmute for microphone
556
+ const micBtn = document.querySelector('.control-btn:nth-child(1)');
557
+ let isMuted = false;
558
+
559
+ micBtn.addEventListener('click', () => {
560
+ isMuted = !isMuted;
561
+ const icon = micBtn.querySelector('i');
562
+ if (isMuted) {
563
+ icon.classList.remove('fa-microphone');
564
+ icon.classList.add('fa-microphone-slash');
565
+ micBtn.classList.add('bg-red-600', 'hover:bg-red-700');
566
+ micBtn.classList.remove('bg-gray-700', 'hover:bg-gray-600');
567
+ } else {
568
+ icon.classList.add('fa-microphone');
569
+ icon.classList.remove('fa-microphone-slash');
570
+ micBtn.classList.remove('bg-red-600', 'hover:bg-red-700');
571
+ micBtn.classList.add('bg-gray-700', 'hover:bg-gray-600');
572
+ }
573
+ });
574
+
575
+ // Toggle video on/off
576
+ const videoBtn = document.querySelector('.control-btn:nth-child(2)');
577
+ let isVideoOff = false;
578
+
579
+ videoBtn.addEventListener('click', () => {
580
+ isVideoOff = !isVideoOff;
581
+ const icon = videoBtn.querySelector('i');
582
+ if (isVideoOff) {
583
+ icon.classList.remove('fa-video');
584
+ icon.classList.add('fa-video-slash');
585
+ videoBtn.classList.add('bg-red-600', 'hover:bg-red-700');
586
+ videoBtn.classList.remove('bg-gray-700', 'hover:bg-gray-600');
587
+ } else {
588
+ icon.classList.add('fa-video');
589
+ icon.classList.remove('fa-video-slash');
590
+ videoBtn.classList.remove('bg-red-600', 'hover:bg-red-700');
591
+ videoBtn.classList.add('bg-gray-700', 'hover:bg-gray-600');
592
+ }
593
+ });
594
+
595
+ // Leave meeting button
596
+ const leaveBtn = document.getElementById('leave-btn');
597
+ leaveBtn.addEventListener('click', () => {
598
+ if (confirm('Voulez-vous vraiment quitter la réunion ?')) {
599
+ alert('Vous avez quitté la réunion');
600
+ // In a real app, this would redirect or close the meeting
601
+ }
602
+ });
603
+
604
+ // Simulate video streams (in a real app, this would be WebRTC)
605
+ const videoElements = document.querySelectorAll('video');
606
+ if (videoElements.length > 0) {
607
+ // Try to get user media for the first video (local stream)
608
+ navigator.mediaDevices.getUserMedia({ video: true, audio: false })
609
+ .then(stream => {
610
+ videoElements[0].srcObject = stream;
611
+ })
612
+ .catch(err => {
613
+ console.error('Error accessing camera:', err);
614
+ });
615
+
616
+ // For demo purposes, we'll just show a placeholder for other videos
617
+ for (let i = 1; i < videoElements.length; i++) {
618
+ videoElements[i].poster = 'https://placehold.co/600x400/1e293b/ffffff?text=Participant';
619
+ }
620
+ }
621
+ </script>
622
+ <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=cansim/https-cansim-med-com" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
623
+ </html>