File size: 4,241 Bytes
358b0a3 7856603 358b0a3 33b0eee 358b0a3 33b0eee 45acfaf 358b0a3 7856603 358b0a3 33b0eee 358b0a3 33b0eee 358b0a3 33b0eee 7856603 33b0eee 7856603 33b0eee 7856603 33b0eee 674d07e 7856603 33b0eee 674d07e 358b0a3 33b0eee 358b0a3 9b3231e 33b0eee 358b0a3 33b0eee 358b0a3 7856603 358b0a3 | 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 | <!DOCTYPE html>
<html class="dark">
<head>
<title>BaatCheet | Secure P2P Video Chat</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="BaatCheet - Secure peer-to-peer video communication platform">
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
</head>
<body class="min-h-screen">
<!-- Background elements -->
<div class="bg-mesh"></div>
<div class="bg-noise"></div>
<div class="bg-grid"></div>
<div class="bg-glow" style="top: 20%; left: 20%"></div>
<div class="bg-glow" style="bottom: 20%; right: 20%"></div>
<!-- Main container -->
<div class="container mx-auto px-4 py-8">
<header class="fixed top-0 left-0 w-full p-4 flex flex-col md:flex-row justify-between items-center shadow-lg">
<div class="text-center md:text-left mb-4 md:mb-0">
<h1 class="text-4xl font-bold mb-1">BaatCheet</h1>
<p class="text-gray-400 text-lg">Secure peer-to-peer video communication</p>
<p id="roomId" class="text-gray-400 text-md mt-1 hidden"></p>
</div>
<div class="flex flex-col md:flex-row gap-4 input-container">
<input type="text" id="roomInput" placeholder="Enter Room ID"
class="bg-gray-800 border border-gray-700 rounded px-4 py-2" aria-label="Room ID">
<div class="flex gap-2">
<button id="joinBtn" class="btn flex-grow">Join Room</button>
<button id="createBtn" class="btn flex-grow">Create Room</button>
</div>
</div>
</header>
<div id="loading" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div class="bg-gray-800 p-6 rounded-lg shadow-xl text-center">
<div class="spinner mb-4 mx-auto"></div>
<p id="loadingText" class="text-white">Initializing media devices...</p>
</div>
</div>
<div class="video-grid">
<div class="video-container">
<div class="card-header flex items-center justify-between">
<div class="flex items-center">
<span class="status-indicator local-status"></span>
<h3 class="text-lg font-semibold">Local Video</h3>
</div>
<div class="flex items-center gap-2">
<button id="toggleVideo" class="control-btn" title="Toggle Video">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"></path>
</svg>
</button>
<button id="toggleAudio" class="control-btn" title="Toggle Audio">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"></path>
</svg>
</button>
<span class="text-sm text-gray-400">You</span>
</div>
</div>
<div class="p-4">
<video id="localVideo" autoplay muted playsinline></video>
</div>
</div>
</div>
</div>
<div id="notification" class="notification"></div>
<!-- Scripts -->
<script src="/socket.io/socket.io.js"></script>
<script type="module" src="js/app.js"></script>
</body>
</html> |