-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
368 lines (326 loc) · 14.8 KB
/
index.html
File metadata and controls
368 lines (326 loc) · 14.8 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
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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!DOCTYPE html>
<html lang="en" data-color-scheme="dark">
<div id="loader">
<div class="loader-content">
<h1 class="loader-title">ELECTROMOS</h1>
<div class="progress-container">
<div class="progress-bar" id="progress-bar"></div>
</div>
</div>
</div>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Electromos - Electronics Club IIT Bhilai</title>
<link rel="stylesheet" href="style.css">
</head>
<body class="dark-theme">
<video autoplay muted loop playsinline id="bg-video">
<source src="mybg.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
<!-- Navbar -->
<nav class="navbar">
<div class="nav-container">
<div class="nav-logo">
<img src="images/logo.png" alt="Club Logo" class="logo-img">
<span class="logo-text">ELECTROMOS</span>
</div>
<div class="nav-menu" id="nav-menu">
<a href="#home" class="nav-link">Home</a>
<a href="#events" class="nav-link">Events</a>
<a href="#highlights" class="nav-link">Highlights</a>
<a href="#simulations" class="nav-link">Simulations</a>
<a href="#projects" class="nav-link">Projects</a>
<a href="#articles" class="nav-link">Articles</a>
<a href="#contact" class="nav-link">Contact</a>
</div>
<div class="nav-controls">
<button class="mobile-menu-toggle" id="mobile-menu-toggle">
<span></span>
<span></span>
<span></span>
</button>
</div>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="hero">
<div class="hero-content">
<h1 class="hero-title">
<span class="hero-main">ELECTROMOS</span>
<span class="hero-sub">Electronics Club • IIT Bhilai</span>
</h1>
<p class="hero-description">
Innovating the future through cutting-edge electronics, robotics, and embedded systems
</p>
<div class="hero-buttons">
<button class="btn btn-primary" onclick="window.location.href='https://electromos-soe2-0.netlify.app'">
Explore SOE 2.0
</button>
<button class="btn btn-secondary" onclick="scrollToSection('events')">Explore Events</button>
</div>
</div>
<div class="scroll-indicator">
<div class="scroll-arrow"></div>
</div>
</section>
<!-- Events Section -->
<section id="events" class="events-section">
<div class="container">
<h2 class="section-title">Upcoming Events</h2>
<p class="section-subtitle">Join us for exciting workshops, competitions, and tech talks</p>
<div class = "events-carousel">
<div class="events-grid" id="events-grid">
<!-- Events will be populated by JavaScript -->
</div>
<div class="carousel-nav">
<button class="carousel-btn prev" id="events-prev"><</button>
<div class="carousel-dots" id="events-dots"></div>
<button class="carousel-btn next" id="events-next">></button>
</div>
</div>
</div>
</section>
<!-- Highlights Section -->
<section id="highlights" class="highlights-section">
<div class="container">
<h2 class="section-title">Event Highlights</h2>
<p class="section-subtitle">Celebrating our achievements and memorable moments</p>
<div class="highlights-carousel" id="highlights-carousel">
<div class="highlights-container" id="highlights-container">
<!-- Highlights will be populated by JavaScript -->
</div>
<div class="carousel-nav">
<button class="carousel-btn prev" id="highlights-prev"><</button>
<div class="carousel-dots" id="highlights-dots"></div>
<button class="carousel-btn next" id="highlights-next">></button>
</div>
</div>
</div>
</section>
<!-- Simulations Section -->
<section id="simulations" class="simulations-section">
<div class="container">
<h2 class="section-title">Interactive Simulations</h2>
<p class="section-subtitle">Explore electronics concepts through hands-on simulations</p>
<div class="simulations-grid">
<!-- Signal Processing Simulation -->
<div class="simulation-card active" id="signal-sim">
<div class="sim-header" onclick="toggleSimulation('signal-sim')">
<h3>Signal Processing Lab</h3>
<span class="sim-toggle">−</span>
</div>
<div class="sim-content">
<div class="sim-controls">
<div class="control-group">
<label>Frequency (Hz)</label>
<input type="range" id="freq-slider" min="1" max="50" value="5" class="slider">
<span id="freq-value">5</span>
</div>
<div class="control-group">
<label>Amplitude</label>
<input type="range" id="amp-slider" min="0.1" max="2" step="0.1" value="1" class="slider">
<span id="amp-value">1.0</span>
</div>
<div class="control-group">
<label>Filter Type</label>
<select id="filter-select" class="form-control">
<option value="none">No Filter</option>
<option value="lowpass">Low Pass</option>
<option value="highpass">High Pass</option>
</select>
</div>
</div>
<canvas id="signal-canvas" width="600" height="300"></canvas>
</div>
</div>
<!-- Logic Gate Simulator -->
<div class="simulation-card" id="logic-sim">
<div class="sim-header" onclick="toggleSimulation('logic-sim')">
<h3>Logic Gate Simulator</h3>
<span class="sim-toggle">+</span>
</div>
<div class="sim-content">
<div class="sim-controls">
<div class="control-group">
<label>Gate Type</label>
<select id="gate-select" class="form-control">
<option value="AND">AND Gate</option>
<option value="OR">OR Gate</option>
<option value="NOT">NOT Gate</option>
<option value="XOR">XOR Gate</option>
<option value="NAND">NAND Gate</option>
<option value="NOR">NOR Gate</option>
<option value="XNOR">XNOR Gate</option>
</select>
</div>
<div class="logic-inputs">
<div class="input-group">
<label>Input A</label>
<button class="logic-toggle" id="input-a" data-state="0">0</button>
</div>
<div class="input-group" id="group-b">
<label>Input B</label>
<button class="logic-toggle" id="input-b" data-state="0">0</button>
</div>
</div>
</div>
<div class="logic-output">
<div class="output-display">
<label>Output</label>
<div class="output-led" id="logic-output">0</div>
</div>
</div>
<!-- New: truth table -->
<table id="truth-table" class="truth-table">
<thead><tr><th>A</th><th>B</th><th>Out</th></tr></thead>
<tbody></tbody>
</table>
</div>
</div>
<!-- RC Circuit Simulator -->
<div class="simulation-card" id="rc-sim">
<div class="sim-header" onclick="toggleSimulation('rc-sim')">
<h3>RC Circuit Analyzer</h3>
<span class="sim-toggle">+</span>
</div>
<div class="sim-content">
<div class="sim-controls">
<div class="control-group">
<label>Resistance (kΩ)</label>
<input type="range" id="r-slider" min="1" max="100" value="10" class="slider">
<span id="r-value">10</span>
</div>
<div class="control-group">
<label>Capacitance (μF)</label>
<input type="range" id="c-slider" min="1" max="100" value="10" class="slider">
<span id="c-value">10</span>
</div>
<div class="control-group">
<button class="btn btn-primary" id="rc-start">Start Charging</button>
<button class="btn btn-secondary" id="rc-reset">Reset</button>
</div>
</div>
<canvas id="rc-canvas" width="600" height="300"></canvas>
<div class="rc-info">
<span>Time Constant (τ): <span id="time-constant">0.1</span>s</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Projects Section -->
<section id="projects" class="projects-section">
<div class="container">
<h2 class="section-title">Our Projects</h2>
<p class="section-subtitle">Innovative solutions built by our talented members</p>
<div class="projects-grid" id="projects-grid">
<!-- Projects will be populated by JavaScript -->
</div>
</div>
</section>
<!-- Articles section-->
<section id="articles" class="articles-section">
<div class="container">
<h2 class="section-title">Articles</h2>
<p class="section-subtitle">Have a look at these interesting articles</p>
<div class="articles-carousel">
<div class="articles-grid" id="articles-grid">
<!--Articles will be popualted by javascript-->
</div>
<div class="carousel-nav">
<button class="carousel-btn prev" id="articles-prev"><</button>
<div class="carousel-dots" id="articles-dots"></div>
<button class="carousel-btn next" id="articles-next">></button>
</div>
</div>
</div>
<!--JS code for populating articles, later to be shifted in app.js file-->
<!-- <script>
fetch("articles.json")
.then(res => res.json())
.then(data => {
const container = document.getElementById("articles-grid");
data.forEach(article => {
container.innerHTML += `
<div class="article-card">
<img src="${article.thumbnail}" alt="${article.title}">
<h3>${article.title}</h3>
<p>${article.description}</p>
<a href="article.html?id=${article.id}">Read more</a>
</div>
`;
// Create dot
const dot = document.createElement('div');
dot.className = `articleDot ${index === 0 ? 'active' : ''}`;
dot.addEventListener('click', () => goToHighlight(index));
dotsContainer.appendChild(dot);
});
});
</script>
</section>
-->
<!-- Contact Section -->
<section id="contact" class="contact-section">
<div class="container">
<h2 class="section-title">Reach Out</h2>
<p class="section-subtitle">Get in touch with us for collaborations and inquiries</p>
<div class="contact-grid">
<!-- Coordinator Info -->
<div class="contact-box coordinator-info">
<img src="images/divit.png" alt="Divit Sharma" class="coordinator-img">
<h3>Divit Sharma</h3>
<p class="coordinator-title">Coordinator, Electromos Club</p>
<p>📧 divits@iitbhilai.ac.in</p>
<div class="social-links">
<a href="https://www.linkedin.com/in/divit-sharma-949811283" target="_blank" class="social-link">LinkedIn</a>
<a href="https://www.instagram.com/_divit_21/" target="_blank" class="social-link">Instagram</a>
</div>
</div>
<!-- Club Info -->
<div class="contact-box club-contact">
<h4>Club Information</h4>
<p>📧 electromos@iitbhilai.ac.in</p>
<p>🏫 IIT Bhilai, Durg, Chhattisgarh</p>
<a href="https://mail.google.com/mail/?view=cm&fs=1&to=electromos@iitbhilai.ac.in" target="_blank" class="connect-button">Connect</a>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer-content">
<div class="footer-brand">
<span class="logo-text">ELECTROMOS</span>
<p>Electronics Club • IIT Bhilai</p>
</div>
<div class="footer-links">
<a href="https://www.linkedin.com/company/electromos-sci-tech-club-iit-bhilai" target="_blank">LinkedIn</a>
<a href="https://www.instagram.com/electromos.iitbh/?hl=en" target="_blank">Instagram</a>
</div>
</div>
<div class="footer-bottom">
<p>© 2025 Electromos Club, IIT Bhilai. All rights reserved.</p>
<p class="developer-credit">Developed by Divit Sharma</p>
</div>
</div>
</footer>
<!-- Success Modal -->
<div id="success-modal" class="modal">
<div class="modal-content">
<span class="modal-close">×</span>
<div class="modal-body">
<div class="success-icon">✓</div>
<h3>Message Sent Successfully!</h3>
<p>Thank you for contacting us. We'll get back to you soon.</p>
</div>
</div>
</div>
<script src="app.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
</body>
</html>