-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate-product.html
123 lines (120 loc) · 5.46 KB
/
create-product.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wallafront - Post New Product</title><link rel="stylesheet" href="./assets/styles/normalize.css">
<link rel="stylesheet" href="./assets/styles/common.css">
<link rel="stylesheet" href="./assets/styles/components.css">
<link rel="stylesheet" href="./assets/styles/loader.css">
<link rel="stylesheet" href="./assets/styles/notifcation.css">
<link rel="stylesheet" href="./assets/styles/form.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20,400,0,0">
</head>
<body>
<div class="loader-container hidden">
<div class="loader"></div>
</div>
<main class="main">
<div class="form-container">
<div class="form">
<div class="notifications"></div>
<div class="form-header">
<h2 class="hd-1">New Product</h2>
<a href="/" class="btn-outline" title="Go back">
<span class="material-symbols-outlined">arrow_back</span>
</a>
</div>
<form method="post" enctype="multipart/form-data">
<div class="form-element">
<label for="image">Image</label>
<input
type="file"
name="image"
id="image"
accept="image/png, image/jpg, image/jpeg"
aria-describedby="image-help"
/>
<span id="image-help">Awolled image file types: PNG, JPG, JPEG</span>
</div>
<div class="form-element">
<label for="name">Title *</label>
<input
type="text"
name="name"
id="name"
placeholder="Enter product name"
maxlength="80"
aria-describedby="name-help"
required
/>
<span id="name-help">Max length 80 characters.</span>
</div>
<div class="form-element">
<label for="desc">Description *</label>
<textarea
name="desc"
id="desc"
placeholder="Describe what you want to buy or sell"
maxlength="320"
rows="10"
aria-describedby="desc-help"
required
></textarea>
<span id="desc-help">Max length 320 characters.</span>
</div>
<div class="form-element">
<label for="price">Price *</label>
<div class="input-icon">
<i>$</i>
<input
type="number"
name="price"
id="price"
placeholder="0.00"
step="0.01"
min="1"
max="99999"
required
/>
</div>
</div>
<div class="form-element">
<p><strong>Advertisement type *</strong></p>
<div class="form-group">
<div class="choice">
<input
type="radio"
name="ad-type"
id="ad-type-sell"
value="sell"
checked
required
/>
<label for="ad-type-sell"><span class="material-symbols-outlined">sell</span>Sell</label>
</div>
<div class="choice">
<input
type="radio"
name="ad-type"
id="ad-type-buy"
value="buy"
required
/>
<label for="ad-type-buy"><span class="material-symbols-outlined">shopping_cart</span>Buy</label>
</div>
</div>
</div>
<div class="form-buttons">
<button type="submit" class="btn">Upload</button>
</div>
</form>
</div>
</div>
</main>
<script type="module" src="./createProduct.js"></script>
</body>
</html>