-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
244 lines (226 loc) · 11.3 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
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
<?php
session_start();
$loggedIn = false;
if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"]) {
$loggedIn = true;
}
function getRandomElement($arr)
{
$randomIndex = array_rand($arr);
return $arr[$randomIndex];
}
$slogans = ["KeyKaps, where typing becomes art", "Type with precision with KeyKaps", "Upgrade your typing game with KeyKaps", "KeyKaps, where typing meets art", "Need keyboards? Go KeyKaps.", "Keykaps, for all your keycaps", "ChatGPT made this slogan", "Am I alive?", "Type like a boss with KeyKaps", "Type like you mean it", "AWSD with Keykaps", "Unleash your typing potential"]
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
include "./php/includes/head.inc.php"
?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css" />
<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
<!-- Title -->
<title>#️⃣ Keykaps</title>
</head>
<body>
<main>
<div class="modal-overlay"></div>
<div class="overlay"></div>
<div class="nav-container-mobile">
<ul class="mobile-nav-list">
<li><a class="mobile-home-btn" href="#">Home</a></li>
<li><a class="mobile-products-btn" href="#products">Products</a></li>
<li><a class="mobile-contact-btn" href="#footer">Contact</a></li>
</ul>
</div>
<header id="header">
<div class="nav-container">
<div class="logo-container">
<a class="logo-btn" href="#"><img class="logo-art" src="./images/welcome/keykaps-logo.jpg" alt="keycaps Logo" /></a>
<a class="logo-btn" href="#">
<h2 class="logo">KEYKAPS</h2>
</a>
</div>
<nav class="main-nav">
<ul class="nav__list">
<li class="full-nav"><a href="#">Home</a></li>
<li class="full-nav"><a href="#products">Products</a></li>
<li class="full-nav"><a href="#footer">Contact</a></li>
<li class="full-nav"><a href="./php/admin.php">Admin</a></li>
<li class="mobile-nav-list-item">
<i class="mobile-nav-btn fa-solid fa-bars"></i>
</li>
</ul>
</nav>
</div>
</header>
<div class="main-container">
<section class="welcome-container">
<div class="welcome__text">
<?php
echo $loggedIn ? '<p class="title">Logged in as Admin</p>' : '<p class="title">' . getRandomElement($slogans) . '</p>';
?>
</div>
<div class="welcome__image-container">
</div>
</section>
<section class="products" id="products">
<div class="products__filter">
<div class="main-filter">
<ul class="filter__list">
<li class="active-filter filter__item" data-filter="All">
ALL
</li>
<li class="filter__item" data-filter="Keyboard">KEYBOARDS</li>
<li class="filter__item" data-filter="Keycaps">KEYCAPS</li>
<li class="filter__item" data-filter="Switches">SWITCHES</li>
</ul>
</div>
</div>
<div class="subfilter-container">
<div class="subfilter">
<div class="subfilter__section subfilter__colors-section">
<button class="general-subfilter-btn subfilter-btn subfilter-btn-colors">
Colors <i class="fa-solid fa-chevron-down"></i>
</button>
<div class="hidden subfilter__selection animate__animated animate__fadeIn">
<div class="subfilter__clear">
<span class="subfilter__clear-color">Clear</span>
</div>
<div class="subfilter__row-container">
<?php
include('./php/includes/createColors.inc.php');
?>
</div>
</div>
</div>
<div class="subfilter__section subfilter__brands-section">
<button class="general-subfilter-btn subfilter-btn">
Brands <i class="fa-solid fa-chevron-down"></i>
</button>
<div class="subfilter__selection hidden animate__animated animate__fadeIn">
<div class="subfilter__clear">
<span class="subfilter__clear-brand">Clear</span>
</div>
<div class="subfilter__row-container">
<?php
include('./php/includes/createBrands.inc.php');
?>
</div>
</div>
</div>
<div class="sortDiv">
<div class="subfilter__section subfilter__sort-section">
<button class="general-subfilter-btn subfilter-btn">
Sort <i class="fa-solid fa-chevron-down"></i>
</button>
<div class="hidden subfilter__selection sort__selection animate__animated animate__fadeIn">
<div class="subfilter__row-container sort__row-container">
<div class="subfilter__row">
<label for="dateNO">Date, New to Old</label>
<input class="sort-radio" type="radio" id="dateNO" name="sort" checked />
</div>
<div class="subfilter__row">
<label for="dateON">Date, Old to New</label>
<input class="sort-radio" type="radio" id="dateON" name="sort" />
</div>
<div class="subfilter__row">
<label for="priceLH">Price, Low to High</label>
<input class="sort-radio" type="radio" id="priceLH" name="sort" />
</div>
<div class="subfilter__row">
<label for="priceHL">Price, High to Low</label>
<input class="sort-radio" type="radio" id="priceHL" name="sort" />
</div>
<?php
if ($loggedIn) {
echo
'<div class="subfilter__row">
<label for="adminActive">Non active first</label>
<input class="sort-radio" type="radio" id="adminActive" name="sort" />
</div>';
}
?>
</div>
</div>
</div>
</div>
</div>
<div class="subfilter-active">
<button class="hidden active-filter-btn subfilter-btn-clear">
Clear All
</button>
</div>
<?php
echo $loggedIn ? '<p>Non active products highlighted: </p>' : '';
?>
</div>
<div class="grid-container">
<a href="#products" class="back2prods"><i class="fa-solid fa-circle-chevron-up"></i></a>
<?php
include "./php/includes/showProducts.inc.php"
?>
<div class="empty-card hidden" id="emptyFilter">
<section class="card-front ">
<div class="swiperD swiper">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="./images/welcome/oops.jpg" alt="An image of the Nuphy 2">
</div>
</div>
</div>
<div class="description">
<div class="prod-name">
<h3 class="name">It seems like we don't have your wishes in stock</h3>
<p>Check again soon!</p>
</div>
</div>
</section>
</div>
</div>
</section>
</div>
</main>
<footer id="footer">
<div class="footer__background"></div>
<div class="footer__content-container">
<div class="footer__logo">
<img src="./images/welcome/logoNoBg.svg" width=30px alt="">
<p class="footer__title">KEYKAPS</p>
</div>
<div class="footer__main-content">
<div class="footer__part developers">
<ul>
<li class="footer__subheading">DEVELOPERS</li>
<li>Rinzin Tenzin</li>
<li>Thibault Calliauw</li>
</ul>
</div>
<div class="footer__part get-connected">
<ul>
<li class="footer__subheading">CONTACT</li>
<li>[email protected]</li>
<li>[email protected]</li>
</ul>
</div>
<div class="footer__part pricing">
<ul>
<li class="footer__subheading">PRICING</li>
<li>Overpriced</li>
<li>Expensive hobby</li>
<li>Prices are fictitious</li>
</ul>
</div>
<div class="footer__part social">
<ul>
<li class="footer__subheading">SOCIAL</li>
<li>Facebook</li>
<li>LinkedIn</li>
<li>Instagram</li>
</ul>
</div>
</div>
</div>
</footer>
</body>
</html>