-
Notifications
You must be signed in to change notification settings - Fork 114
/
index.html
648 lines (551 loc) · 23 KB
/
index.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
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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
<!DOCTYPE html>
<html lang="en">
<head>
<title>Code Social | Home</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css" type="text/css" />
<script src="script.js" defer></script>
<script type="text/javascript" src="darkmode.js" defer></script>
<link rel="icon" type="image/png" href="images/logo copy.png">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<style>
.circle {
height: 24px;
width: 24px;
border-radius: 50%;
position: fixed;
background-color: black;
/* Default color of circles */
pointer-events: none;
/* Prevent interaction with circles */
z-index: 9999;
transition: transform 0.1s ease-out;
}
button:disabled {
opacity: 0.5; /* Make it appear visually disabled */
pointer-events: none; /* Disable interaction */
}
</style>
<!-- <style>
html {
scroll-behavior: smooth;
}
body.dark-mode {
background-color: #333;
color: #ffffff;
}
.top-btn {
display: none;
width: 50px;
height: 50px;
position: fixed;
bottom: 10px;
right: 0px;
background-color: #ab45e7;
color: #fff;
padding: 2px;
border: none;
margin-right: 36px;
border-radius: 50%;
cursor: pointer;
}
.top-btn:hover {
background-color: #0056b3;
}
video#background-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
background-size: cover;
}
.pagination-btns {
margin: 50px 0px;
}
.pagination-btns button.btn {
border-radius: 5px;
outline: none;
margin: 5px 10px;
border: 1px solid rgb(146, 110, 110);
}
.pagination-btns button.btn,
.pagination-btns button.btn i.bi {
font-size: 2rem;
}
#progress-container {
position: fixed;
top: 0px;
left: 0;
width: 100%;
height: 15px;
z-index: 99990;
}
#progress-bar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 7px;
width: 0;
background: linear-gradient(90deg, rgb(0, 72, 255) 0%, rgb(153, 187, 255) 50%, rgb(0, 184, 250) 100%);
box-shadow: 0 0 4px rgba(0, 166, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.7);
transition: width 0.09s ease-in-out;
border-radius: 10px;
}
</style> -->
<style>
html {
scroll-behavior: smooth;
}
body.dark-mode {
background-color: #333;
color: #ffffff;
}
.top-btn {
display: none;
width: 50px;
height: 50px;
position: fixed;
bottom: 23px;
right: 44px;
background-color: #ab45e7;
color: #fff;
padding: 2px;
border: none;
margin-right: 36px;
border-radius: 50%;
cursor: pointer;
}
.top-btn:hover {
background-color: #0056b3;
}
video#background-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
background-size: cover;
}
.pagination-btns {
margin: 50px 0px;
}
.pagination-btns button.btn {
border-radius: 5px;
outline: none;
margin: 5px 10px;
border: 1px solid rgb(146, 110, 110);
}
.pagination-btns button.btn,
.pagination-btns button.btn i.bi {
font-size: 2rem;
}
#progress-container {
position: fixed;
top: 0px;
left: 0;
width: 100%;
height: 15px;
z-index: 99990;
}
#progress-bar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 7px;
width: 0;
background: linear-gradient(90deg, rgb(0, 72, 255) 0%, rgb(153, 187, 255) 50%, rgb(0, 184, 250) 100%);
box-shadow: 0 0 4px rgba(0, 166, 255, 0.7), 0 0 10px rgba(255, 255, 255, 0.7);
transition: width 0.09s ease-in-out;
border-radius: 10px;
}
</style>
</head>
<body>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div id="progress-container">
<div id="progress-bar"></div>
</div>
<button class="top-btn" id="goToTopBtn" onclick="goToTop()">
<i class="fa-solid fa-chevron-up" style="color: #ffffff"></i>
</button>
<script>
// Get the button
var mybutton = document.getElementById("goToTopBtn");
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function () {
scrollFunction();
};
function scrollFunction() {
if (
document.body.scrollTop > 20 ||
document.documentElement.scrollTop > 20
) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function goToTop() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<script>
window.addEventListener('scroll', function () {
const winScroll = document.body.scrollTop || document.documentElement.scrollTop;
const height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
const scrolled = (winScroll / height) * 100;
document.getElementById('progress-bar').style.width = scrolled + '%';
});
</script>
<script>
// Store the mouse coordinates
const coords = { x: 0, y: 0 };
// Select all circles (you can add more circles to HTML as needed)
const circles = document.querySelectorAll(".circle");
// Customize the colors for the circles (optional)
const colors = ["#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d", "#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d", "#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060", "#680060", "#60005f", "#48005f", "#3d005e"];
// Initialize circle positions
circles.forEach((circle, index) => {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length]; // Assign colors
});
// Update mouse coordinates on move
window.addEventListener("mousemove", (e) => {
coords.x = e.clientX;
coords.y = e.clientY;
});
// Animation loop for circles
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach((circle, index) => {
circle.style.left = `${x - 12}px`; // Offset for center alignment
circle.style.top = `${y - 12}px`;
circle.style.transform = `scale(${(circles.length - index) / circles.length})`; // Shrink effect
circle.x = x;
circle.y = y;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
requestAnimationFrame(animateCircles);
}
// Start animation
animateCircles();
</script>
<nav class="navbar">
<a href="index.html" class="flex"><img src="images/logo.png" class="logo">
<div class="website-name tracking-tight ">
<!-- <div class="dynamic-text"> -->
<div class="static-text">
CODE
</div>
<ul class="dynamic-text">
<li> <span class="social">SOCIAL</span></li>
</ul>
</div>
</a>
<!-- Hamburger Menu -->
<div class="hamburger-menu">
<div class="toggle-button">
<img src="/images/hamburger.png" alt="open" id="hamburger-img">
</div>
</div>
<!-- Navbar Links -->
<ul class="navbar-links flex ">
<li class="ml-20">
<a href="events.html">Live Events</a>
<ul class="dropdown ">
<li><a href="register.html">Register Now</a></li>
<li><a href="maintenance.html">Why don't you react?</a></li>
</ul>
</li>
<li class="community">
<a href="join_community.html">Join Our Community</a>
<ul class="dropdown">
<li><a href="maintenance.html">WhatsApp</a></li>
<li><a href="maintenance.html">Discord</a></li>
</ul>
</li>
<li>
<a href="learning.html">Learning</a>
<ul class="dropdown">
<li><a href="./Resources.html">Free Learning Resources</a></li>
<li><a href="#">Mentorship Programs</a></li>
<li><a href="#">Peer-to-Peer Sessions</a></li>
</ul>
</li>
<li class="hamburger-menu">
<div class="toggle-button">
<span class="about-text">
<a href="maintenance.html">About us</a>
</span>
<button class="bar"></button>
<button class="bar"></button>
<button class="bar"></button>
</div>
<ul class="dropdown">
<li><a href="mentorship.html">Meet Our Team</a></li>
<li><a href="./JoinTeam.html">Join Our Team</a></li>
<li><a href="contactUs.html">Contact Us</a></li>
<li><a href="#">Follow Us</a></li>
</ul>
</li>
<li>
<a href="maintenance.html">Follow Us</a>
</li>
<!-- Dark Mode Toggle -->
<button id="theme-toggle" class="theme-toggle-btn">
<span class="theme-icon theme-icon-light" style="opacity: 1;">☀️</span>
<span class="theme-icon theme-icon-dark" style="opacity: 0;">🌙</span>
<span class="theme-slider"></span>
</button>
</ul>
</nav>
<section class="about-community">
<h2>About Community</h2>
<p>
Code Social Community is a learning-focused community dedicated to providing individuals with resources,
opportunities to learn, grow, and develop their skills in various technologies. The community helps
individuals to explore their interests, expand their knowledge, and connect with like-minded people.
At Code Social Community, members have access to a wealth of resources and learning opportunities, including
free learning sessions, mentorship programs, and peer-to-peer learning sessions. The community also provides
opportunities for members to network and connect with others in the tech industry.
In addition to its learning and networking opportunities, Code Social Community also serves as a hub for
resources, tools, and other materials that can help members enhance their skills and stay up-to-date with
the latest trends and best practices in the tech industry.
Whether you are just starting out in your career or are a seasoned professional looking to expand your
knowledge and skills, this community offers something for everyone. With its focus on hands-on learning,
mentorship, and networking opportunities, Code Social Community is an excellent place to connect with
like-minded individuals, build your skills, and take your career to the next level.
</p>
<!-- Social Media Icons -->
<div class="social-icons">
<a href="https://wa.me/your-whatsapp-number" target="_blank">
<img src="images/whatsapp-icon.png" alt="WhatsApp">
</a>
<a href="https://discord.gg/MSTNyRSPYW" target="_blank">
<img src="images/discord-icon.png" alt="Discord">
</a>
<a href="https://www.linkedin.com/company/code-social/" target="_blank">
<img src="images/linkedin-icon.png" alt="LinkedIn">
</a>
<a href="https://github.com/Code-Social" target="_blank">
<img src="images/gitHub.png" alt="Github">
</a>
</div>
</section>
<h2 class="calendar-title text-3xl mt-10 font-semibold">Event Calendar</h2>
<section class="calendar-section">
<div class="event-form">
<h3>Add Event</h3>
<input type="date" id="event-date" class="text-gray-500" required>
<input type="text" id="event-title" placeholder="Event Title" required>
<label for="event-color">Pick color for event:</label>
<input type="color" id="event-color" value="#4CAF50">
<button id="add-event">Add Event</button>
</div>
<div class="calendar">
<div class="calendar-header">
<button id="prev-month">◀</button>
<div class="month-year-box" id="current-month">
<!-- Current month will be displayed here -->
</div>
<button id="next-month">▶</button>
</div>
<div class="calendar-grid" id="calendar-grid"></div>
</div>
</section>
<hr>
<footer class="footer-section">
<div class="container">
<!-- Logo and About Section -->
<div class="footer-logo-about">
<a href="index.html" class="footer-logo-link">
<img src="images/logo.png" alt="Code Social Logo" class="footer-logo">
<span class="website-name">Code Social</span>
</a>
<p class="footer-about-text">
Code Social Community is a vibrant and inclusive space for tech enthusiasts <br> to learn, grow, and
connect. Founded in 2023, our mission is to empower individuals <br> with resources, mentorship, and
opportunities to cultivate their skills, explore their interests, and <br>collaborate with
like-minded peers.
</p>
<div class="social-icons">
<a href="https://wa.me/your-whatsapp-number" target="_blank"><img src="./images/whatsapp-icon.png"
alt="WhatsApp"></a>
<a href="https://discord.gg/MSTNyRSPYW" target="_blank"><img src="./images/discord-icon.png"
alt="Discord"></a>
<a href="https://www.linkedin.com/company/code-social/" target="_blank"><img
src="./images/linkedin-icon.png" alt="LinkedIn"></a>
</div>
</div>
<!-- Links Section -->
<div class="footer-links">
<div class="footer-column">
<p class="footer-title">Quick Links</p>
<ul class="footer-list">
<li><a href="#">About Us</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="#">Community Guidelines</a></li>
<li><a href="#">Careers</a></li>
</ul>
</div>
<div class="footer-column">
<p class="footer-title">Help</p>
<ul class="footer-list">
<li><a href="#">Contact Us</a></li>
<li><a href="#">Volunteer Opportunities</a></li>
<li><a href="#">Terms & Conditions</a></li>
</ul>
</div>
</div>
</div>
<!-- Footer Bottom -->
<hr class="footer-divider">
<p class="footer-bottom-text">© Copyright 2024, All Rights Reserved by Code Social</p>
</footer>
<script>
const addEventButton = document.getElementById('add-event');
const events = [
{ date: '2024-10-06', eventdetails: [{ title: 'React Workshop', color: '#4CAF50' }, { title: 'JavaScript Talk', color: '#FF5733' }] },
{ date: '2024-10-14', eventdetails: [{ title: 'Node.js Webinar', color: '#FFC107' }] },
{ date: '2024-10-21', eventdetails: [{ title: 'CSS Masterclass', color: '#2196F3' }, { title: 'Advanced CSS', color: '#FF5722' }] },
];
let currentMonth = new Date().getMonth();
let currentYear = new Date().getFullYear();
function generateCalendar() {
const calendarGrid = document.getElementById('calendar-grid');
const daysInMonth = new Date(currentYear, currentMonth + 1, 0).getDate();
document.getElementById('current-month').innerText = new Date(currentYear, currentMonth).toLocaleString('default', { month: 'long', year: 'numeric' });
calendarGrid.innerHTML = '';
for (let day = 1; day <= daysInMonth; day++) {
const dayElement = document.createElement('div');
dayElement.className = 'calendar-day';
dayElement.innerText = day;
const event = events.filter(e =>
new Date(e.date).getDate() === day &&
new Date(e.date).getMonth() === currentMonth &&
new Date(e.date).getFullYear() === currentYear
);
if (event.length) {
event.forEach(ev => {
ev.eventdetails.forEach(detail => {
const eventElement = document.createElement('div');
eventElement.className = 'event';
eventElement.style.backgroundColor = detail.color || '#4CAF50';
eventElement.innerText = detail.title;
eventElement.addEventListener('click', (e) => {
e.stopPropagation();
alert(detail.title);
});
dayElement.appendChild(eventElement);
});
});
}
if (new Date().getDate() === day && new Date().getMonth() === currentMonth && new Date().getFullYear() === currentYear) {
dayElement.style.backgroundColor = '#d1ecf1';
}
calendarGrid.appendChild(dayElement);
}
}
function validate(date){
// date is a string
const arr = date.split('-');
const selectedYear = parseInt(arr[0]);
const selectedMonth = parseInt(arr[1])-1;// Month is 0-based in JS Date
const selectedDay = parseInt(arr[2]);
const selectedDate = new Date(selectedYear, selectedMonth, selectedDay);
const currentDate = new Date();
currentDate.setHours(0, 0, 0, 0);
// Ensure selected date is today or in the future
return selectedDate >= currentDate;
}
// Event listeners for month navigation
document.getElementById('prev-month').addEventListener('click', () => {
currentMonth = (currentMonth === 0) ? 11 : currentMonth - 1;
currentYear = (currentMonth === 11) ? currentYear - 1 : currentYear;
generateCalendar();
});
document.getElementById('next-month').addEventListener('click', () => {
currentMonth = (currentMonth === 11) ? 0 : currentMonth + 1;
currentYear = (currentMonth === 0) ? currentYear + 1 : currentYear;
generateCalendar();
});
document.getElementById('event-date').addEventListener('change', () => {
const date = document.getElementById('event-date').value;
if (validate(date)) {
addEventButton.disabled = false;
} else {
addEventButton.disabled = true;
}
});
document.getElementById('add-event').addEventListener('click', () => {
const date = document.getElementById('event-date').value;
const title = document.getElementById('event-title').value;
const color = document.getElementById('event-color').value;
if (date && title) {
const existingEventIndex = events.findIndex(e => e.date === date);
if (existingEventIndex !== -1) {
events[existingEventIndex].eventdetails.push({ title, color });
} else {
events.push({ date, eventdetails: [{ title, color }] });
}
generateCalendar();
document.getElementById('event-title').value = '';
}
});
document.addEventListener('DOMContentLoaded', generateCalendar);
</script>
<script>
window.embeddedChatbotConfig = {
chatbotId: "j2Uy2CrJfZueGX7wNtJT_",
domain: "www.chatbase.co"
}
</script>
<script src="https://www.chatbase.co/embed.min.js" chatbotId="j2Uy2CrJfZueGX7wNtJT_" domain="www.chatbase.co" defer>
</script>
</body>
</html>