1
+ <?php
2
+ // session_start
3
+ session_start ();
4
+
5
+ // include db connection
6
+ include ('./config/db.php ' );
7
+
8
+ if (isset ($ _SESSION ['email ' ])) {
9
+ header ('Location: ./Explore/index.php?message=You have logged in successfully! ' );
10
+ }
11
+ ?>
1
12
<!DOCTYPE html>
2
13
<html>
3
14
13
24
<link rel="stylesheet" href="assets/css/styles.css">
14
25
</head>
15
26
16
- < body >
27
+ <body onLoad = "myFunction()" >
17
28
18
29
<nav class="navbar navbar-light navbar-expand-md fixed-top" style="height: 10vh;background: rgba(255,255,255,0.18);">
19
30
<div class="container-fluid"><a class="navbar-brand" href="#" style="font-size: 30px;font-family: Aclonica, sans-serif;">LesKollab</a><button data-toggle="collapse" class="navbar-toggler" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
31
+ <?php
32
+ include ("components/common/messages.php " );
33
+ ?>
20
34
<div
21
35
class="collapse navbar-collapse" id="navcol-1">
22
36
<ul class="nav navbar-nav ml-auto">
31
45
<h2>Have Some Pending Projects?</h2>
32
46
<i><h5>Need Someone's help to complete it?</h5> <br>
33
47
<p>Ideas reshape the world, but there's always a staring and learning point.<br> It's time to redefine the way we learn.</p>
34
- Learnt a new skill, but have no one to work on a starting project with?< br >
48
+ Learnt a new skill, but have no one to work on a starting project with?<br>
35
49
Thought of an idea but don't have the necessar tech stacks?<br>
36
- Search for people to collaborate with, or propose a project and let collaborators find you.< br />
50
+ Search for people to collaborate with, or propose a project and let collaborators find you.<br/>
37
51
With LesKollab, it's time to implement and learn things on the get go, but not alone anymore!</p></i>
38
52
<br><br><br><br>
39
53
<button type="button" class="btn btn-outline-warning" style="height: 10vh;width:27vw;font-size:1.5em;">Find a Project Partner</button>
40
54
41
55
</div>
42
-
56
+
43
57
</div>
44
58
45
59
<div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
@@ -56,42 +70,46 @@ <h2>Have Some Pending Projects?</h2>
56
70
<button data-target="#carouselExampleIndicators" data-slide-to="1" type="button" class="btn btn-outline-warning btn-lg">Register</button>
57
71
<div class="carousel-inner">
58
72
<div class="carousel-item active">
59
- < form >
73
+ <form action = "./scripts/Login.php" method="post" >
60
74
<div class="form-group">
61
75
<br>
62
76
<label for="exampleInputEmail1">Email address</label>
63
- < input type ="email " class ="form-control " id ="exampleInputEmail1 " aria-describedby ="emailHelp " placeholder ="Enter email ">
77
+ <input type="email" class="form-control" name = "email" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
64
78
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
65
79
</div>
66
80
<div class="form-group">
67
81
<label for="exampleInputPassword1">Password</label>
68
- < input type ="password " class ="form-control " id ="exampleInputPassword1 " placeholder ="Password ">
82
+ <input type="password" class="form-control" name = "password" id="exampleInputPassword1" placeholder="Password">
69
83
</div>
70
84
<br>
71
85
<button type="submit" class="btn btn-primary">Submit</button>
72
86
</form>
73
87
</div>
74
88
<div class="carousel-item">
75
- < form >
89
+ <form action = "./scripts/Register.php" method = "post" >
76
90
<div class="form-group">
77
91
<br>
78
92
<label for="exampleInputEmail1">Email address</label>
79
- < input type ="email " class ="form-control " id ="exampleInputEmail1 " aria-describedby ="emailHelp " placeholder ="Enter email ">
93
+ <input type="email" class="form-control" name = "email" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
80
94
<small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
81
95
</div>
96
+ <div class="form-group">
97
+ <label for="exampleInputPassword1">Name</label>
98
+ <input type="text" class="form-control" name = "name" id="exampleInputPassword1" placeholder="Your name">
99
+ </div>
82
100
<div class="form-group">
83
101
<label for="exampleInputPassword1">Password</label>
84
- < input type ="password " class ="form-control " id ="exampleInputPassword1 " placeholder ="Password ">
102
+ <input type="password" class="form-control" name = "password" id="exampleInputPassword1" placeholder="Password">
85
103
</div>
86
104
<div class="form-group">
87
105
<br>
88
106
<label for="exampleInputEmail1">GitHub</label>
89
- < input type ="email " class ="form-control " id ="exampleInputEmail1 " aria-describedby ="emailHelp " placeholder ="Enter email ">
107
+ <input type="text " class="form-control" name = "github" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter github profile link ">
90
108
</div>
91
109
<div class="form-group">
92
110
<br>
93
111
<label for="exampleInputEmail1">LinkedIn</label>
94
- < input type ="email " class ="form-control " id ="exampleInputEmail1 " aria-describedby ="emailHelp " placeholder ="Enter email ">
112
+ <input type="text " class="form-control" name = "linkedin" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter linkedin profile link ">
95
113
</div>
96
114
<br>
97
115
<button type="submit" class="btn btn-primary">Submit</button>
@@ -107,11 +125,12 @@ <h2>Have Some Pending Projects?</h2>
107
125
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
108
126
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>
109
127
<script src="assets/js/Button-Ripple-Effect-Animation-Wave-Pulse.js"></script>
128
+ <script src="assets/js/Snackbar.js"></script>
110
129
<script>
111
130
$('#myModal').on('shown.bs.modal', function () {
112
131
$('#myInput').trigger('focus')
113
132
})
114
133
</script>
115
134
</body>
116
135
117
- </ html >
136
+ </html>
0 commit comments