-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.php
338 lines (307 loc) · 14 KB
/
main.php
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
<?php
include 'config.php';
session_start();
// Check if the user is logged in, if not then redirect him to login page
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
header("location: login.php");
exit;
}
$username = $_SESSION["username"];
error_reporting(0); // For not showing any error
$sql = "SELECT * FROM student_details Where email IN ('$username')";
$result = mysqli_query($link, $sql);
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
$name = $row['name'];
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./css/style.css" />
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>BIT'S HACK'22</title>
</head>
<body>
<div class="node" id="node"></div>
<div class="cursor" id="cursor"></div>
<nav>
<div class="logo">
<img src="./assets/logo.png" alt="Logo Image">
<h3>Bannari Amman Institute of Technology</h3>
<h4>BIT</h4>
</div>
<div class="hamburger">
<div class="line1"></div>
<div class="line2"></div>
<div class="line3"></div>
</div>
<ul class="nav-links">
<li><a class="active nodeHover" href="#home">Home</a></li>
<li><a class="nodeHover" href="#about">About</a></li>
<li><a class="nodeHover" href="#guidelines">Guidelines</a></li>
<li><a class="nodeHover" href="prob-state.php">Problem-Statement</a></li>
<li><a class="nodeHover" href="#footer">Contact Us</a></li>
<li><a class="nodeHover" href="profile.php">Profile</a></li>
<li><a class="login-button nodeHover" href="logout.php">Logout</a></li>
</ul>
</nav>
<section class="home" id="home">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<h3 style="margin-top:19vh">Hey <?php echo $name ?> !</h3>
<h4 class="main_title">BIT'<span style="font-size:60px">S</span> HACK'22</h4>
<center>
<h5 style="background-color:#000; width:30vw;color:#fff;border-radius:2px; padding-left:5px;padding-bottom:0%;">BIT SOFTWARE HACKATHON 2022</h5>
</center><br>
<h4 class="main_title" style="padding-top:0%; font-size:34px;">CASH PRIZE WORTH <span style="letter-spacing: 5px; font-size: 50px;">3 LAKHS</span></h4>
<h2 style="margin-top: 10vh;font-size:30px;">BIT'<span style="color:#7f58f3;font-size:33px;padding-bottom:0%;">S</span> HACK'22</h2><br>
<h2 class="main_title" style="padding-top:0%; font-size:18px;margin-bottom:10vh;">CASH PRIZE WORTH <span style="letter-spacing: 5px; font-size: 21px;">3 LAKHS</span></h2>
<a class="login-button join nodeHover" href="prob-state.php">Join the Event </a>
<p style="text-align: center; margin-top:20px;font-family:poppins;font-size:22px;">on the 3rd and 4th of December</p>
<div id="mouse-scroll">
<div class="mouse" id="about">
<div class="mouse-in"></div>
</div>
<div>
<span class="down-arrow-1"></span>
<span class="down-arrow-2"></span>
<span class="down-arrow-3"></span>
</div>
</div>
</section>
<section class="about">
<h3 style="text-align: center;">
<ai style="font-size: 30px; ">“</ai><span style="color: #4523ac; font-size:30px;">E</span>verybody has a creative potential and from the moment you can express this creative potential , you can start changing the world”<br>
<npa style="font-family:'Poppins', sans-serif ; ">- Paul Coelho</npa>
</h3>
<div class="about-container">
<h2 style="color:#4523ac;">BIT'S HACK'22</h2>
<p>
It is a pioneer program for the BIT students to explore the depth of recent technologies and its usage over the problems that they are going to handle. BIT'S HACK'22 assist students to:
</p><br>
<p><i class="fa fa-dot-circle-o" style="font-size:15px"></i> Their enthralling ideas to solve real-life problem statements and win prizes.</p><br>
<p><i class="fa fa-dot-circle-o" style="font-size:15px"></i> Get guidance from the top experts from the industry and academia.</p><br>
<p><i class="fa fa-dot-circle-o" style="font-size:15px"></i> Learn new skills, improve presentation skills and have fun developing & coding.</p>
</p>
<div class='sphere'>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
<div class='ring'></div>
</div>
</div>
</section>
<h1></h1>
<div class="key-points">
<div class="points-left">
<img src="./assets/Layer 2.png" alt="Futuristic Vector" width="100px" height="100px">
<h1>Internal Problem <br>statements</h1>
<p>The stakeholders within the campus<br> like Verticals Team, Skills Team,<br> CoE Team, Academics Team etc requiring solutions for the problems existing in the campus.</p>
</div>
<hr>
<div class="points-center">
<img src="./assets/Layer 0.png" alt="Ingenious Vector" width="100px" height="100px">
<h1>Open Innovation category</h1>
<p>To submit innovative ideas that can be implemented within our campus.</p>
</div>
<hr>
<div class="points-right">
<img src="./assets/Layer 3.png" alt="Empowering Vector" width="100px" height="100px">
<h1>Smart India Hackathon</h1>
<p>Problem statements will be shared from Smart India Hackathon 2022 Portal. </p>
</div>
</div>
<div class="count-down">
<div class="container">
<h1 id="headline">Count Every Second Until The Event</h1>
<div id="countdown">
<ul>
<li><span id="days"></span>days</li>
<li><span id="hours"></span>Hours</li>
<li><span id="minutes"></span>Minutes</li>
<li><span id="seconds"></span>Seconds</li>
</ul>
</div>
<div id="content" class="emoji">
<span>🥳</span>
<span>🎉</span>
<span>✨</span>
</div>
</div>
</div>
<p id="guidelines"></p>
<section class="event">
<h2>HOW TO TAKE PART?</h2>
<div class="event-process">
<div class="step">
<h1 class="numbering">1</h1>
<div class="left">
<h3><span>Register for the event</h3>
<h5>before <span>November 20</span> / 11:59 pm</h5>
</div>
<div class="right">
<h4>Create your team and<br>register for the event</h4>
</div>
</div>
<div class="step">
<h1 class="numbering">2</h1>
<div class="left">
<h3><span>Select you Problem Statement</span></h3>
</div>
<div class="right">
<h4>Choose one problem <br>statement from the given List</h4>
</div>
</div>
<div class="step">
<h1 class="numbering">3</h1>
<div class="left">
<h3><span>Submit your SOP's</span></h3>
</div>
<div class="right">
<h4>An approach to the chosen<br> statement is to be submitted</h4>
</div>
</div>
<div class="step">
<h1 class="numbering">4</h1>
<div class="left">
<h3><span>Confirmation</span></h3>
</div>
<div class="right">
<h4>Is your team Selected?<br> Final step is to make your presence in.</h4>
</div>
</div>
</div>
</section>`
<p class="infooo">ABOUT</p>
<h1 class="info">BIT'S HACK'22</h1>
<section class="reg">
<div class="continer">
<h3>Registration</h3>
<center>
<img src="./assets/registration.png" alt="Registration Image" width="120px" height="120px">
<h4>Team Strength</h4>
<p><i class="fa fa-dot-circle-o" style="font-size:15px"></i> Minimum: 3</p>
<p><i class="fa fa-dot-circle-o" style="font-size:15px"></i> Maximum: 6</p>
</center>
</div>
<div class="continer">
<h3>Main Event</h3>
<center>
<img src="./assets/event.png" alt="Event Image" width="120px" height="120px">
<p><i class="fa fa-dot-circle-o" style="font-size:15px"></i> Venue: Main Auditorium</p>
<p><i class="fa fa-dot-circle-o" style="font-size:15px"></i> Date :3rd and 4th December 2022</p>
</center>
</div>
<div class="continer">
<h3>Benefits</h3>
<center>
<img src="./assets/benefits.png" alt="Benefits Image" width="120px" height="120px">
<p><i class="fa fa-dot-circle-o" style="font-size:15px"></i> Industry Mentoring for Top Performing Teams for their Projects/Products</p>
</center>
</div>
</section>
<footer>
<div id="footer" class="footer-content">
<h3>BIT'S HACK'22</h3>
<p style="width: 50vw;">
<bold style="font-weight: 600;">Hackathon Coordinators:<br></bold> Dr.E.L.Pradeesh/Dr.P.Purusothaman<br>
<bold style="font-weight: 600;">Email: </bold>pradeeshel@bitsathy.ac.in/purusothaman@bitsathy.ac.in<br>
<bold style="font-weight: 600;">Phone: <br></bold> +91 9944820144 / +91 9952013214
</p>
<ul class="socials">
<li></li>
</ul>
<div class="footer-menu">
<ul class="f-menu">
<li><a class="nodeHover" href="#home">Home</a></li>
<li><a class="nodeHover" href="#about">About</a></li>
<li><a class="nodeHover" href="#guidelines">Guidelines</a></li>
<li><a class="nodeHover" href="prob-state.php">Problem-Statement</a></li>
<li><a class="nodeHover" href="profile.php">Profile</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>Created with ❤ by <a class="nodeHover" href="#">Kavinkumar B</a> & <a class="nodeHover" href="#">Monish kumar B</a> </p>
</div>
</footer>
</body>
<!-- partial -->
<script src="./js/script.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/2.1.1/TweenMax.min.js'></script>
<script src='https://cdn.jsdelivr.net/gh/hmongouachon/NodeCursor/src/nodecursor-tween.js'></script>
</html>
<script type="text/javascript">
var initCursor = new NodeCursor({
cursor: true,
node: true,
cursor_velocity: 0,
node_velocity: 0.75,
native_cursor: 'none',
element_to_hover: '.nodeHover',
cursor_class_hover: 'disable',
node_class_hover: 'expand',
hide_mode: true,
hide_timing: 2000,
});
</script>
<script type="text/javascript">
(function() {
const second = 1000,
minute = second * 60,
hour = minute * 60,
day = hour * 24;
//I'm adding this section so I don't have to keep updating this pen every year :-)
//remove this if you don't need it
let today = new Date(),
dd = String(today.getDate()).padStart(2, "0"),
mm = String(today.getMonth() + 1).padStart(2, "0"),
yyyy = today.getFullYear(),
nextYear = yyyy + 1,
dayMonth = "12/03/",
birthday = dayMonth + yyyy;
today = mm + "/" + dd + "/" + yyyy;
if (today > birthday) {
birthday = dayMonth + nextYear;
}
//end
const countDown = new Date(birthday).getTime(),
x = setInterval(function() {
const now = new Date().getTime(),
distance = countDown - now;
document.getElementById("days").innerText = Math.floor(distance / (day)),
document.getElementById("hours").innerText = Math.floor((distance % (day)) / (hour)),
document.getElementById("minutes").innerText = Math.floor((distance % (hour)) / (minute)),
document.getElementById("seconds").innerText = Math.floor((distance % (minute)) / second);
//do something later when date is reached
if (distance < 0) {
document.getElementById("headline").innerText = "Hurray! Event Have been Started!";
document.getElementById("countdown").style.display = "none";
document.getElementById("content").style.display = "block";
clearInterval(x);
}
//seconds
}, 0)
}());
</script>