-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlobby.html
108 lines (96 loc) · 3.7 KB
/
lobby.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lobby</title>
<link rel="stylesheet" href="lobby-style.css">
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #2c3e50; /* Dark background color */
color: #ecf0f1; /* Light text color */
}
#lobby-container {
display: flex;
align-items: center;
justify-content: center;
/* height: 100vh; */
min-height: 100vh; /* Set minimum height to full viewport height */
margin-bottom: -50px;
}
#join-form {
background-color: #34495e; /* Darker form background color */
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Darker box shadow */
padding: 20px;
text-align: center;
}
#join-form input {
width: 100%;
padding: 10px;
margin-bottom: 10px;
box-sizing: border-box;
background-color: #2c3e50; /* Dark background color for input */
color: #ecf0f1; /* Light text color for input */
border: 1px solid #34495e; /* Darker border color */
border-radius: 4px;
}
#join-form input[type="submit"],
#start-call-btn {
background-color: #3498db; /* Dark blue button color */
color: #ecf0f1; /* Light text color for button */
cursor: pointer;
transition: background-color 0.3s ease;
border: none;
border-radius: 4px;
padding: 10px;
width: 100%;
}
#join-form input[type="submit"]:hover,
#start-call-btn:hover {
background-color: #2980b9; /* Darker blue on hover */
}
#footer {
text-align: center;
padding: 10px;
background-color: #34495e; /* Darker footer background color */
position: fixed;
bottom: 0;
width: 100%;
color: #ecf0f1; /* Light text color for footer */
margin-top: 50px; /* Adjust margin to position the footer */
}
</style>
</head>
<body>
<main id="lobby-container">
<form id="join-form">
<h2 style="color: #ecf0f1;">Join or Start a Call</h2>
<input type="text" name="invite_link" placeholder="Enter Invite Code" required>
<input type="submit" value="Join Room">
<button id="start-call-btn" type="button">Start a Call</button>
</form>
</main>
<footer id="footer">
videocall-project by Gift Jeremiah.
<a href="https://ng.linkedin.com/in/gift-jeremiah-1a413024b" style="color: #ecf0f1; text-decoration: underline;" target="_blank">LinkedIn</a>
|
<a href="https://github.com/giftthedeveloper" style="color: #ecf0f1; text-decoration: underline;" target="_blank">GitHub Repo</a>
</footer>
<script>
document.getElementById('join-form').addEventListener('submit', (e) => {
e.preventDefault();
let inviteCode = e.target.invite_link.value;
window.location = `index.html?room=${inviteCode}`;
});
document.getElementById('start-call-btn').addEventListener('click', () => {
const randomRoomId = Math.random().toString(36).substring(2, 14);
window.location = `index.html?room=${randomRoomId}`;
});
</script>
</body>
</html>