git.s-ol.nu hw/hw.s-ol.nu / 1343dd9
license under CC-BY-4.0 s-ol 13 days ago
4 changed file(s) with 46 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
7474 end
7575 footer = footer({
7676 span({
77 'made with \xe2\x98\xbd by ',
77 "made with \xe2\x98\xbd by ",
7878 a('s-ol', {
7979 href = 'https://s-ol.nu'
8080 }),
8181 ", " .. tostring(os.date('%Y'))
82 }),
83 div({
84 style = 'flex: 1'
85 }),
86 a({
87 target = '_blank',
88 rel = 'license',
89 href = 'http://creativecommons.org/licenses/by/4.0/',
90 img({
91 src = 'https://i.creativecommons.org/l/by/4.0/80x15.png',
92 alt = 'Creative Commons Attribution 4.0 International License'
93 })
8294 }),
8395 div({
8496 class = 'icons',
99 (select i, ...)
1010
1111 iconlink = (href, src, alt, style) -> a {
12 class: 'iconlink',
13 target: '_blank',
14 rel: 'me',
15 :href,
12 class: 'iconlink'
13 target: '_blank'
14 rel: 'me'
15 :href
1616 img :src, :alt, :style
1717 }
1818
5454
5555 footer = footer {
5656 span {
57 'made with \xe2\x98\xbd by '
57 "made with \xe2\x98\xbd by "
5858 a 's-ol', href: 'https://s-ol.nu'
5959 ", #{os.date '%Y'}"
6060 }
61
62 div style: 'flex: 1'
63
64 a {
65 target: '_blank'
66 rel: 'license'
67 href: 'http://creativecommons.org/licenses/by/4.0/'
68 img {
69 src: 'https://i.creativecommons.org/l/by/4.0/80x15.png'
70 alt: 'Creative Commons Attribution 4.0 International License'
71 }
72 }
73
6174 div {
62 class: 'icons',
75 class: 'icons'
6376 iconlink 'https://merveilles.town/@s_ol', 'https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/mastodon.svg', 'mastodon'
6477 iconlink 'https://twitter.com/S0lll0s', 'https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/twitter.svg', 'twitter'
6578 iconlink 'https://www.youtube.com/channel/UCWBiBzZvRzf0hzHbsJnwqsA', 'https://cdn.jsdelivr.net/npm/simple-icons@latest/icons/youtube.svg', 'youtube'
0 This work is licensed under the Creative Commons Attribution 4.0 International License.
1 To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or
2 send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
00 footer {
11 display: flex;
2 padding: 1rem 2rem;
2 padding: 1rem 1.5rem;
33 height: 1rem;
44
55 position: sticky;
2020 color: $gray-bright;
2121 background: $gray-dark;
2222
23 line-height: 1rem;
24
25 > * {
26 margin: 0 0.5rem;
27 }
28
29 .license {
30 align-self: end;
31 }
32
2333 .icons {
24 flex: 1;
2534 display: flex;
26 justify-content: flex-end;
2735
2836 .iconlink {
2937 filter: invert(.7);