-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
193 lines (164 loc) · 4.56 KB
/
example.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
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
<!DOCTYPE html>
<html>
<head>
<title>Personal NFT Gallery</title>
<meta charset='UTF-8'> <!-- TODO: complete meta with e.g. keywords, description, author, etc -->
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' href='https://www.w3schools.com/w3css/4/w3.css'>
<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<style>
div.gallery {
border: 1px solid #ccc;
}
div.gallery:hover {
border: 1px solid #777;
}
div.gallery img {
width: 100%;
height: auto;
}
div.desc {
padding: 7px;
text-align: center;
}
h3 {
padding: 7px;
text-align: center;
}
* {
box-sizing: border-box;
}
.responsive {
padding: 0 6px;
float: left;
width: 33.333333%;
}
@media only screen and (max-width: 700px) {
.responsive {
width: 49.99999%;
margin: 6px 0;
}
}
@media only screen and (max-width: 500px) {
.responsive {
width: 100%;
}
}
.clearfix:after {
content: '';
display: table;
clear: both;
}
/* Style the top navigation bar */
.topnav {
overflow: hidden;
background-color: #333;
}
/* Style the topnav links */
.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change color on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}
.collapsible {
padding: 7px;
text-align: center;
width: 100%;
border: none;
outline: none;
cursor: pointer;
}
.active, .collapsible:hover {
background-color: #555;
}
.content {
/* padding: 0 18px; */
display: none;
overflow: hidden;
/* background-color: #f1f1f1; */
}
</style>
</head>
<body>
<div class='topnav'>
<a href='#'>Personal NFT Gallery</a> <!-- TODO: update link to go to UI canister -->
<a href='#gallery'>Gallery</a>
<a href='#about'>About</a>
</div>
<h3 id='gallery'><b>Welcome to My Personal NFT Gallery</b></h3> <!-- TODO: replace My with user name -->
<div class='responsive'>
<div class='gallery'>
<a target='_blank' href='https://www.w3schools.com/css/img_5terre.jpg'>
<img src='https://www.w3schools.com/css/img_5terre.jpg' alt='Cool NFT' width='600' height='400'>
</a>
<button type='button' class='collapsible'>See Details</button>
<div class='content'>
<p>Lorem ipsum .</p>
</div>
</div>
</div>
<div class='responsive'>
<div class='gallery'>
<a target='_blank' href='https://www.w3schools.com/css/img_forest.jpg'>
<img src='https://www.w3schools.com/css/img_forest.jpg' alt='Cool NFT' width='600' height='400'>
</a>
<button type='button' class='collapsible'>See Details</button>
<div class='content'>
<p>Lorem ipsum .</p>
</div>
</div>
</div>
<div class='responsive'>
<div class='gallery'>
<a target='_blank' href='https://www.w3schools.com/css/img_lights.jpg'>
<img src='https://www.w3schools.com/css/img_lights.jpg' alt='Cool NFT' width='600' height='400'>
</a>
<button type='button' class='collapsible'>See Details</button>
<div class='content'>
<p>Lorem ipsum .</p>
</div>
</div>
</div>
<div class='responsive'>
<div class='gallery'>
<a target='_blank' href='https://www.w3schools.com/css/img_mountains.jpg'>
<img src='https://www.w3schools.com/css/img_mountains.jpg' alt='Mountains' width='600' height='400'>
</a>
<button type='button' class='collapsible'>See Details</button>
<div class='content'>
<p>Lorem ipsum .</p>
</div>
</div>
</div>
<div class='clearfix'></div>
<footer class='w3-light-grey w3-padding-64 w3-center' id='about'>
<h2>About</h2>
<p>These are my favorite NFTs. Please enjoy!</p> <!-- TODO: replace with about description -->
<br>
<p>Powered by <a href='https://www.w3schools.com/w3css/default.asp' target='_blank' class='w3-hover-text-green'>Personal NFT Gallery</a> and hosted on <a href='https://internetcomputer.org/' target='_blank' class='w3-hover-text-green'>Internet Computer</a></p> <!-- TODO: replace link with link to UI canister -->
</footer>
<script>
var coll = document.getElementsByClassName('collapsible');
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener('click', function() {
this.classList.toggle('active');
var content = this.nextElementSibling;
if (content.style.display === 'block') {
content.style.display = 'none';
} else {
content.style.display = 'block';
}
});
}
</script>
</body>
</html>