-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
79 lines (76 loc) · 2.04 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo</title>
<style type="text/css">
img {
width: 32px;
height: 32px;
}
div {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 5px;
border: 1px solid #c0c0c0;
border-radius: 8px;
padding: 20px;
cursor: pointer;
background: #c0c0c0;
}
div:hover {
background: #fff;
}
body {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 20px;
padding: 80px;
}
</style>
</head>
<body>
<div>
<img src="http://localhost:8080/?url=pirsch.io&size=32" />
<p>pirsch.io</p>
</div>
<div>
<img src="http://localhost:8080/?url=google.com&size=32" />
<p>google.com</p>
</div>
<div>
<img src="http://localhost:8080/?url=github.com&size=32" />
<p>github.com</p>
</div>
<div>
<img src="http://localhost:8080/?url=producthunt.com&size=192" />
<p>producthunt.com</p>
</div>
<div>
<img src="http://localhost:8080/?size=32&url=https://www.youtube.com/watch?v=dQw4w9WgXcQ" />
<p>youtube.com</p>
</div>
<div>
<img src="http://localhost:8080/?url=key+words" />
<p>Keywords</p>
</div>
<div>
<img src="http://localhost:8080/?url=key%20words&fallback=default-white.svg" />
<p>Keywords (white)</p>
</div>
<div>
<img src="http://localhost:8080/?size=32&url=https://this-should-not-exist" />
<p>Fallback</p>
</div>
<div>
<img src="http://localhost:8080/?size=32&url=https://this-should-not-exist&fallback=default-white.svg" />
<p>Fallback (white)</p>
</div>
<div>
<img src="http://localhost:8080/?url=&size=16&fallback=fallback-white.svg" />
<p>Broken Fallback</p>
</div>
</body>
</html>