-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
219 lines (191 loc) · 6.05 KB
/
index.html
File metadata and controls
219 lines (191 loc) · 6.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap + Semantic HTML Boilerplate</title>
<!-- Bootstrap CSS ONLY -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
>
</head>
<body class="bg-light">
<!-- ================= HEADER ================= -->
<header class="bg-dark text-white py-3">
<div class="container d-flex justify-content-between align-items-center">
<h1 class="h4 mb-0">Learning Playground</h1>
<nav aria-label="Main navigation">
<ul class="nav">
<li class="nav-item">
<a class="nav-link text-white" href="#features">Features</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#dashboard">Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#contact">Contact</a>
</li>
</ul>
</nav>
</div>
</header>
<!-- ================= MAIN ================= -->
<main class="container my-5">
<!-- ---------- HERO ---------- -->
<section class="mb-5">
<div class="p-5 bg-white rounded shadow-sm">
<h2>JavaScript Enhancement Zone</h2>
<p class="lead">
This page works without JavaScript — but it’s designed to be improved with it.
</p>
<button
class="btn btn-primary"
id="primary-action-btn"
>
Click Me
</button>
<p class="mt-3 text-muted">
(Perfect place for event listeners, state, and DOM manipulation.)
</p>
</div>
</section>
<!-- ---------- FEATURES ---------- -->
<section id="features" class="mb-5">
<header class="mb-3">
<h2>Features</h2>
</header>
<div class="row g-4">
<article class="col-md-4">
<div class="card h-100">
<div class="card-body">
<h3 class="h5">Counter</h3>
<p>Increment or decrement a value.</p>
<div class="d-flex align-items-center gap-2">
<button class="btn btn-outline-secondary" id="decrement-btn">−</button>
<span id="counter-value" class="fw-bold">0</span>
<button class="btn btn-outline-secondary" id="increment-btn">+</button>
</div>
</div>
</div>
</article>
<article class="col-md-4">
<div class="card h-100">
<div class="card-body">
<h3 class="h5">Toggle Alert</h3>
<p>Show or hide feedback messages.</p>
<button class="btn btn-warning" id="toggle-alert-btn">
Toggle Alert
</button>
<div
class="alert alert-warning mt-3 d-none"
role="alert"
id="alert-box"
>
This alert is controlled with JavaScript.
</div>
</div>
</div>
</article>
<article class="col-md-4">
<div class="card h-100">
<div class="card-body">
<h3 class="h5">Tabs / Views</h3>
<p>Swap content without page reloads.</p>
<div class="btn-group" role="group">
<button class="btn btn-outline-primary" data-view="one">
View One
</button>
<button class="btn btn-outline-primary" data-view="two">
View Two
</button>
</div>
<div class="mt-3">
<p id="view-output">Select a view.</p>
</div>
</div>
</div>
</article>
</div>
</section>
<!-- ---------- DASHBOARD ---------- -->
<section id="dashboard" class="mb-5">
<header class="mb-3">
<h2>Dashboard</h2>
</header>
<div class="table-responsive bg-white rounded shadow-sm p-3">
<table class="table table-striped mb-0">
<caption class="text-start">
Data table ready for sorting, filtering, or fetching.
</caption>
<thead>
<tr>
<th scope="col">User</th>
<th scope="col">Status</th>
<th scope="col">Score</th>
</tr>
</thead>
<tbody id="data-table-body">
<tr>
<td>Alice</td>
<td>Active</td>
<td>82</td>
</tr>
<tr>
<td>Bob</td>
<td>Inactive</td>
<td>64</td>
</tr>
</tbody>
</table>
</div>
</section>
<!-- ---------- CONTACT ---------- -->
<section id="contact">
<header class="mb-3">
<h2>Contact</h2>
</header>
<form class="bg-white p-4 rounded shadow-sm" novalidate>
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input
type="text"
id="name"
class="form-control"
required
>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input
type="email"
id="email"
class="form-control"
required
>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message</label>
<textarea
id="message"
class="form-control"
rows="4"
></textarea>
</div>
<button type="submit" class="btn btn-success">
Send Message
</button>
<p class="text-muted mt-2">
Ideal for form validation, submission handling, and async feedback.
</p>
</form>
</section>
</main>
<!-- ================= FOOTER ================= -->
<footer class="bg-dark text-white mt-5 py-3">
<div class="container text-center">
<small>© 2026 Learning Playground</small>
</div>
</footer>
</body>
</html>