-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmetadata_html.go
More file actions
76 lines (70 loc) · 1.33 KB
/
metadata_html.go
File metadata and controls
76 lines (70 loc) · 1.33 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
package main
const (
indexHtml = "index.html"
htmlStart = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gondola</title>
<style>
* {
margin:0;
padding:0;
border:0;
outline:0;
font-family: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
border-collapse: collapse;
}
h1, h3 {
padding: 0.3em;
text-align: center;
}
table {
width: 100%;
}
td {
vertical-align: top;
width: 50%;
padding: 0.5em;
}
p {
text-align: center;
width: 100%;
}
img {
width: 9em;
height: 9em;
object-fit: contain;
background-color: gray;
background-size: 1000%;
background-position: center;
}
a {
text-decoration: none;
}
</style>
</head>
<body>
<h1>Gondola</h1>
<table>`
htmlTd = `<td>
<a href="LINK">
<p><img src="IMAGE" style='background-image: url("IMAGE")' /></p>
<p>NAME</p>
</a>
</td>`
htmlEnd = `
</table>
<h3>
Gondola made with ♥ by <a href="http://www.splinter.com.au">Chris Hulbert</a>
<br />
<a href="http://www.splinter.com.au/gondola">splinter.com.au/gondola</a>
<br />
<small><a href="javascript:alert('CAPACITY')">Usage</a></small>
<br />
<br />
<small><em>This product uses the <a href="https://www.themoviedb.org">TMDb</a> API but is not endorsed or certified by TMDb.</em></small>
</h3>
</body>
</html>`
)