Spaces:
Sleeping
Sleeping
File size: 21,563 Bytes
5a0b7f3 c30db15 5a0b7f3 435d005 5a0b7f3 c30db15 5a0b7f3 17c6267 5a0b7f3 17c6267 5a0b7f3 17c6267 5a0b7f3 17c6267 aa5cdae c30db15 aa5cdae 17c6267 5a0b7f3 17c6267 435d005 5a0b7f3 17c6267 5a0b7f3 17c6267 c30db15 17c6267 5c9dc1a 17c6267 5a0b7f3 c30db15 5a0b7f3 435d005 5a0b7f3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Huddle - Video Calls</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
<link rel="stylesheet" href="/static/styles.css">
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- Landing / Join Screen -->
<div id="joinScreen" class="screen active">
<div class="join-container">
<div class="logo-section">
<div class="logo"><span class="material-icons-round">videocam</span></div>
<h1>Huddle</h1>
<p class="subtitle">Simple, secure video calls in your browser</p>
</div>
<div class="join-card">
<div class="preview-container">
<video id="previewVideo" autoplay muted playsinline></video>
<div class="preview-placeholder" id="previewPlaceholder">
<span class="material-icons-round">videocam_off</span>
<p>Camera preview</p>
</div>
<div class="preview-controls">
<button id="previewMic" class="ctrl-btn active" title="Toggle microphone">
<span class="icon-on"><span class="material-icons-round">mic</span></span>
<span class="icon-off"><span class="material-icons-round">mic_off</span></span>
</button>
<button id="previewCam" class="ctrl-btn active" title="Toggle camera">
<span class="icon-on"><span class="material-icons-round">videocam</span></span>
<span class="icon-off"><span class="material-icons-round">videocam_off</span></span>
</button>
</div>
</div>
<input type="text" id="nameInput" placeholder="Your name" maxlength="50" autocomplete="name">
<div class="join-actions">
<button id="newMeetingBtn" class="btn btn-primary">
<span class="material-icons-round">add</span> New meeting
</button>
<div class="divider"><span>or</span></div>
<div class="join-row">
<input type="text" id="roomInput" placeholder="Enter room code" maxlength="20">
<button id="joinBtn" class="btn btn-secondary">Join</button>
</div>
</div>
</div>
</div>
</div>
<!-- Call Screen -->
<div id="callScreen" class="screen">
<!-- Waiting Room Overlay -->
<div id="waitingRoomOverlay" class="overlay-screen" style="display:none">
<div class="overlay-card">
<span class="material-icons-round" style="font-size:48px;color:var(--blue-600)">hourglass_top</span>
<h2>Waiting Room</h2>
<p id="waitingRoomMsg">Please wait for the host to let you in...</p>
<button id="waitingLeaveBtn" class="btn btn-secondary" style="margin-top:16px">Leave</button>
</div>
</div>
<!-- Reactions Overlay -->
<div id="reactionsOverlay" class="reactions-overlay"></div>
<div class="call-layout">
<!-- Video Grid -->
<div class="video-grid" id="videoGrid">
<!-- Local video -->
<div class="video-tile" id="localTile" data-peer="local">
<video id="localVideo" autoplay muted playsinline></video>
<div class="video-off-overlay" id="localVideoOff" style="display:none">
<div class="avatar"><span class="material-icons-round">person</span></div>
</div>
<div class="hand-indicator" id="localHand" style="display:none">β</div>
<div class="tile-label">
<span class="tile-name" id="localName">You</span>
<span class="mic-indicator" id="localMicIndicator"><span class="material-icons-round">mic</span></span>
</div>
</div>
</div>
<!-- Side Panels -->
<!-- Chat Panel -->
<div class="chat-panel" id="chatPanel">
<div class="chat-header">
<h3>Chat</h3>
<button id="closeChatBtn" class="icon-btn">β</button>
</div>
<div class="chat-messages" id="chatMessages"></div>
<div class="chat-input-row">
<input type="text" id="chatInput" placeholder="Type a message..." maxlength="500">
<button id="sendChatBtn" class="btn btn-small">Send</button>
</div>
</div>
<!-- Participants Panel -->
<div class="side-panel" id="participantsPanel">
<div class="panel-header-bar">
<h3>Participants</h3>
<button id="closeParticipantsBtn" class="icon-btn">β</button>
</div>
<div class="host-controls" id="hostControls" style="display:none">
<button id="muteAllBtn" class="btn btn-small btn-outline">Mute All</button>
<button id="lowerAllHandsBtn" class="btn btn-small btn-outline">Lower All Hands</button>
<div class="toggle-row">
<label><input type="checkbox" id="waitingRoomToggle"> Waiting Room</label>
<label><input type="checkbox" id="lockMeetingToggle"> Lock Meeting</label>
</div>
</div>
<!-- Waiting list (host only) -->
<div id="waitingList" style="display:none">
<h4 class="section-title">Waiting Room</h4>
<div id="waitingListContent"></div>
</div>
<h4 class="section-title" id="participantCountTitle">In Meeting (1)</h4>
<div id="participantList"></div>
</div>
<!-- Whiteboard Panel -->
<div class="side-panel wide-panel" id="whiteboardPanel">
<div class="panel-header-bar">
<h3>Whiteboard</h3>
<div class="wb-tools">
<input type="color" id="wbColor" value="#1a73e8" title="Brush color">
<input type="range" id="wbSize" min="1" max="20" value="3" title="Brush size">
<button id="wbEraser" class="btn btn-small btn-outline">Eraser</button>
<button id="wbClear" class="btn btn-small btn-outline">Clear</button>
</div>
<button id="closeWhiteboardBtn" class="icon-btn">β</button>
</div>
<canvas id="whiteboardCanvas" width="900" height="500"></canvas>
</div>
<!-- Polls Panel -->
<div class="side-panel" id="pollsPanel">
<div class="panel-header-bar">
<h3>Polls</h3>
<button id="closePollsBtn" class="icon-btn">β</button>
</div>
<div id="createPollSection" style="display:none">
<input type="text" id="pollQuestion" placeholder="Poll question..." maxlength="200">
<div id="pollOptionsContainer">
<input type="text" class="poll-option-input" placeholder="Option 1" maxlength="100">
<input type="text" class="poll-option-input" placeholder="Option 2" maxlength="100">
</div>
<button id="addPollOption" class="text-btn">+ Add option</button>
<button id="launchPollBtn" class="btn btn-small" style="width:100%;margin-top:8px">Launch Poll</button>
</div>
<div id="activePollsList"></div>
</div>
<!-- Meeting Notes Panel -->
<div class="side-panel" id="notesPanel">
<div class="panel-header-bar">
<h3>Meeting Notes</h3>
<button id="closeNotesBtn" class="icon-btn">β</button>
</div>
<textarea id="notesTextarea" placeholder="Type your meeting notes here..."></textarea>
<div class="notes-sections">
<details id="notesPollsSummary">
<summary>Polls Summary</summary>
<div id="notesPollsContent" class="notes-auto-content">No polls yet.</div>
</details>
<details id="notesWhiteboardSummary">
<summary>Whiteboard Snapshot</summary>
<div id="notesWhiteboardContent" class="notes-auto-content"><em>Open whiteboard to capture.</em></div>
</details>
<details id="notesBreakoutSummary">
<summary>Breakout Rooms</summary>
<div id="notesBreakoutContent" class="notes-auto-content">No breakout rooms yet.</div>
</details>
<details id="notesTranscriptSummary">
<summary>Discussion Transcript</summary>
<div id="notesTranscriptContent" class="notes-auto-content"><em>Enable captions (CC) to auto-capture discussion.</em></div>
</details>
</div>
<div style="display:flex;gap:8px;margin-top:8px">
<button id="generateSummaryBtn" class="btn btn-small" style="flex:1"><span class="material-icons-round" style="font-size:16px;vertical-align:middle">auto_awesome</span> Generate Summary</button>
<button id="saveNotesBtn" class="btn btn-small" style="flex:1"><span class="material-icons-round" style="font-size:16px;vertical-align:middle">save</span> Save Notes</button>
</div>
</div>
<!-- Breakout Rooms Panel -->
<div class="side-panel" id="breakoutPanel">
<div class="panel-header-bar">
<h3>Breakout Rooms</h3>
<button id="closeBreakoutBtn" class="icon-btn">β</button>
</div>
<div id="breakoutSetup" style="display:none">
<div id="breakoutRoomsList"></div>
<button id="addBreakoutRoom" class="text-btn">+ Add room</button>
<button id="startBreakoutBtn" class="btn btn-small" style="width:100%;margin-top:8px">Start Breakout</button>
</div>
<div id="breakoutActive" style="display:none">
<div id="breakoutActiveList"></div>
<button id="endBreakoutBtn" class="btn btn-small" style="width:100%;margin-top:8px;background:var(--red-500)">End Breakout</button>
</div>
</div>
</div>
<!-- Bottom Controls -->
<div class="call-controls">
<div class="controls-left">
<span class="room-info" id="roomInfo"></span>
<button id="copyLinkBtn" class="text-btn" title="Copy invite link"><span class="material-icons-round">content_copy</span> Copy link</button>
<span class="meeting-timer" id="meetingTimer">00:00</span>
<button id="viewToggleBtn" class="text-btn" title="Toggle view"><span class="material-icons-round">grid_view</span> <span id="viewToggleLabel">Gallery</span></button>
</div>
<div class="controls-center">
<button id="micBtn" class="ctrl-btn active" title="Toggle microphone">
<span class="icon-on"><span class="material-icons-round">mic</span></span>
<span class="icon-off"><span class="material-icons-round">mic_off</span></span>
</button>
<button id="camBtn" class="ctrl-btn active" title="Toggle camera">
<span class="icon-on"><span class="material-icons-round">videocam</span></span>
<span class="icon-off"><span class="material-icons-round">videocam_off</span></span>
</button>
<button id="screenBtn" class="ctrl-btn" title="Share screen">
<span class="icon-on"><span class="material-icons-round">screen_share</span></span>
<span class="icon-off"><span class="material-icons-round">stop_screen_share</span></span>
</button>
<button id="recordBtn" class="ctrl-btn" title="Record meeting">
<span class="icon-on"><span class="material-icons-round">fiber_manual_record</span></span>
<span class="icon-off"><span class="material-icons-round">stop_circle</span></span>
</button>
<!-- Reactions dropdown -->
<div class="ctrl-dropdown">
<button id="reactBtn" class="ctrl-btn" title="Reactions">
<span class="material-icons-round">sentiment_satisfied_alt</span>
</button>
<div class="dropdown-menu" id="reactionsMenu">
<button class="reaction-btn" data-emoji="π">π</button>
<button class="reaction-btn" data-emoji="π">π</button>
<button class="reaction-btn" data-emoji="β€οΈ">β€οΈ</button>
<button class="reaction-btn" data-emoji="π">π</button>
<button class="reaction-btn" data-emoji="π">π</button>
<button class="reaction-btn" data-emoji="π€">π€</button>
</div>
</div>
<button id="handBtn" class="ctrl-btn" title="Raise hand">
<span class="material-icons-round">pan_tool</span>
</button>
<button id="chatBtn" class="ctrl-btn" title="Toggle chat">
<span class="icon-on"><span class="material-icons-round">chat</span></span>
<span class="icon-off"><span class="material-icons-round">chat_bubble_outline</span></span>
</button>
<button id="participantsBtn" class="ctrl-btn" title="Participants">
<span class="material-icons-round">people</span>
</button>
<button id="captionBtn" class="ctrl-btn" title="Toggle captions">
<span class="material-icons-round">closed_caption_off</span>
</button>
<!-- More menu -->
<div class="ctrl-dropdown">
<button id="moreBtn" class="ctrl-btn" title="More">
<span class="material-icons-round">more_vert</span>
</button>
<div class="dropdown-menu dropdown-up" id="moreMenu">
<button id="whiteboardBtn" class="dropdown-icon-btn" title="Whiteboard"><span class="material-icons-round">draw</span></button>
<button id="pollsBtn" class="dropdown-icon-btn" title="Polls"><span class="material-icons-round">poll</span></button>
<button id="breakoutBtn" class="dropdown-icon-btn" title="Breakout Rooms"><span class="material-icons-round">dashboard</span></button>
<button id="notesBtn" class="dropdown-icon-btn" title="Meeting Notes"><span class="material-icons-round">description</span></button>
<button id="bgBlurBtn" class="dropdown-icon-btn" title="Background Blur"><span class="material-icons-round">blur_on</span></button>
<button id="virtualBgBtn" class="dropdown-icon-btn" title="Virtual Background"><span class="material-icons-round">wallpaper</span></button>
<button id="deviceSelectBtn" class="dropdown-icon-btn" title="Audio/Video Settings"><span class="material-icons-round">settings</span></button>
<button id="shortcutsBtn" class="dropdown-icon-btn" title="Keyboard Shortcuts"><span class="material-icons-round">keyboard</span></button>
</div>
</div>
<button id="leaveBtn" class="ctrl-btn leave" title="Leave call">
<span class="material-icons-round">call_end</span>
</button>
</div>
<div class="controls-right">
<span class="peer-count" id="peerCount">1 participant</span>
</div>
</div>
</div>
<!-- Captions Overlay -->
<div id="captionsOverlay" class="captions-overlay" style="display:none">
<div id="captionsContent" class="captions-content"></div>
</div>
<div class="toast" id="toast"></div>
<!-- Device Selector Modal -->
<div class="modal-overlay" id="deviceModal" style="display:none">
<div class="modal-card">
<div class="modal-header"><h3>Audio & Video Settings</h3><button class="icon-btn" id="closeDeviceModal">β</button></div>
<div class="modal-body">
<label>Camera<select id="camSelect"></select></label>
<label>Microphone<select id="micSelect"></select></label>
<label>Speaker<select id="speakerSelect"></select></label>
</div>
</div>
</div>
<!-- Virtual Background Modal -->
<div class="modal-overlay" id="vbgModal" style="display:none">
<div class="modal-card" style="max-width:520px">
<div class="modal-header"><h3>Virtual Background</h3><button class="icon-btn" id="closeVbgModal">β</button></div>
<div class="modal-body vbg-grid">
<div class="vbg-option active" data-bg="none" title="None"><span class="material-icons-round">close</span><span>None</span></div>
<div class="vbg-option" data-bg="blur" title="Blur"><span class="material-icons-round">blur_on</span><span>Blur</span></div>
<div class="vbg-option" data-bg="scene:office" title="Office"><div class="vbg-preview" id="vbgPreviewOffice"></div><span>Office</span></div>
<div class="vbg-option" data-bg="scene:livingroom" title="Living Room"><div class="vbg-preview" id="vbgPreviewLivingroom"></div><span>Living Room</span></div>
<div class="vbg-option" data-bg="scene:nature" title="Nature"><div class="vbg-preview" id="vbgPreviewNature"></div><span>Nature</span></div>
<div class="vbg-option" data-bg="scene:beach" title="Beach"><div class="vbg-preview" id="vbgPreviewBeach"></div><span>Beach</span></div>
<div class="vbg-option" data-bg="scene:mountain" title="Mountain"><div class="vbg-preview" id="vbgPreviewMountain"></div><span>Mountain</span></div>
<div class="vbg-option" data-bg="scene:city" title="City Night"><div class="vbg-preview" id="vbgPreviewCity"></div><span>City Night</span></div>
<div class="vbg-option" data-bg="scene:abstract" title="Abstract"><div class="vbg-preview" id="vbgPreviewAbstract"></div><span>Abstract</span></div>
<div class="vbg-option" data-bg="scene:classroom" title="Classroom"><div class="vbg-preview" id="vbgPreviewClassroom"></div><span>Classroom</span></div>
</div>
</div>
</div>
<!-- Keyboard Shortcuts Modal -->
<div class="modal-overlay" id="shortcutsModal" style="display:none">
<div class="modal-card">
<div class="modal-header"><h3>Keyboard Shortcuts</h3><button class="icon-btn" id="closeShortcutsModal">β</button></div>
<div class="modal-body shortcuts-list">
<div class="shortcut-row"><kbd>M</kbd><span>Toggle microphone</span></div>
<div class="shortcut-row"><kbd>V</kbd><span>Toggle camera</span></div>
<div class="shortcut-row"><kbd>S</kbd><span>Toggle screen share</span></div>
<div class="shortcut-row"><kbd>H</kbd><span>Raise / lower hand</span></div>
<div class="shortcut-row"><kbd>C</kbd><span>Toggle chat</span></div>
<div class="shortcut-row"><kbd>R</kbd><span>Toggle recording</span></div>
<div class="shortcut-row"><kbd>G</kbd><span>Toggle gallery / speaker view</span></div>
<div class="shortcut-row"><kbd>F</kbd><span>Toggle fullscreen</span></div>
<div class="shortcut-row"><kbd>Esc</kbd><span>Leave call / close modal</span></div>
<div class="shortcut-row"><kbd>?</kbd><span>Show shortcuts</span></div>
</div>
</div>
</div>
<script src="/static/app.js"></script>
</body>
</html>
|