-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
107 lines (106 loc) · 3.47 KB
/
admin.html
File metadata and controls
107 lines (106 loc) · 3.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin Dashboard - Fruit Shop</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header role="banner">
<div class="header-center">
<a href="index.html" class="logo" aria-label="Go to homepage">
<img
src="img/giraffe-logo.svg"
class="logo-img"
alt="Fruit Shop Logo"
/>
<span class="products-text" style="text-align: center">
View Products
</span>
</a>
<nav role="navigation" aria-label="Main navigation">
<div class="nav-links">
<a href="index.html">Home</a>
<a href="bundles.html">Bundles</a>
<a href="personality-quiz.html" class="quiz-link">🌟 Fruit Quiz</a>
<a href="admin.html" class="admin-link active">🔐 Admin</a>
</div>
<a
href="basket.html"
class="basket-link"
aria-label="View shopping basket"
style="position: relative"
>
<img
src="img/basket-icon.png"
class="basket-img"
alt="Shopping basket icon"
/>
<span class="basket-text">View shopping basket</span>
</a>
</nav>
</div>
</header>
<main id="main-content" role="main" class="admin-main">
<section
id="adminLoginSection"
class="content-box admin-card"
aria-live="polite"
>
<h1>Admin Login</h1>
<p>Enter the admin passphrase to access restricted insights.</p>
<form id="adminLoginForm">
<label for="adminPass">Passphrase</label>
<input
type="password"
id="adminPass"
name="adminPass"
required
aria-required="true"
/>
<button type="submit" class="cart-action-btn">Log In</button>
</form>
<p id="adminLoginError" class="admin-error" role="alert"></p>
<p class="admin-hint" aria-live="polite">
Hint: passphrase is <span class="admin-code">ADMIN</span>
</p>
</section>
<section
id="adminDashboardSection"
class="content-box admin-card"
style="display: none"
aria-live="polite"
>
<div class="admin-dashboard-header">
<div>
<p class="admin-eyebrow">Secure area</p>
<h1>Product Overview</h1>
</div>
<button id="adminLogoutBtn" class="secondary-btn">Logout</button>
</div>
<p>
Monitor all products from a single place. Use the visibility toggles
to enable or disable what shoppers can see on the public site.
</p>
<div class="admin-table-wrapper">
<table class="admin-table" aria-label="Products overview table">
<thead>
<tr>
<th scope="col">Emoji</th>
<th scope="col">Product</th>
<th scope="col">SKU</th>
<th scope="col">Tagline</th>
<th scope="col">Status</th>
<th scope="col">Visibility</th>
</tr>
</thead>
<tbody id="adminProductsBody"></tbody>
</table>
</div>
</section>
</main>
<script src="shop.js"></script>
<script src="admin.js"></script>
</body>
</html>