-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.php
214 lines (189 loc) · 7.74 KB
/
index.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
<?php
require_once(__DIR__ . "/classes/database.php");
$jobs = array();
$pdo = Database::connect();
$query = "SELECT Title, Name FROM JobPostings INNER JOIN Companies ON JobPostings.CompanyID = Companies.CompanyID ORDER BY JobPostings.JobID DESC LIMIT 5";
$statement = $pdo->prepare($query);
$statement->execute();
$jobs = $statement->fetchAll();
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<!-- Bootstrap CSS 4.0.0-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="CSS/Index.css"> <!-- Include a custom CSS for the website. -->
<title>JobAssembler</title>
<style>
* {
margin: 0;
padding: 0;
border: 0;
}
/* Please Don't edit this part. For scroll Styling */
main {
scroll-snap-type: y mandatory;
overflow: scroll;
height: 100vh;
}
/* Delete extra scroll bars */
body {
overflow: hidden;
}
th, td {
border-bottom: 2px solid #000000;
border-left: 2px solid #000000;
border-right: 2px solid #000000;
background: transparent;
color: black;
width: 54%
}
table{
margin-right: 25%;
margin-left: 25%;
border: 3px solid #000000;
}
/* For every pages */
.container-fluid {
width: 100vw;
width: 100vh;
padding:0%;
margin: 0%;
scroll-snap-align: center;
}
/* ----------------------------------------------------------------------------------------------------------------- */
/* For navbar */
/* For Logo border*/
.d-inline-block-align-top {border-radius: 5px;}
.container-fluid {
scroll-snap-align: start;
width: 100vw;
height: 100vh;
}
/* ----------------------------------------------------------------------------------------------------------------- */
/* 1st page */
.page1 {
position: relative;
width: 100vw;
height: 120vh;
background: url(Images/pexels-cottonbro-7014764.jpg) no-repeat
center fixed;
background-size: cover;
animation: gradient-move 30s ease alternate infinite;
}
/*2nd page */
.page2 {
position: relative;
width: 100vw;
height: 120vh;
border-width:0px ;
background: url(Images/pexels-fauxels-3184418-F.jpg) no-repeat
center fixed;
background-size: cover;
animation: gradient-move 20s ease alternate infinite;
filter:brightness(90%)
}
/* 3rd page */
.page3 {
position: relative;
width: 100vw;
height: 120vh;
background: url(Images/pexels-cottonbro-4065619.jpg) no-repeat
center fixed;
background-size: cover;
}
/* Dynamic */
@keyframes gradient-move {
0% {
background-position: 0% 0%;
}
100% {
background-position: 100% 100%;
}
}
/* ----------------------------------------------------------------------------------------------------------------- */
/* Text general styling */
.display-4, .display-6, .lead {text-align: center;}
/* ----------------------------------------------------------------------------------------------------------------- */
</style>
</head>
<body>
<!-- navbar -->
<nav class="navbar navbar-light" style="background-color: white;">
<a class="navbar-brand" href="index.php">
<img src="Images/Logo1.png" width="30" height="30" class="d-inline-block-align-top" alt="";>
JobAssembler
<div class="nav-item">
<a class="btn btn-success" href="SignUpPage2.php">Sign Up</a>
<a class="btn btn-primary" href="login.php">Log in</a>
</div>
</a>
</nav>
<main>
<!-- page1 -->
<div class="container-fluid">
<div class="page1">
<br>
<h1 class="display-4" style="color:white;"><b>Struggling with finding Employment or Employees?</b></h1>
<br>
<h1 class="display-6" style="color:white;">Ever wish it was as easy as Tinder?</h1>
<hr class="my-3">
<br>
<p class="lead" style="color:white;">JobAssembler Is!</p>
<br>
<a class="btn-warning" style="color:white; width:50%; margin-left:45%; padding:10px" href="PrivacyPolicy.html">Privacy Policy</a>
</div>
</div>
<!-- page2 -->
<div class="container-fluid">
<div class="page2">
<br>
<h1 class="display-4" style="vertical-align:-webkit-baseline-middle; color:white; filter: brightness(100%);"> <b>Direct access to Employees and Employers </b></h1>
<br>
<h1 class="display-6" style="color:white;">Ideal for New Graduates!</h1>
<hr class="my-4">
<br>
<p class="lead" style="color:white;"><b>Easier and more engaging than the Competition</b></p>
<br>
<p class="lead" style="color:white;"><b>DON'T MISS OUT, JOIN NOW!</b></p>
</div>
</div>
<!-- page3 -->
<div class="container-fluid">
<div class="page3" style="vertical-align:center; padding:20px">
<h1 class="display-4" style="color: #000000;"><b>Our Newest Jobs:</b></h1>
<table class="table" style="width: 50%;">
<thead style="border: 3px solid #000000;">
<tr>
<th colspan="5" scope="col" style="padding: 15px; text-align: right" >Company</th>
<th colspan="5" scope="col" style="padding: 15px; text-align: left" >Job Title</th>
</tr>
</thead>
<tbody>
<?php if(count($jobs) == 0): ?>
<tr>
<th colspan="5" style="text-align: center;">No results found.</th>
</tr>
<?php else: ?>
<?php foreach($jobs as $num => $line): ?>
<tr>
<td colspan="5" style="text-align: right" ><?= $line["Name"]?></td>
<td colspan="5"style="text-align: left"><?= $line["Title"]?></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</main>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>