-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexplore.html
More file actions
218 lines (211 loc) · 5.95 KB
/
explore.html
File metadata and controls
218 lines (211 loc) · 5.95 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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Explore</title>
<link href="https://fonts.googleapis.com/css2?family=Russo+One&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap" rel="stylesheet">
<link href="https://unpkg.com/aos@next/dist/aos.css" rel="stylesheet">
<link rel="stylesheet" href="utils.css">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/ethers@5.7.2/dist/ethers.umd.min.js"></script>
<style>
main {
margin-top: 100px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
grid-gap: 20px;
justify-items: center;
align-content: center;
padding: 20px;
}
</style>
</head>
<body>
<nav class="flex space-around center-cross">
<div id="logo">Smart Share</div>
<ul id="nav-list" class="flex space-around baseline">
<a href="index.html">
<li>Home</li>
</a>
<a href="explore.html">
<li>Explore Listings</li>
</a>
<a href="upload.html">
<li>Create Listings</li>
</a>
<a href="dashboard.html">
<li>Dashboard</li>
</a>
</ul>
<div id="wallet">
<button class="btn" onclick="connectWallet()"><span>Connect Wallet</span></button>
</div>
</div>
</nav>
<main data-aos="fade-up" data-aos-delay="200" data-aos-duration="1000" class="container">
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
<div class="holder">
<h2>Guitar</h2>
<hr>
<p>Duration: 7 Days</p>
<p>Price: 100 Barts</p>
<p>Listed: Today</p>
<p>Available: Yes</p>
<p>By: User1</p>
<button class="btn"><span>Initiate</span></button>
</div>
</main>
<footer id="footer">
<div id="foot-main">
<div class="foot-sec">
<h3 class="foothead">Quick Links</h3>
<ul id="foot-nav-list">
<a href="index.html">
<li>Home</li>
</a>
<a href="explore.html">
<li>Explore Listings</li>
</a>
<a href="upload.html">
<li>Create Listings</li>
</a>
<a href="dashboard.html">
<li>Dashboard</li>
</a>
</ul>
</div>
<div class="foot-sec">
<h3 class="foothead">Follow Us</h3>
<ul id="social-links">
<a href="">
<li><img src="./images/fb.svg" height="35px"></li>
</a>
<a href="">
<li><img src="./images/insta.svg" height="35px"></li>
</a>
<a href="">
<li><img src="./images/reddit.svg" height="35px"></li>
</a>
</ul>
</div>
<div class="foot-sec">
<h3 class="foothead">Contact Us</h3>
<ul style="list-style: none;">
<li>Email: <br>SmartShare@gmail.com</li>
<li>Phone: <br>+91 123 456 7890</li>
</ul>
</div>
</div>
<div id="foot-aside">
<p>© Copyright & Terms of Use </p>
</div>
</footer>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
<script defer>
const itemList = JSON.parse(localStorage.getItem("itemList"));
itemList.forEach(itemData => {
if (itemData) {
container = document.getElementsByClassName("container")[0];
holder = document.createElement("div");
holder.classList.add("holder");
holder.innerHTML =
`
<h2>${itemData.name}</h2>
<hr>
<p>Duration: ${itemData.duration}</p>
<p>Price: ${itemData.price}</p>
<p>Listed: ${itemData.listed}</p>
<p>Available: ${itemData.available}</p>
<p>By: ${itemData.user}</p>
<button class="btn"><span>Initiate</span></button>
`;
container.insertBefore(holder, container.firstChild);
}
});
</script>
<script src="blockchain.js"></script>
</body>
</html>