-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.html
71 lines (71 loc) · 2.15 KB
/
template.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
<!DOCTYPE html>
<html>
<head>
<title>{}</title>
</head>
<body onload="load()">
<div class="wrapper">
<img src="{}" />
<div class="data-wrapper">
<span class="title"><b>{}</b></span>
<div class="tags"></div>
<div>Date Taken: {}</div>
<div>Taken By: {}</div>
</div>
</div>
<script>
function load(){{
var tags = {}
var tagWrapper = document.getElementsByClassName('tags')[0]
tags.forEach((tag, _) => {{
tagSpan = document.createElement('span')
tagSpan.classList.add('tag')
tagSpan.innerText = tag
tagWrapper.appendChild(tagSpan)
}})
}}
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400&display=swap');
.wrapper{{
position: relative;
width: 90%;
left: 5%;
border-radius: 20px;
box-shadow: 0px 0px 20px 1px;
margin-bottom: 80px;
padding-bottom: 20px;
font-family: 'Montserrat', sans-serif;
}}
.title{{
font-size: 20px;
}}
.data-wrapper{{
position: relative;
width: 90%;
margin-top: 10px;
left: 5%;
font-family: inherit;
}}
img{{
width: 100%;
border-radius: 20px 20px 0px 0px;
}}
.tags{{
width: 100%;
margin-top: 20px;
}}
.tag{{
padding: 6px 14px;
height: 30px;
line-height: 30px;
border-radius: 21px;
background-color: red;
color: white;
margin-right: 10px;
margin-bottom: 6px;
display: inline-block;
}}
</style>
</body>
</html>