summaryrefslogtreecommitdiff
path: root/.zs/components/footer
blob: 10ba5bce5e0d757c6f76ba54f4086d26c4300110 (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
#!/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 = "div",
            {
                tag = "span",
                "made with ",
                {
                    tag = "span",
                    style = "color: var(--prismite-red)",
                        "<3"
                    },
                    " by darkuss"
                },
                {
                    tag = "span",
                    {
                        tag = "a",
                        href = "/credits.html",
                        "credits"
                    }
                },
                {
                    tag = "span",
                    {
                        tag = "a",
                        href = "/privacy.html",
                        "privacy"
                    }
                },
                {
                    tag = "span",
                    {
                        tag = "a",
                        href = "/rss.xml",
                        "rss"
                    }
                },
                {
                    tag = "span",
                    "built on: ",
                    {
                        tag = "time",
                        datetime = date,
                        date
                    }
                }
            }
        }
    }
)