-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
317 lines (264 loc) · 14.1 KB
/
Copy pathindex.html
File metadata and controls
317 lines (264 loc) · 14.1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="BIDDEN is a platform for buying and selling items.">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Red+Hat+Mono:ital,wght@0,300..700;1,300..700&family=Silkscreen:wght@400;700&display=swap"
rel="stylesheet"
/>
<script
defer
src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.10.5/font/bootstrap-icons.min.css"
/>
<link rel="icon" type="image/png" href="images/favicon.png" />
<link rel="stylesheet" href="dist/css/main.css" />
<script type="module" src="js/app.mjs"></script>
<title>BIDDEN | All Listings</title>
</head>
<body class="bg-black">
<!-- Header -->
<header class="bg-black container-xxl px-2 px-xxl-0 pe-0 fixed-top">
<nav class="navbar bg-black pt-0 pt-md-1 d-flex justify-content-between align-items-start align-items-lg-center">
<div class="container col d-flex justify-content-start align-items-start align-items-md-center flex-column flex-md-row p-0">
<a class="logo-link" href="#">BIDDEN</a>
<form class="d-flex align-items-center" role="search">
<input
class="form-control rounded-0 me-0"
type="search"
placeholder="Search"
aria-label="Search"
id="search-bar"
/>
<button
class="btn bg-secondary-subtle rounded-0 ms-0"
form="search-bar"
type="button"
id="search-button"
>
<i class="bi bi-search h4"></i>
</button>
</form>
</div>
<div class="col d-flex justify-content-end align-items-start mt-3 mt-lg-0 me-2">
<!-- Avatar ++ -->
<div class="d-none justify-content-center flex-column align-items-end mt-2 me-1" id="nav-username-container">
<p class="text-white h5 p-0 pt-2 m-0" id="nav-username"></p>
<p class="text-white fst-italic m-0">Credits: <span class="fw-semibold text-primary" id="nav-credits">?</span></p>
</div>
<!-- Dropdown Button -->
<div class="dropdown-center ">
<img src="images/avatar.jpg" alt="avatar" class="dropdown-toggle avatar-nav ms-2 mt-md-1 d-none me-2" id="open-menu" data-bs-toggle="dropdown">
<!-- Dropdown Menu -->
<ul class="dropdown-menu dropdown-menu-end mt-3 mt-md-2 z-2 pe-5 p-3 text-end rounded-0 border-primary bg-black border-top-0" style="width: 300px;">
<li class="list-group-item-dark p-2 d-md-none">
<p class="text-white fst-italic m-0 h5">Credits: <span class="fw-semibold text-primary" id="menu-credits">?</span></p> </li>
<li class="list-group-item-dark p-2 "><a href="" class="text-decoration-none" id="profile-link">View Profile <i class="bi bi-person-circle"></i></a> </li>
<li class="list-group-item-dark p-2"><a href="listing/create/index.html" class="text-decoration-none">Create Listing <i class="bi bi-file-earmark-plus"></i></a> </li>
<li class="list-group-item-dark p-2" id="logout-button"><a href="" class="text-decoration-none">Log out <i class="bi bi-box-arrow-left"></i></a> </li>
</ul>
</div>
<!-- Log in Button -->
<button type="button" class="btn btn-large border-0 rounded-0 fw-semibold" data-bs-toggle="modal" data-bs-target="#login-modal" id="nav-login-button">
Log in
</button>
</div>
</nav>
</header>
<!-- Modal -->
<div class="modal fade" id="login-modal" data-bs-keyboard="false" tabindex="-1" aria-hidden="true">
<div class="modal-dialog ">
<div class="modal-content rounded-0 thick-shadow-red border-black pb-5" >
<div class="d-flex border-0 p-0">
<button class="w-50 btn btn-secondary fw-semibold rounded-0 shadow-subtle p-3" id="view-login-button">
Already have an account?<br><i class="bi bi-person h1"></i>
</button>
<button class="w-50 btn btn-dark rounded-0 p-3" id="view-register-button">
Create an account<br><i class="bi bi-person-plus h1"></i>
</button>
</div>
<div class="modal-body border-0 mx-auto" style="max-width: 360px; width: 80%;">
<h1 class="modal-title h2 fw-bold pt-3" id="login-label">Log in here</h1>
<!--Login Form starts here -->
<form class="needs-validation d-block" id="login-form">
<div class="mb-3">
<label for="email" class="form-label mb-0">Email</label>
<input type="text" class="form-control rounded-0 border-black" id="email" name="email" required pattern="^[a-zA-Z0-9._%+-]+@(noroff\.no|stud\.noroff\.no)$">
<div class="invalid-feedback">
Please enter a valid @noroff.no or @stud.noroff.no email.
</div>
</div>
<div class="mb-3">
<label for="password" class="form-label mb-0">Password</label>
<input type="password" class="form-control rounded-0 border-black" id="password" name="password" required>
<div class="invalid-feedback">
Please enter your password.
</div>
</div>
<!-- Submit and cancel buttons inside the form -->
<div class="d-flex align-items-center flex-column border-0">
<button type="submit" class="btn btn-outline-primary text-black rounded-0 fw-semibold">Log in <i class="bi bi-box-arrow-in-right "></i></button>
<span class="border border-primary-subtle my-3 w-75" style="height: 1px;"></span>
<button type="button" class="btn btn-outline-secondary rounded-0 fw-semibold" data-bs-dismiss="modal">Nevermind <i class="bi bi-x-circle "></i></button>
</div>
</form>
<!--Register Form starts here -->
<form class="needs-validation d-none" id="register-form">
<div class="mb-3">
<label for="regName" class="form-label mb-0">Name*</label>
<input
type="text"
name="regName"
class="form-control rounded-0 border-black"
id="regName"
placeholder="Name123"
pattern="[A-Za-z0-9_]+"
title="Username must be 1-40 characters long and contain only letters, numbers, and underscores."
required>
</div>
<div class="mb-3">
<label for="regEmail" class="form-label mb-0">Email*</label>
<input
type="email"
name="regEmail"
class="form-control rounded-0 border-black"
id="regEmail"
placeholder="name@noroff.no"
pattern="^[^@]+@(stud\.|)(noroff\.no)$"
title="Email must end with @noroff.no or @stud.noroff.no"
required>
</div>
<div class="mb-3">
<label for="bio" class="form-label mb-0">Bio</label>
<input
type="textarea"
name="bio"
class="form-control rounded-0 border-black"
id="bio"
placeholder="A little about yourself"
title="Please enter some information about yourself.">
</div>
<div class="mb-3">
<label for="avatar" class="form-label mb-0">Avatar</label>
<input
type="url"
name="avatar"
class="form-control rounded-0 border-black"
id="avatar"
placeholder="Image URL"
title="Please enter a valid URL.">
</div>
<div class="mb-3">
<label for="banner" class="form-label mb-0">Banner</label>
<input
type="url"
name="banner"
class="form-control rounded-0 border-black"
id="banner"
placeholder="Image URL"
title="Please enter a valid URL.">
</div>
<div class="mb-3">
<label for="regPassword" class="form-label mb-0">Password*</label>
<input
type="password"
name="regPassword"
class="form-control rounded-0 border-black"
id="regPassword"
placeholder="Password"
minlength="8"
title="Password must be at least 8 characters long"
required>
</div>
<!-- Submit and cancel buttons inside the form -->
<div class="d-flex align-items-center flex-column border-0">
<button type="submit" class="btn btn-outline-primary text-black rounded-0 fw-semibold">Sign up <i class="bi bi-box-arrow-in-right "></i></button>
<span class="border border-primary-subtle my-3 w-75" style="height: 1px;"></span>
<button type="button" class="btn btn-outline-secondary rounded-0 fw-semibold" data-bs-dismiss="modal">Nevermind <i class="bi bi-x-circle "></i></button>
</div>
</form>
</div>
</div>
</div>
</div>
<main class="bg-white container-xxl p-0">
<!-- Create Listing Banner -->
<a href="listing/create/index.html" class="text-decoration-none">
<section
class="create-listing-banner bg-black d-flex justify-content-center align-content-center pt-3"
>
<div class="p-5">
<p class="text-white pe-5 h4">
Need more space for new junk? <br />
Sell your stuff!
</p>
<div class="d-flex justify-content-end">
<div class="btn btn-large border-0 rounded-0 fs-2 fw-semibold">
Create Listing
</div>
</div>
</div>
</section>
</a>
<!-- Listings Filter -->
<section class="container-xxl bg-white">
<h1 class="visually-hidden-focusable">Listings</h1>
<div class="d-flex justify-content-start my-3">
<select
class="form-select rounded-0 mb-3 border-black"
aria-label="Default select example"
id="filter-listings"
>
<option selected>Filter<i class="bi bi-chevron-down"></i></option>
<option value="">All Auctions</option>
<option value="1">Active Auctions</option>
</select>
</div>
<!-- Listings Container -->
<div class="loader mx-auto my-5"></div>
<div
class="d-flex justify-content-center align-items-center flex-wrap gap-4"
id="listings-container"
>
</div>
<!-- Cards -->
</section>
<div class="d-flex justify-content-center p-3">
<button class="btn btn-outline-primary text-black rounded-0 fw-semibold" id="see-more">
More Listings
</button>
</div>
</main>
<!-- Contact Modal -->
<div class="modal fade" id="ContactModal" tabindex="-1" aria-labelledby="ContactModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content rounded-0 thick-shadow-red border-black">
<div class="modal-body border-0 mx-auto" style="max-width: 800px; width: 100%;">
<img src="https://i.pinimg.com/736x/82/fa/6b/82fa6b73d34b060a877f18074c930b61.jpg" alt="Started making it. Had a breakdown. Bon appetite." class=" w-100">
<!-- overlayed close button -->
<button type="button" class="btn-close position-absolute top-0 end-0 m-3 p-3 bg-white rounded-circle" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-black text-white container-xxl d-flex justify-content-between align-items-center p-2 px-3">
<p class="fw-semibold" style="font-size: 12px">
©2024 <br />
BIDDEN <br />
All rights reserved
</p>
<!-- Fixed data-bs-target attribute -->
<button class="btn btn-large rounded-0 fw-semibold" data-bs-toggle="modal" data-bs-target="#ContactModal">Contact Us</button>
</footer>
</body>
</html>