-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkp.php
537 lines (469 loc) · 17.2 KB
/
kp.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
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
<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Chatbot & AI Website</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@48,400,1,0">
<style>
/* Your CSS Styles */
/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background: #E3F2FD;
}
.chatbot-toggler {
position: fixed;
bottom: 30px;
right: 35px;
outline: none;
border: none;
height: 50px;
width: 50px;
display: flex;
cursor: pointer;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #724ae8;
transition: all 0.2s ease;
}
body.show-chatbot .chatbot-toggler {
transform: rotate(90deg);
}
.chatbot-toggler span {
color: #fff;
position: absolute;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
opacity: 0;
}
body.show-chatbot .chatbot-toggler span:last-child {
opacity: 1;
}
.chatbot {
position: fixed;
right: 35px;
bottom: 90px;
width: 420px;
background: #fff;
border-radius: 15px;
overflow: hidden;
opacity: 0;
pointer-events: none;
transform: scale(0.5);
transform-origin: bottom right;
box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
0 32px 64px -48px rgba(0,0,0,0.5);
transition: all 0.1s ease;
}
body.show-chatbot .chatbot {
opacity: 1;
pointer-events: auto;
transform: scale(1);
}
.chatbot header {
padding: 16px 0;
position: relative;
text-align: center;
color: #fff;
background: #724ae8;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header span {
position: absolute;
right: 15px;
top: 50%;
display: none;
cursor: pointer;
transform: translateY(-50%);
}
header h2 {
font-size: 1.4rem;
}
.chatbot .chatbox {
overflow-y: auto;
height: 510px;
padding: 30px 20px 100px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
background: #fff;
border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 25px;
}
.chatbox .chat {
display: flex;
list-style: none;
}
.chatbox .outgoing {
margin: 20px 0;
justify-content: flex-end;
}
.chatbox .incoming span {
width: 32px;
height: 32px;
color: #fff;
cursor: default;
text-align: center;
line-height: 32px;
align-self: flex-end;
background: #724ae8;
border-radius: 4px;
margin: 0 10px 7px 0;
}
.chatbox .chat p {
white-space: pre-wrap;
padding: 12px 16px;
border-radius: 10px 10px 0 10px;
max-width: 75%;
color: #fff;
font-size: 0.95rem;
background: #724ae8;
}
.chatbox .incoming p {
border-radius: 10px 10px 10px 0;
}
.chatbox .chat p.error {
color: #721c24;
background: #f8d7da;
}
.chatbox .incoming p {
color: #000;
background: #f2f2f2;
}
.chatbot .chat-input {
display: flex;
gap: 5px;
position: absolute;
bottom: 0;
width: 100%;
background: #fff;
padding: 3px 20px;
border-top: 1px solid #ddd;
}
.chat-input textarea {
height: 55px;
width: 100%;
border: none;
outline: none;
resize: none;
max-height: 180px;
padding: 15px 15px 15px 0;
font-size: 0.95rem;
}
.chat-input span {
align-self: flex-end;
color: #724ae8;
cursor: pointer;
height: 55px;
display: flex;
align-items: center;
visibility: hidden;
font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
visibility: visible;
}
</style>
</head>
<body>
<button class="chatbot-toggler">
<span class="material-symbols-rounded">mode_comment</span>
<span class="material-symbols-outlined">close</span>
</button>
<div class="chatbot">
<header>
<h2>Chatbot</h2>
<span class="close-btn material-symbols-outlined">close</span>
</header>
<ul class="chatbox">
<li class="chat incoming">
<span class="material-symbols-outlined">smart_toy</span>
<p>Hi there 👋<br>How can I help you today?</p>
</li>
</ul>
<div class="chat-input">
<textarea placeholder="Enter a message..." spellcheck="false" required></textarea>
<span id="send-btn" class="material-symbols-rounded">send</span>
</div>
</div>
<!-- Your PHP and HTML Code Here -->
<?php
// Initialize the session
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="sty.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@48,400,1,0" />
<script src="scr.js" defer></script>
</head>
<style>
.rounded-img {
width: 180px;
height: 180px;
border-radius: 50%;
overflow: hidden;
margin: 5px;
}
.image-container {
display: flex;
justify-content: space-around; /* Adjust as needed */
align-items: center;
}
.animate-charcter
{
text-transform: uppercase;
background-image: linear-gradient(-225deg,#ddf107 67%,#e5e4ea 28%);
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
color: #fff;
background-clip: text;
text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: textclip 8s linear infinite;
display: inline-block;
font-size: 35px;
}
@keyframes textclip {
to {
background-position: 200% center;
}
}
</style>
<?php include 'header.php' ?>
<!-- Home -->
<div id="home" class="hero-area">
<!-- Backgound Image -->
<div class="bg-image bg-parallax overlay" style="background-image:url(./img/bg1231.jpg); width:100%; height: 656px;">
</div>
<!-- /Backgound Image -->
<div class="home-wrapper">
<div class="container">
<div class="row">
<div class="col-md-8">
<h1 class="animate-charcter">AI To Navigate Your Destination</h1>
<?php
// Check if the user is logged in, if not then redirect him to login page
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true): ?>
<p class="lead white-text" style="margin-left: 5px;"><b>Discover yourself<br>Take the test to find
the perfect role for you after Engineering</b></p>
<a class="main-button icon-button" href="login.php">Get Started!</a>
<?php else: ?>
<p class="lead white-text" style="margin-left: 5px;"><b>Hi,
<?php echo htmlspecialchars($_SESSION["username"]); ?> !<br><b>Discover yourself,<br>Take
the test to find the perfect role for you after Engineering</b></p>
<a class="main-button icon-button" href="http://127.0.0.1:5000/">Get Started!</a>
<?php endif ?>
</div>
</div>
</div>
</div>
</div>
<!-- /Home -->
<!-- Why us -->
<div id="why-us" class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="section-header text-center">
<h2 style="margin-top: 100px; font-size: 45px;">Welcome to Uddesh AI</h2>
<!--<p class="lead">We all want to fly high and in real time!<br> And in this random pursuit of success, we end up making wrong career choices.</p>-->
<p class="lead"><b style="color: rgb(56, 48, 48);">Uddesh AI</b> is one stop destination <br>in helping
you understand yourself, the best career for you <br> and providing all the resources in the
process.</p>
</div>
</div>
<div class="row">
<!-- feature -->
<div class="col-md-4">
<div class="feature">
<i class="feature-icon fa "><span> 🔎︎</span></i>
<div class="feature-content">
<a href="#">
<?php
// Check if the user is logged in, if not then redirect him to login page
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true): ?>
<a href="login.php">
<h4>Career Prediction</h4>
</a>
<?php else: ?>
<a href="http://127.0.0.1:5000/">
<h4>Career Prediction</h4>
</a>
<?php endif ?>
<p>Take the test to find the perfect role for you after Engineering.</p>
</div>
</div>
</div>
<!-- /feature -->
<!-- feature -->
<div class="col-md-4">
<div class="feature">
<i class="feature-icon fa "><span>🔎︎</span></i>
<div class="feature-content">
<a href="blog.php">
<h4>Knowledge Network</h4>
</a>
<p>Gain knowledge through various sources, like important informational links, access to study
materials, etc.</p>
</div>
</div>
</div>
<!-- /feature -->
<!-- feature -->
<div class="col-md-4">
<div class="feature">
<i class="feature-icon fa "><span>🔎︎</span></i>
<div class="feature-content">
<a href="courses.php">
<h4>Online Courses</h4>
</a>
<p>Links to relevant Courses.</p>
</div>
</div>
</div>
<!-- /feature -->
</div>
<!-- /row -->
<hr class="section-hr">
</div>
<!-- /container -->
</div>
<!-- /Why us -->
<!-- Call To Action -->
<div id="cta" class="section" style="height: 400px;">
<!-- Backgound Image -->
<div class="bg-image bg-parallax overlay" style="background-image:url(./img/bgmid.jpg)"></div>
<!-- /Backgound Image -->
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="col-md-6">
<?php
// Check if the user is logged in, if not then redirect him to login page
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true): ?>
<h2 class="white-text" style="font-size: 30px; width:700px ;">Hi,</h2>
<h2 class="white-text" style="font-size: 25px; width:700px ; margin-top:10px;">Your Career Path Begins
Here</h2>
<p class="lead white-text">We Create Beautiful Experiences
That Drive Successful Careers.</p>
<a class="main-button icon-button" href="register.php">Get Started!</a>
<?php else: ?>
<h2 class="white-text" style="font-size: 30px; width:700px ;">Hi, <b>
<?php echo htmlspecialchars($_SESSION["username"]); ?> !
</b></h2>
<h2 class="white-text" style="font-size: 25px; width:700px ; margin-top:10px;">Your Career Path Begins
Here</h2>
<p class="lead white-text">We Create Beautiful Experiences
That Drive Successful Careers.</p>
<a class="main-button icon-button" href="main.php">Get Started!</a>
<?php endif ?>
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /Call To Action -->
<!-- About -->
<div id="about" class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<div class="col-md-6">
<div class="section-header">
<h2 style="font-size: 35px;">About Uddesh AI</h2>
<p class="lead" style="font-size: 18px; font-style: italic; margin-top: 50px;">Education seekers get
a personalised experience on our site, based on educational background and career interest,
enabling them to make well informed course and career decisions. The decision making is
empowered with easy access to detailed information on career choices, courses, exams, colleges,
admission criteria, eligibility, placement statistics, rankings, reviews, scholarships, latest
updates etc as well as by interacting with other career.ly users, experts, current students in
colleges and alumni groups. We have introduced several student oriented products and tools like
Career Prediction, Knowledge Network, Daily Bytes, Blogs, Community discussion forum, and
various Courses.</p>
<!--Education seekers get a personalised experience on our site, based on educational background and career interest, enabling them to make well informed course and college decisions. The decision making is empowered with easy access to detailed information on career choices, courses, exams, colleges, admission criteria, eligibility, fees, placement statistics, rankings, reviews, scholarships, latest updates etc as well as by interacting with other Shiksha.com users, experts, current students in colleges and alumni groups. We have introduced several student oriented products and tools like Career Central, Common Application Form, Top Colleges, College Compare, Alumni Employment Stats, Campus Connect, College Reviews, College Predictors, MyShortlist and Shiksha Café.-->
</div>
</div>
<div class="col-md-6">
<div class="about-img">
<img src="./img/about.png" alt="" />
</div>
</div>
</div>
</div>
<div class="container">
<div class="col-md-6">
<div class="section-header">
<center><h2 style="font-size: 35px;">                                      <u>About Us</h2></u></center>
</div>
</div>
</div>
<div class="image-container">
<div class="row">
<div class="col-lg-3">
<img class="rounded-img" src="./img/nam.jpeg">
<h3>Naman Chawla</h3>
<p>ML and Backend Developer</p>
<p><a class="btn btn-primary" href="#" role="button">View details »</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-3">
<img class="rounded-img" src="./img/nish.jpeg">
<h3>Nishant kr jha</h3>
<p>Backend Developer</p>
<p><a class="btn btn-primary" href="#" role="button">View details »</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-3">
<img class="rounded-img"src="./img/may.jpeg">
<h3>Mayank Srivastava</h3>
<p>Frontend Developer</p>
<p><a class="btn btn-primary" href="#" role="button">View details »</a></p>
</div><!-- /.col-lg-4 -->
</div><!-- /.row -->
</div>
</div>
</div>
<!-- /container -->
</div>
<!-- /About -->
<?php include 'footer.php' ?>
<!-- preloader -->
<div id='preloader'>
<div class='preloader'></div>
</div>
<!-- /preloader -->
<!-- jQuery Plugins -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/main.js"></script>
<!-- / -->
<!-- / -->
</body>
</html>