forked from gbowne1/codestream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
237 lines (214 loc) · 7.64 KB
/
index.html
File metadata and controls
237 lines (214 loc) · 7.64 KB
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
<!doctype html>
<html lang="en">
<head>
<!-- ================= BASIC META ================= -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#ffffff" />
<!-- ================= SECURITY (CSP) ================= -->
<meta
http-equiv="Content-Security-Policy"
content="
default-src 'self';
script-src 'self' https://cdn.jsdelivr.net;
style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://fonts.googleapis.com;
font-src 'self' https://cdn.jsdelivr.net https://fonts.gstatic.com data:;
img-src 'self' data: https:;
connect-src 'self';
object-src 'none';
base-uri 'self';
frame-ancestors 'none';
"
/>
<!-- ================= SEO ================= -->
<title>DevStream | Live Coding & Game Development</title>
<meta
name="description"
content="DevStream is a live streaming platform for developers, coders, and game creators."
/>
<meta
name="keywords"
content="live coding, game development, programming, software, streaming"
/>
<meta name="author" content="DevStream" />
<!-- ================= OPEN GRAPH ================= -->
<meta property="og:title" content="DevStream" />
<meta
property="og:description"
content="Stream live coding, software development, and game dev sessions."
/>
<meta property="og:type" content="website" />
<meta property="og:image" content="/src/assets/images/banner.jpg" />
<!-- ================= TWITTER ================= -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="DevStream" />
<meta
name="twitter:description"
content="Live coding and game development streams."
/>
<meta name="twitter:image" content="/src/assets/images/banner.jpg" />
<!-- ================= PWA ================= -->
<link rel="manifest" href="/manifest.json" />
<!-- ================= ICONS & STYLES ================= -->
<link rel="icon" href="/favicon.ico" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
crossorigin="anonymous"
/>
<link
href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/css/all.min.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="/src/css/style.css" />
</head>
<body class="bg-light">
<!-- ================= HEADER ================= -->
<header class="sticky-top bg-white shadow-sm">
<div
class="container d-flex justify-content-between align-items-center py-3"
>
<a href="/" class="text-decoration-none text-dark">
<h1 class="h4 mb-0">DevStream</h1>
</a>
<nav aria-label="Main navigation">
<ul class="nav align-items-center gap-3">
<li class="nav-item"><a href="#" class="nav-link">Home</a></li>
<li class="nav-item"><a href="#" class="nav-link">Browse</a></li>
<li class="nav-item"><a href="#" class="nav-link">Schedule</a></li>
<li class="nav-item">
<button
id="themeToggle"
class="btn btn-sm btn-outline-secondary"
aria-label="Toggle theme"
>
<i class="fas fa-moon"></i>
</button>
</li>
<li class="nav-item">
<button
id="drawerToggle"
class="btn btn-sm btn-outline-success"
aria-label="Open category menu"
aria-expanded="false"
aria-controls="categoryDrawer"
>
<i class="fas fa-bars"></i>
</button>
</li>
</ul>
</nav>
</div>
</header>
<!-- ================= CATEGORY DRAWER ================= -->
<aside
id="categoryDrawer"
class="position-fixed top-0 start-0 h-100 bg-dark text-white p-4 shadow-lg overflow-auto"
aria-hidden="true"
>
<div class="d-flex justify-content-between align-items-center mb-4">
<h2 class="h5 mb-0">Categories</h2>
<button
id="drawerClose"
class="btn btn-sm btn-light"
aria-label="Close menu"
>
×
</button>
</div>
<ul class="list-unstyled">
<li>
<a class="d-block py-2 px-3 text-white text-decoration-none" href="#"
>Game Development</a
>
</li>
<li>
<a class="d-block py-2 px-3 text-white text-decoration-none" href="#"
>Web Development</a
>
</li>
<li>
<a class="d-block py-2 px-3 text-white text-decoration-none" href="#"
>Software Development</a
>
</li>
<li>
<a class="d-block py-2 px-3 text-white text-decoration-none" href="#"
>Mobile Development</a
>
</li>
<li>
<a class="d-block py-2 px-3 text-white text-decoration-none" href="#"
>Cybersecurity</a
>
</li>
<li>
<a class="d-block py-2 px-3 text-white text-decoration-none" href="#"
>Leetcode & Co-working</a
>
</li>
</ul>
</aside>
<!-- Drawer Overlay -->
<div
id="drawerOverlay"
class="position-fixed top-0 start-0 w-100 h-100 bg-black bg-opacity-50 d-none"
></div>
<!-- ================= MAIN ================= -->
<main class="container mt-4">
<!-- Streams -->
<section aria-labelledby="live-heading">
<h2 id="live-heading" class="h4 mb-4">Live Streams</h2>
<!-- Search -->
<div class="input-group mb-4">
<input
type="search"
id="searchInput"
class="form-control"
placeholder="Search streams..."
aria-label="Search streams"
/>
<button
id="clearSearch"
class="btn btn-outline-secondary d-none"
aria-label="Clear search"
>
<i class="fas fa-times"></i>
</button>
</div>
<!-- Stream Grid -->
<div
id="streamGrid"
class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4"
>
<div id="loadingState" class="text-center py-5">
<div class="spinner-border text-primary" role="status"></div>
<p class="mt-3 text-muted">Loading live streams...</p>
</div>
</div>
</section>
<!-- Popular Tags -->
<section class="mt-5">
<h2 class="h5 mb-3">Popular Tags</h2>
<div id="popularTags" class="d-flex flex-wrap gap-2">
<span class="badge bg-primary tag-filter">JavaScript</span>
<span class="badge bg-primary tag-filter">Python</span>
<span class="badge bg-primary tag-filter">Rust</span>
<span class="badge bg-success tag-filter">English</span>
<span class="badge bg-light text-dark border tag-filter">Linux</span>
</div>
</section>
</main>
<!-- ================= FOOTER ================= -->
<footer class="text-center py-4 mt-5 border-top bg-light">
<p class="mb-0 text-muted">© 2025 DevStream. All rights reserved.</p>
</footer>
<!-- ================= SCRIPTS ================= -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
crossorigin="anonymous"
></script>
<script type="module" src="/src/js/main.js"></script>
</body>
</html>