-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.tmpl
74 lines (69 loc) · 1.68 KB
/
1.tmpl
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@600&display=swap" rel="stylesheet">
<style>
html, body {
width: 1200px;
height: 600px;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(144, 250, 250);
}
#wrapper {
padding: 5rem;
margin: 5rem;
background-color: whitesmoke;
border-radius: 30px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05);
width: 800px;
height: 300px;
}
#content {
font-size: 40px;
font-family: 'Noto Sans JP', sans-serif;
font-weight: bold;
word-break: break-word;
height: 250px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
#sub-content {
display: flex;
justify-content: end;
align-items: center;
font-size: 30px;
font-family: 'Noto Sans JP', sans-serif;
}
#icon {
margin-right: 1rem;
width: 75px;
height: 75px;
border-radius: 50%;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="content">
{{.Title}}
</div>
<div id="sub-content">
{{if .IconPath}}
<img id="icon" src="data:image/png;base64,{{.IconPath}}" />
{{end}}
<div>{{.Author}}</div>
</div>
</div>
</body>
</html>