summaryrefslogtreecommitdiff
path: root/share/templates/default/splash.tmpl
blob: 8937fc274af879cfcd0e3f9ab63d63fe55b80de1 (plain)
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
cat <<END
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>${render_title_html}</title>
    <link rel="icon" href="${render_backhref_html}/favicon.ico" type="image/x-icon">
    <style>
        body {
            background-color: #000000;
            color: #ffffff;
            background-image:
                linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85)),
                url("${render_backhref_css}/${render_blurs_dir_css}/${render_background_image_css}");
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center center;
            font-family: verdana, sans-serif;
            margin: 0;
            min-height: 100vh;
            text-align: center;
        }

        a {
            color: #ffffff;
        }

        main.splash {
            align-items: center;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 100vh;
            padding: 24px;
        }

        h1 {
            background-color: #000000;
            border: 3px solid #ffffff;
            box-sizing: border-box;
            font-size: 2em;
            margin: 0 0 18px;
            max-width: 900px;
            padding: 8px 12px;
            width: 100%;
        }

        img.splash-photo {
            background-color: #000000;
            border: 3px solid #ffffff;
            box-sizing: border-box;
            max-height: 72vh;
            max-width: 95vw;
            object-fit: contain;
            padding: 5px;
        }

        p.enter {
            background-color: #000000;
            border: 3px solid #ffffff;
            font-size: 1.2em;
            margin: 18px 0 0;
            padding: 8px 14px;
        }
    </style>
</head>

<body>
    <main class="splash">
        <h1>${render_title_html}</h1>
        <a href="${render_enter_page_html}.html">
            <img class="splash-photo" alt="${render_title_html}" src="${render_backhref_html}/${render_photos_dir_html}/${render_photo_html}">
        </a>
        <p class="enter">
            <a href="${render_enter_page_html}.html">Enter album</a>
        </p>
    </main>
</body>
</html>
END