142 lines
3.6 KiB
HTML
142 lines
3.6 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
|
|
<head>
|
|
<title>{{ .Label.Title }}</title>
|
|
<meta charset="UTF-8" />
|
|
<meta name="darkreader-lock">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="shortcut icon" type="image/png" href="{{ .URL }}" />
|
|
<meta property="og:image" content="https://{{ .FullURL }}" />
|
|
<meta property="og:title" content="{{ .Label.Title }}" />
|
|
<meta property="og:description" content="{{ .Label.Title}}, {{ .Label.Date }}" />
|
|
<style type="text/css">
|
|
body {
|
|
height: 100svh;
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 2%;
|
|
row-gap: 2%;
|
|
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
|
|
align-items: center;
|
|
justify-items: center;
|
|
|
|
background: #fff;
|
|
}
|
|
|
|
@media (orientation: landscape) {
|
|
body {
|
|
grid-template-columns: none;
|
|
grid-auto-flow: column;
|
|
grid-template-rows: 1fr;
|
|
justify-items: center;
|
|
|
|
align-items: normal;
|
|
}
|
|
}
|
|
|
|
.frame {
|
|
background: white;
|
|
box-shadow: inset 0 0 17px rgba(0, 0, 0, 0.78);
|
|
padding: 38px;
|
|
border: 25px solid black;
|
|
|
|
box-sizing: border-box;
|
|
min-height: 0;
|
|
max-height: 100%;
|
|
|
|
display: grid;
|
|
justify-items: center;
|
|
}
|
|
|
|
.frame img {
|
|
background: white;
|
|
box-sizing: border-box;
|
|
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
|
|
padding: 3.5px;
|
|
|
|
min-height: 0;
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.label {
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
line-height: 125%;
|
|
overflow-wrap: break-word;
|
|
|
|
align-self: center;
|
|
|
|
color: #000;
|
|
padding: 1em 2em;
|
|
background-color: #f9f9f9;
|
|
border-top: 3px solid #fff;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 1px 0 6px rgba(0, 0, 0, 0.1), -1px 0 6px rgba(0, 0, 0, 0.1);
|
|
box-sizing: border-box;
|
|
margin-left:9px;
|
|
margin-right:9px;
|
|
margin-bottom: 9px;
|
|
|
|
min-width: 20em;
|
|
max-width: 80%;
|
|
}
|
|
|
|
.label .headline,
|
|
.label .title,
|
|
.label .details {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.label .headline {
|
|
font-size: 1.2em;
|
|
}
|
|
.label .title {
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.label .description {
|
|
}
|
|
|
|
hr {
|
|
border: 0;
|
|
height: 1px;
|
|
background-color: #000;
|
|
margin: 1em 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="frame">
|
|
<img alt="Artwork" src="{{ .URL }}" />
|
|
</div>
|
|
<div>
|
|
<div class="label">
|
|
{{ if .Label.TitleJpnIsKatakana }}
|
|
<div class="headline">
|
|
<span class="title">{{ .Label.TitleJpn }}</span>
|
|
</div>
|
|
{{end}}
|
|
<div class="headline">
|
|
<span class="title">{{ .Label.Title }}, </span> <span class="date">{{ .Label.Date }} </span>
|
|
</div>
|
|
<hr>
|
|
<div class="details">
|
|
<br>{{ .Label.Size }}<br>{{ .Label.Technique }}<br>
|
|
</div>
|
|
</div>
|
|
{{ if .Label.Description }}
|
|
<div class="label">
|
|
<p class="description">{{ .Label.Description }}</p>
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|