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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
|
cat <<END
<html>
<head>
<title>${render_title_html}</title>
<style type="text/css">
body {
background-color: #000000;
color: #ffffff;
background-image: url("${render_backhref_css}/${render_blurs_dir_css}/${render_background_image_css}");
background-size: cover;
background-repeat: no-repeat;
text-align: center;
font-family: verdana, sans-serif;
}
a {
color: #ffffff;
}
a.arrow {
text-decoration: none;
font-weight: bolder;
}
div.header {
background-color: #000000;
border: 3px solid #ffffff;
padding: 3px;
margin-top: 2px;
margin-bottom: 2px;
}
div.footer, div.navigator {
background-color: #000000;
border: 3px solid #ffffff;
padding: 3px;
max-width: 400px;
margin: 2 auto;
}
div.details-panel {
background-color: #000000;
border: 3px solid #ffffff;
flex: 1 1 34%;
max-width: 900px;
padding: 10px;
text-align: left;
}
div.details-layout {
align-items: flex-start;
display: flex;
gap: 12px;
justify-content: center;
margin: 0 auto;
max-width: 98vw;
}
a.details-photo-link {
flex: 1 1 62%;
min-width: 0;
}
div.details-panel h1 {
font-size: 1.1em;
margin-top: 0;
text-align: center;
}
table.details {
border-collapse: collapse;
width: 100%;
}
table.details th,
table.details td {
border-top: 1px solid #ffffff;
padding: 4px;
text-align: left;
vertical-align: top;
word-break: break-word;
}
table.details th {
white-space: nowrap;
}
img {
padding: 5px;
}
img.thumb {
height: ${render_thumbheight_html}px;
width: ${render_thumbheight_html}px;
object-fit: cover;
}
img.thumb:hover {
outline: 4px solid #ffffff;
-webkit-transform: scaleX(-1);
transform: scaleX(-1) scale(1.08) rotate(2deg);
filter: contrast(1.6) saturate(1.8);
object-fit: contain;
}
img.view {
max-height: ${render_height_html}px;
width: 95%;
height: 80%;
object-fit: contain;
}
div.details-layout img.details-photo {
height: auto;
max-height: min(${render_height_html}px, 85vh);
max-width: 100%;
width: auto;
}
.animate-none{}
.animate-fading {animation:fading 10s}@keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}}
.animate-opacity-slow {animation:opac 2.0s}@keyframes opac{from{opacity:0} to{opacity:1}}
.animate-top-slow {position:relative;animation:animatetop 2.0s}@keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}}
.animate-left-slow {position:relative;animation:animateleft 2.0s}@keyframes animateleft{from{left:-300px;opacity:0} to{left:0;opacity:1}}
.animate-right-slow {position:relative;animation:animateright 2.0s}@keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}}
.animate-bottom-slow {position:relative;animation:animatebottom 2.0s}@keyframes animatebottom{from{bottom:-300px;opacity:0} to{bottom:0;opacity:1}}
.animate-zoom-slow {animation:animatezoom 2.0s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}
.animate-opacity-fast {animation:opac 0.5s}@keyframes opac{from{opacity:0} to{opacity:1}}
.animate-top-fast {position:relative;animation:animatetop 0.5s}@keyframes animatetop{from{top:-300px;opacity:0} to{top:0;opacity:1}}
.animate-left-fast {position:relative;animation:animateleft 0.5s}@keyframes animateleft{from{left:-300px;opacity:0} to{left:0;opacity:1}}
.animate-right-fast {position:relative;animation:animateright 0.5s}@keyframes animateright{from{right:-300px;opacity:0} to{right:0;opacity:1}}
.animate-bottom-fast {position:relative;animation:animatebottom 0.5s}@keyframes animatebottom{from{bottom:-300px;opacity:0} to{bottom:0;opacity:1}}
.animate-zoom-fast {animation:animatezoom 0.5s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}
.animate-snap-rotate-slow {animation:snaprotate 0.65s steps(2,end)}
.animate-snap-rotate-fast {animation:snaprotate 0.22s steps(2,end)}
@keyframes snaprotate{0%{opacity:0;transform:rotate(-32deg) scale(.6)}50%{opacity:1;transform:rotate(18deg) scale(1.15)}100%{transform:rotate(0) scale(1)}}
.animate-hard-zoom-slow {animation:hardzoom 0.55s steps(3,end)}
.animate-hard-zoom-fast {animation:hardzoom 0.18s steps(2,end)}
@keyframes hardzoom{0%{opacity:0;transform:scale(.15)}65%{opacity:1;transform:scale(1.35)}100%{transform:scale(1)}}
.animate-slam-left-slow {animation:slamleft 0.55s steps(3,end)}
.animate-slam-left-fast {animation:slamleft 0.18s steps(2,end)}
@keyframes slamleft{0%{opacity:0;transform:translateX(-80vw)}70%{opacity:1;transform:translateX(24px)}100%{transform:translateX(0)}}
.animate-slam-right-slow {animation:slamright 0.55s steps(3,end)}
.animate-slam-right-fast {animation:slamright 0.18s steps(2,end)}
@keyframes slamright{0%{opacity:0;transform:translateX(80vw)}70%{opacity:1;transform:translateX(-24px)}100%{transform:translateX(0)}}
.animate-flash-in-slow {animation:flashin 0.5s steps(2,end)}
.animate-flash-in-fast {animation:flashin 0.16s steps(2,end)}
@keyframes flashin{0%{opacity:0;filter:brightness(5) contrast(3)}40%{opacity:1;filter:brightness(7) contrast(4)}100%{filter:none}}
.animate-invert-pop-slow {animation:invertpop 0.55s steps(3,end)}
.animate-invert-pop-fast {animation:invertpop 0.18s steps(2,end)}
@keyframes invertpop{0%{opacity:0;filter:invert(1)}50%{opacity:1;filter:invert(1) saturate(2)}100%{filter:none}}
.animate-posterize-pop-slow {animation:posterizepop 0.55s steps(3,end)}
.animate-posterize-pop-fast {animation:posterizepop 0.18s steps(2,end)}
@keyframes posterizepop{0%{opacity:0;filter:contrast(5) saturate(0)}55%{opacity:1;filter:contrast(4) saturate(4)}100%{filter:none}}
.animate-skew-snap-slow {animation:skewsnap 0.55s steps(3,end)}
.animate-skew-snap-fast {animation:skewsnap 0.18s steps(2,end)}
@keyframes skewsnap{0%{opacity:0;transform:skewX(-24deg) translateY(-40px)}65%{opacity:1;transform:skewX(18deg) translateY(18px)}100%{transform:skewX(0) translateY(0)}}
.animate-glitch-step-slow {animation:glitchstep 0.65s steps(4,end)}
.animate-glitch-step-fast {animation:glitchstep 0.2s steps(4,end)}
@keyframes glitchstep{0%{opacity:0;transform:translate(-22px,12px);filter:hue-rotate(90deg)}25%{opacity:1;transform:translate(18px,-10px);filter:invert(1)}50%{transform:translate(-12px,-8px);filter:contrast(4)}75%{transform:translate(8px,6px);filter:saturate(4)}100%{transform:translate(0,0);filter:none}}
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
@media (max-width: 900px) {
div.details-layout {
align-items: center;
flex-direction: column;
}
div.details-panel {
box-sizing: border-box;
width: 95%;
}
}
</style>
</head>
<body>
END
if [ "${render_show_header_bar}" = 'yes' ]; then
cat <<END
<div class="header animate-opacity">
Site generated at ${render_current_date_text} with <a href="https://codeberg.org/snonux/photoalbum">codeberg.org/snonux/photoalbum</a>
-
© by Paul Buetow
</div>
END
fi
|