-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
158 lines (131 loc) · 5.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Codeoholics Web Portal</title>
<link rel="stylesheet" href="syle.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap">
</head>
<body>
<header>
<nav>
<div class="logo">
<img src="https://media.licdn.com/dms/image/D560BAQFs8jcqNSz0MQ/company-logo_200_200/0/1683385398554?e=2147483647&v=beta&t=Vxw5Erx4dyWuxOIWPZ4lvDPaHJdpqWemRVDJ87WdAf4" alt="Codeoholics Logo">
</div>
<div class="user-actions">
<a href="login.php">Login</a>
<a href="signup.php">Sign Up</a>
</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="resources.html">Resources</a></li>
<li><a href="help.html">Help</a></li>
</ul>
</nav>
</header>
<main>
<section class="hero">
<h1>Welcome to the Codeoholics Web Portal</h1>
<p>Explore our community, events, and resources.</p> <br>
<img id="img-1" src="https://images.unsplash.com/photo-1542831371-29b0f74f9713?auto=format&fit=crop&q=80&w=1000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8aHRtbHxlbnwwfHwwfHx8MA%3D%3D" alt="Image 1" height="300" width="1000"/>
</section>
<section class="events">
<h2>Upcoming Events</h2>
</section>
<section class="recent-events">
<h2>Recent Events</h2>
</section>
<section class="blog">
<h2>Latest Blog Posts</h2>
</section>
<section class="ticketing-system">
<h2>Ticketing System</h2>
</section>
<section class="internship">
<h2>Internships</h2>
</section>
</main>
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 3</div>
<img src="https://blog.hubspot.com/hs-fs/hubfs/how-to-start-coding-1.jpg?width=595&height=400&name=how-to-start-coding-1.jpg" style="width:100%">
<div class="text"></div>
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 3</div>
<img src="https://www.phpactiverecord.org/wp-content/uploads/2019/08/programming-languages.png" style="width:100%">
<div class="text"></div>
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 3</div>
<img src="https://nsplrtc.com/images/coding-classes-amritsar-punjab-india-nspl-research-and-training-centre.jpg" style="width:100%">
<div class="text"></div>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<br>
<div style="text-align:center">
<span class="dot" onclick="currentSlide(1)"></span>
<span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
</div>
<footer>
<section class="bottom-box">
<div class="social-links column">
<h2>Socials</h2>
<p> <a href="https://www.linkedin.com/company/codeoholics-club-cmrtc/">LinkedIn</a> | <a href="https://www.instagram.com/codeoholics/">Instagram</a> | <a href="https://discord.gg/rbq6gQWx">Discord</a></p>
</div>
</section>
<p>© 2023 Codeoholics</p>
</footer>
<script>
const eventsSection = document.querySelector('.events');
const blogSection = document.querySelector('.blog');
const recentEventsSection = document.querySelector('.recent-events');
const ticketingSystemSection = document.querySelector('.ticketing-system');
const internshipSection = document.querySelector('.internship');
eventsSection.addEventListener('click', function () {
window.location.href = 'events.html';
});
blogSection.addEventListener('click', function () {
window.location.href = 'blog.html';
});
recentEventsSection.addEventListener('click', function () {
window.location.href = 'events.html';
});
ticketingSystemSection.addEventListener('click', function () {
window.location.href = 'ticketing.html';
});
internshipSection.addEventListener('click', function () {
window.location.href = 'internships.html';
});
let slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("mySlides");
let dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
</script>
</body>
</html>