forked from hmellor/auction-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.html
156 lines (150 loc) · 5.04 KB
/
admin.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
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="robots" content="NOINDEX, NOFOLLOW" />
<!--add no follow tag to keep out of front facing index and search engines-->
<meta name="description" content="An auction website" />
<meta
property="og:image"
content="https://www.mellor.io/auction-website/img/banner.png"
/>
<meta name="keywords" content="Online Auctions" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Markatplace</title>
<link rel="icon" type="image/png" href="./img/favicon.ico" />
<!-- Bootstrap -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"
></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="./css/auction-website.css" />
<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=Roboto&display=swap"
rel="stylesheet"
/>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-dark bg-primary">
<div class="container-fluid">
<a class="navbar-brand mb-0 h1 me-auto">
<img
src="./img/logo.png"
alt=""
width="30"
height="24"
class="d-inline-block align-text-top"
/>
The Markatplace
</a>
<div class="row row-cols-auto">
<a class="navbar-brand" id="username-display"></a>
<a
id="admin-button"
class="btn btn-secondary me-2"
href="index.html"
role="button"
>Main</a
>
<button id="auth-button" class="btn btn-secondary me-2">
Sign up
</button>
</div>
</div>
</nav>
<!-- Grid of auction items -->
<div id="table-container" class="container">
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Title</th>
<th scope="col">Price</th>
<th scope="col">Bids</th>
<th scope="col">Winning</th>
<th scope="col">Time left</th>
</tr>
</thead>
<tbody></tbody>
</table>
<footer
class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top"
>
<div class="col-md-4 d-flex align-items-center">
<span class="text-muted">© 2022 Harry Mellor</span>
</div>
<ul class="nav col-md-4 justify-content-end list-unstyled d-flex">
<li class="ms-3">
<a
class="bi bi-github text-muted"
href="https://github.com/HMellor/"
width="24"
height="24"
></a>
</li>
</ul>
</footer>
</div>
<!-- Login popup -->
<div id="login-modal" class="modal" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 id="login-modal-title" class="modal-title">
Sign up for Markatplace Auction
</h5>
</div>
<div class="modal-body">
<p>
We use anonymous authentication provided by Google. Your account
is attached to your device signature.
</p>
<p>The username just lets us know who's bidding!</p>
<form onsubmit="return false;">
<div class="form-floating mb-3">
<input
type="username"
class="form-control"
id="username-input"
placeholder="username"
/>
<label for="username-input">Username</label>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
aria-label="Cancel"
>
Cancel
</button>
<button type="submit" class="btn btn-primary">Sign up</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<!-- Create anonymous account -->
<script type="module">
import { autoSignIn } from "./js/popups.js";
import { setupTable } from "./js/admin.js";
autoSignIn();
setupTable();
</script>
</body>
</html>