-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
226 lines (221 loc) · 10.2 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
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
<?php session_start();?>
<!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">
<!-- icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<!-- Style -->
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" media="screen and (max-width:768px)" href="css/mobile.css">
<link rel="shortcut icon" href="./img/favicon.png">
<title>DSFLIX</title>
</head>
<?php
if (isset($_GET["error"])) {
echo "<body onload='scrollFix(), checkBrowserSize(), openLogin()'>";
} else {
echo "<body onload='scrollFix(), checkBrowserSize()'>";
}
?>
<!-- Sidebar Navigation Menu -->
<nav>
<a href="#" onclick="openNav()" >
<div class="menu-icon"></div>
<div class="menu-icon"></div>
<div class="menu-icon"></div>
</a>
</nav>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<?php
// User Name
if(isset($_SESSION["logStatus"])) {
if($_SESSION["logStatus"] == true) {
echo "<a href='#' class='user'><i class='fas fa-user'></i> " . $_SESSION['Username'] . "</a>";
}
}
?>
<a href="./index.html"><i class="fa fa-fw fa-home"></i> Home</a>
<a href="#" onclick="showCategories()" class="dropdown dropbtn"><i class="fa fa-list-alt "></i> Categories</a>
<div id="categories" class="dropdown-content">
<a href="./php/category.php?category=Action">Action</a>
<a href="./php/category.php?category=Fantasy">Fantasy</a>
<a href="./php/category.php?category=Sci-Fi">Sci-fi</a>
<a href="./php/category.php?category=Horror">Horror</a>
<a href="./php/category.php?category=Mystery">Mystery</a>
<a href="./php/category.php?category=Documentary">Documentary</a>
</div>
<?php
// Logout Button
if(isset($_SESSION["logStatus"])) {
if($_SESSION["logStatus"] == true) {
echo "<a href='./php/logout.php'><i class='fas fa-sign-out-alt'></i> Logout</a>";
}
}
?>
</div>
<div id="main">
<!-- Showcase -->
<header class="showcase">
<div class="showcase-top">
<img src="./img/logo2.png"/>
<?php
if(!isset($_SESSION["logStatus"])) {
echo "<a href='#' class='btn btn-rounded' onclick='openLogin()'>Sign in</a>";
}
?>
</div>
<div class="showcase-content">
<?php
if(!isset($_SESSION["logStatus"])) {
echo "<h1>See what's next</h1>";
echo "<p>Watch anywhere. Cancel Anytime</p>";
} else {
echo "<h1>Welcome Back</h1>";
echo "<p>Watch anywhere. Cancel Anytime</p>";
}
?>
<?php
if(!isset($_SESSION["logStatus"])) {
echo "<a href='./php/register_page.php' class='btn btn-xl'>
SIGN UP FOR FREE
</a>";
}
?>
</div>
</header>
<!-- Log In Modal -->
<section id="log-in" class="modal">
<span onclick="closeLogin()"
class="close" title="Close Modal">×</span>
<form class="login-content animate" action="./php/login.php" method="POST">
<div class="login-container">
<div class="cr-group">
<p class="text-xl">Welcome Back!</p>
<?php
if(isset($_GET["error"])) {
if($_GET["error"] == "wrongpass") {
echo "<p class='error text-md'> Wrong Password, Try Again</p>";
} else if ($_GET["error"] == "nouser") {
echo "<p class='error text-md'> Username Does Not Exist</p>";
}
}
?>
</div>
<div class="cr-group">
<label for="username" class="label">Username</label>
<input name="username" type="text" class="input" required>
</div>
<div class="cr-group">
<label for="password" class="label">Password</label>
<input name="password" type="password" class="input" data-type="password" required>
</div>
<div class="cr-group">
<input type="submit" name="submit-signin" class="button" class="btn" value="Sign In">
</div>
<label>
<input type="checkbox" checked="checked" name="remember"> Remember me<br>
</label>
</div>
<div class="misc-container">
<span class="psw" class="text-md">New To DSflix?<a href="./php/register_page.php" class="text-md"> Sign Up Now</a></span>
</div>
</form>
</section>
<!-- Movie Showcase -->
<section class="movie-tabs">
<div class="container full" id="movie-section">
<div class="movie-item tab-border">
<a id="the frame" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/theframe.webp">
</a>
</div>
<div class="movie-item tab-border">
<a id="inception" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/inception.webp">
</a>
</div>
<div class="movie-item tab-border">
<a id="enemy" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/enemy.webp">
</a>
</div>
<div class="movie-item tab-border">
<a id="interstellar" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/interstellar.webp">
</a>
</div>
<div class="movie-item tab-border">
<a id="lotr" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/lotr.webp">
</a>
</div>
<div class="movie-item tab-border">
<a id="hobbit" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/hobbit.webp" id="hobbit">
</a>
</div>
<div class="movie-item tab-border" >
<a id="john wick" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/johnwick.webp">
</a>
</div>
<div class="movie-item tab-border" >
<a id="unacknownledged" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/unacknownledged.webp">
</a>
</div>
<div class="movie-item tab-border">
<a id="it chapter two" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/itchaptertwo.webp">
</a>
</div>
<div class="movie-item tab-border">
<a id="the conjuring" onclick="getMovieInfo(id)">
<img class="resize lazy" data-src="./img/covers/theconjuring.webp">
</a>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<p>Questions? Call 1-866-579-7172</p>
<div class="footer-cols">
<ul>
<li><a href="#">FAQ</a></li>
<li><a href="#">Investor Relations</a></li>
<li><a href="#">Ways To Watch</a></li>
<li><a href="#">Corporate Information</a></li>
<li><a href="#">Netflix Originals</a></li>
</ul>
<ul>
<li><a href="#">Help Center</a></li>
<li><a href="#">Jobs</a></li>
<li><a href="#">Terms Of Use</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
<ul>
<li><a href="#">Account</a></li>
<li><a href="#">Redeem Gift Cards</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Speed Test</a></li>
</ul>
<ul>
<li><a href="#">Media Center</a></li>
<li><a href="#">Buy Gift Cards</a></li>
<li><a href="#">Cookie Preferences</a></li>
<li><a href="https://icons8.com/icon/81984/movie-beginning">Movie Beginning icon by Icons8</a><li>
</ul>
</div>
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.9/jquery.lazy.min.js"></script>
<script src="./js/main.js"></script>
<script src="./js/imageLoad.js"></script>
</body>
</html>