-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (61 loc) · 2.42 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<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=Bree+Serif&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Little Shop</title>
</head>
<body>
<aside>
<header>
<h1>Little Shop</h1>
<h2>Admin Portal</h2>
</header>
<nav>
<button id="merchants-nav" class="active-nav">
<h2>Merchants</h2>
</button>
<button id="items-nav">
<h2>Items</h2>
</button>
</nav>
</aside>
<main>
<section class="display-options">
<h3>Showing: <span id="showing-text">All Merchants</span></h3>
<button id="add-new-button" class="add-new-button rounded" data-state="merchant">+ Add New</button>
</section>
<section id="add-new-options">
<form id="new-merchant-form" class="hidden">
<label for="new-merchant-name">New Merchant Name: </label>
<input id="new-merchant-name" name="new-merchant-name" type="text">
<button id="submit-merchant" class="submit">Submit</button>
</form>
<p id="status-message" class="hidden"><!-- Status message here! --></p>
<form id="new-merchant-form" class="hidden">
<label for="new-item-name">New Item Name</label>
<input id="new-item-name" name="new-item-name" type="text">
<label for="new-item-description">New Item Description</label>
<input id="new-item-description" name="new-item-description" type="text">
<label for="new-item-price">New Item Price</label>
<input id="new-item-price" name="new-item-price" type="text">
<button id="submit-item" class="submit rounded">Submit</button>
</form>
</section>
<section id="merchants-view" class="view">
<!-- Data will be displayed here -->
</section>
<section id="items-view" class="view hidden">
<!-- Data will be displayed here -->
</section>
<section id="single-merchant-view" class="view hidden">
<!-- Data will be displayed here -->
</section>
</main>
<script type="module" src="/main.js"></script>
</body>
</html>