de-personalize default layout
s-ol
1 year, 5 months ago
58 | 58 | h1({ |
59 | 59 | navigate_to('', logo), |
60 | 60 | span({ |
61 | span('mmm', { | |
61 | span('mmmfs', { | |
62 | 62 | class = 'bold' |
63 | 63 | }), |
64 | 64 | '​', |
65 | 65 | '.s‑ol.nu' |
66 | 66 | }) |
67 | 67 | }), |
68 | table.concat({ | |
69 | pick('fun', 'cool', 'weird', 'interesting', 'new', 'pleasant'), | |
70 | pick('stuff', 'things', 'projects', 'experiments', 'visuals', 'ideas'), | |
71 | pick("with", 'and'), | |
72 | pick('mostly code', 'code and wires', 'silicon', 'electronics', 'shaders', 'oscilloscopes', 'interfaces', 'hardware', 'FPGAs') | |
73 | }, ' ') | |
74 | }), | |
75 | aside({ | |
76 | navigate_to('/about', 'about me'), | |
77 | navigate_to('/portfolio', 'portfolio'), | |
78 | navigate_to('/games', 'games'), | |
79 | navigate_to('/projects', 'other'), | |
80 | a({ | |
81 | href = 'mailto:s%20[removethis]%20[at]%20s-ol.nu', | |
82 | 'contact', | |
83 | script("\n var l = document.currentScript.parentElement;\n l.href = l.href.replace('%20[at]%20', '@');\n l.href = l.href.replace('%20[removethis]', '') + '?subject=Hey there :)';\n ") | |
84 | }) | |
68 | "a hypermedia information system." | |
85 | 69 | }) |
86 | 70 | }) |
87 | 71 | end |
89 | 73 | span({ |
90 | 74 | 'made with \xe2\x98\xbd by ', |
91 | 75 | a('s-ol', { |
92 | href = 'https://twitter.com/S0lll0s' | |
76 | href = 'https://s-ol.nu' | |
93 | 77 | }), |
94 | 78 | ", " .. tostring(os.date('%Y')) |
95 | 79 | }), |
202 | 186 | out = 'text/html', |
203 | 187 | cost = 3, |
204 | 188 | transform = function(self, html, fileder) |
205 | return render(html, fileder, { noview = true }) | |
189 | return render(html, fileder, { | |
190 | noview = true | |
191 | }) | |
206 | 192 | end |
207 | 193 | } |
208 | 194 | } |
35 | 35 | h1 { |
36 | 36 | navigate_to '', logo |
37 | 37 | span { |
38 | span 'mmm', class: 'bold' | |
38 | span 'mmmfs', class: 'bold' | |
39 | 39 | '​' |
40 | 40 | '.s‑ol.nu' |
41 | 41 | } |
42 | 42 | } |
43 | -- span "fun stuff with code and wires" | |
44 | table.concat { | |
45 | pick 'fun', 'cool', 'weird', 'interesting', 'new', 'pleasant' | |
46 | pick 'stuff', 'things', 'projects', 'experiments', 'visuals', 'ideas' | |
47 | pick "with", 'and' | |
48 | pick 'mostly code', 'code and wires', 'silicon', 'electronics', 'shaders', | |
49 | 'oscilloscopes', 'interfaces', 'hardware', 'FPGAs' | |
50 | }, ' ' | |
51 | } | |
52 | aside { | |
53 | navigate_to '/about', 'about me' | |
54 | navigate_to '/portfolio', 'portfolio' | |
55 | navigate_to '/games', 'games' | |
56 | navigate_to '/projects', 'other' | |
57 | a { | |
58 | href: 'mailto:s%20[removethis]%20[at]%20s-ol.nu' | |
59 | 'contact' | |
60 | script " | |
61 | var l = document.currentScript.parentElement; | |
62 | l.href = l.href.replace('%20[at]%20', '@'); | |
63 | l.href = l.href.replace('%20[removethis]', '') + '?subject=Hey there :)'; | |
64 | " | |
65 | } | |
43 | "a hypermedia information system." | |
66 | 44 | } |
67 | 45 | } |
68 | 46 | |
69 | 47 | footer = footer { |
70 | 48 | span { |
71 | 49 | 'made with \xe2\x98\xbd by ' |
72 | a 's-ol', href: 'https://twitter.com/S0lll0s' | |
50 | a 's-ol', href: 'https://s-ol.nu' | |
73 | 51 | ", #{os.date '%Y'}" |
74 | 52 | } |
75 | 53 | div { |