all repos — www @ 61ecd074f9124d0e38636fb1d93cf45cc990b525

deserthorns.net content + generator

pages/index.html (view raw)

 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
{{ define "head" }}
<style>
    html {
        background: var(--f_high);
    }

    body {
        -webkit-text-size-adjust: 100%;
        margin: 0;
    }

    a {
        color: var(--f_med);
    }

    .content {
        margin: 3rem auto 8rem;
        padding: 2rem;
        max-width: 30rem;
        background: var(--background);
        border-radius: var(--border-radius);
    }

    .logo {
        display: block;
        width: 8rem;
        height: 8rem;
        margin: 0 auto;
    }

    blockquote {
        color: var(--f_med);
        text-align: center;
        margin: 3rem 0.5rem 1rem;
    }

    blockquote p {
        margin: 0.5rem;
    }

    blockquote + cite {
        color: var(--f_med);
        display: block;
        text-align: center;
    }

    blockquote + cite::before {
        content: "- ";
    }

    .header {
        height: 40vh;
    }

    .header-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        image-rendering: crisp-edges;
    }

    hr {
        border: 1px solid var(--b_inv);
    }

    nav {
        margin-bottom: 4rem;
    }

    nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        list-style: none;
        text-align: center;
        font-size: 1.25rem;
        padding: 0;
    }

    nav li {
        padding: 0;
        margin-top: 1rem;
    }

    nav li > a {
        border: 1px solid var(--b_med);
        width: fit-content;
        padding: 0.25rem 0.5rem;
        margin: 0.5rem;
        box-shadow: 4px 4px var(--b_med);
        text-decoration: none;
        font-family: monospace;
        font-size: 1rem;
        border-radius: var(--border-radius);
    }

    nav li > a:hover {
        background: var(--b_high);
        color: var(--background);
        border-color: var(--background);
        box-shadow: 4px 4px var(--b_high);
    }

    @media screen and (max-width: 600px) {
        .header {
            height: 30vh;
        }

        .content {
            max-width: 17rem;
        }

        .logo {
            width: 6rem;
            height: 6rem;
        }
    }
</style>
{{ end }}

{{ define "body" }}
<div class="header">
    <img class="header-img" src="/assets/img/sunset-d.png">
</div>
<div class="content">
    <img class="logo" src="/assets/svg/logo-light.svg">
    <nav>
        <ul>
            <li>
                <a href="/creative">creative</a>
            </li>
            <li>
                <a href="/projects">projects</a>
            </li>
            <li>
                <a href="/about">about</a>
            </li>
            <!-- <li>
                <a href="/now">now</a>
            </li>
             -->
            <li>
                <a href="https://git.deserthorns.net/">git</a>
            </li>
        </ul>
    </nav>
    <hr>
    <blockquote>
        <p>Your hearts know in silence the secrets of the days and the nights.</p>
        <p>But your ears thirst for the sound of your heart’s knowledge.</p>
    </blockquote>
    <cite>Khalil Gibran, The Prophet</cite>
</div>
{{ end }}

{{ define "scripts" }}
{{ end }}