summaryrefslogtreecommitdiff
path: root/.zs/components/footer
blob: 570f714f3b4403540323ee84599487bc53124485 (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
83
84
85
86
87
88
89
90
91
#!/usr/bin/lua

package.path = ".zs/?.lua;" .. package.path
local html = require "components.html"

local date = os.date("!%Y-%m-%dT%H:%M:%S%Z")

print(html {
    tag = "footer",
    {
        tag = "div",
        {
            tag = "span",
            {
                tag = "a",
                class = "volatile",
                href = "https://ring.acab.dev/prev/C1NMCp8IXr",
                title = "go to the previous page in the webring",
                "[<<]"
            }
        },
        {
            tag = "span",
            {
                tag = "a",
                class = "volatile",
                href = "https://ring.acab.dev/prev/C1NMCp8IXr",
                title = "go to a random page in the webring",
                "[<<]"
            }
        },
        {
            tag = "span",
            {
                tag = "a",
                class = "volatile",
                href = "https://ring.acab.dev",
                title = "hacker webring",
                "[⠠⠵ ]"
            }
        },
        {
            tag = "span",
            {
                tag = "a",
                class = "volatile",
                href = "https://ring.acab.dev/next/C1NMCp8IXr",
                title = "go to the next page in the webring",
                "[>>]"
            }
        },
    },
    {
        tag = "div",
        {
            tag = "span",
            "made with ",
            {
                tag = "span",
                style = "color: var(--red)",
                "<3"
            },
            " by darkuss"
        },
        {
            tag = "span",
            {
                tag = "a",
                href = "/credits.html",
                "credits"
            }
        },
        {
            tag = "span",
            {
                tag = "a",
                href = "/privacy.html",
                "privacy"
            }
        },
        {
            tag = "span",
            "last modified: ",
            {
                tag = "time",
                datetime = date,
                date
            }
        }
    }
})