-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew celo 34
188 lines (158 loc) · 4.35 KB
/
new celo 34
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
git clone https://github.com/decadeorg/celo-boilderplate-web-dapp
cd cel-boilerplate-web-dapp
npm install
npm run dev
<!DOCTYPE html>
<html lang ="en">
<head>
<!-- Required meta tags -->
<meta charset = "utf-8" />
<meta name = "viewport" content = "width=device-widht, initial-scale=1" />
<!-- CSS -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css//bootstrap.min.css"
rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
/>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<style>
:root {
--bs-font-sans-serif: "DM sans", sans-serif;
}
@media (min-widht; 576px) {
.card {
border: 0;
box-shadow: rgb (0 0 0 / 5%) 0px 10px 20px;
border-radius: 10px;
}
}
</style>
<title> street food kigali</title>
</head>
<body>
<div class="container mt-2" style="max-width: 72em">
<nav class="navbar bg-white navbar-light">
<div class="container-fluid">
<span class="navbar-brand m-0 h4 fw-bold">Street Food Kigali</span>
<span class="nav-link border rounded-pill bg-light">
<span id="balance">0</span>
cUSD
</span>
</div>
</nav>
<div class="alert alert-warning sticky-top mt-2" role="alert">
<span id="notification">⌛ Loading...</span>
</div>
<div class="mb-4" style="margin-top: 4em">
<a
class="btn btn-dark rounded-pill"
data-bs-toggle="modal"
data-bs-target="#addModal"
>
Add product
</a>
</div>
<main id="marketplace" class="row"></main>
</div>
<!--Modal-->
<div
class="modal fade"
id="addModal"
tabindex="-1"
aria-labelledby="newProductModalLabel"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="newProductModalLabel">New Product</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<form>
<div class="form-row">
<div class="col">
<input
type="text"
id="newProductName"
class="form-control mb-2"
placeholder="Enter name of product"
/>
</div>
<div class="col">
<input
type="text"
id="newImgUrl"
class="form-control mb-2"
placeholder="Enter image url"
/>
</div>
<div class="col">
<input
type="text"
id="newProductDescription"
class="form-control mb-2"
placeholder="Enter product description"
/>
</div>
<div class="col">
<input
type="text"
id="newLocation"
class="form-control mb-2"
placeholder="Enter location"
/>
</div>
<div class="col">
<input
type="text"
id="newPrice"
class="form-control mb-2"
placeholder="Enter price"
/>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-light border"
data-bs-dismiss="modal"
>
Close
</button>
<button
type="button"
class="btn btn-dark"
data-bs-dismiss="modal"
id="newProductBtn"
>
Add product
</button>
</div>
</div>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
crossorigin="anonymous"
></script>
<script src="https://unpkg.com/[email protected]/blockies.min.js"></script>
</body>
</html>