diff options
-rwxr-xr-x | build.sh | 6 | ||||
-rw-r--r-- | garden.lua | 34 | ||||
-rw-r--r-- | h.lua | 2 | ||||
-rw-r--r-- | head.html | 2 | ||||
-rw-r--r-- | index.lua | 7 |
5 files changed, 44 insertions, 7 deletions
@@ -21,6 +21,10 @@ bp() { } # build page with extensions automatically bpn() { bp ${1}.lua ${1}.html; } + +# build page into subdir (xyz.lua becomes /xyz/) +bpnd() { md "$1"; bp ${1}.lua ${1}/index.html; } + # copy file (or dir) cf() { echo "${src}/$1 -> ${dst}/$1" @@ -38,6 +42,8 @@ cf me.png md questions bpn questions/questions +bpnd garden + # md blog # bp blogindex.lua blog/index.html diff --git a/garden.lua b/garden.lua new file mode 100644 index 0000000..4d0212f --- /dev/null +++ b/garden.lua @@ -0,0 +1,34 @@ +require'h' + +local head = mkhead'garden' +local top = mksmalltopbox('garden') +local bread = bcrumb{ + {'< home','/'}, + {'garden'} +} + +local sect = section { + h2'garden', + p[[ +garden is a multiplayer paint program. the single canvas is infinite and persistent.]], + img({src="https://ubq323.website/files/uiQWlN0R.png"},''), + p[[you can:]], + ul{ + li{ a("download it","/files/garden"), [[ (linux x86 binary, needs sdl2) ]] }, + li{ [[build ]], a("the source code","//g.gh0.pw/garden"), " yourself." }, + }, +} + +local ch = section { + h2'changelog', + dl{ + dt[[v1.0.0 (2024-04-29):]], + dd[[initial release]], + }, +} + + + +print(html{ + head, top, bread, sect, ch +}) @@ -167,6 +167,6 @@ end -- the box at the top with the cool picture of me in, etc -- presumably the same on all pages site_top = mktopbox('/me.png',"ubq323's website", - p [[rebecca, "ubq323" (she/her, 20) - eminently engromulent]] + p [[rebecca, "ubq323" (she/her, 20s) - effervescently engromulent]] ) @@ -1,7 +1,7 @@ <!DOCTYPE html> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> -<link rel="icon" href="/m/interesting3.png"> +<link rel="icon" href="/files/interesting3.png"> <style> body {font-family: sans-serif;font-size:larger;max-width:60ch;margin:auto} body {background-image: url("/bg.png");image-rendering:pixelated} @@ -8,15 +8,12 @@ mainsect = section { ul { l(",flappy fly bird man?","/ffbm"); l "morrison"; - li "blog"; - li "microblog"; l("apioforum","//a.gh0.pw"); l("ubq323 git","//g.gh0.pw"); l("some music","//ubq323.bandcamp.com"); - li "projects"; l("questions","/questions/questions.html"); + l "garden"; }; - p [[(if a link is missing, it is because i haven't created that thing yet)]] } @@ -29,7 +26,7 @@ contact = section { li [[email: ubq323@ubq323.website]], li [[xmpp: ubq323@ubq323.website]], li { [[irc: ubq323 on ]], a("apionet","irc:ubq323.website/#a") }, - li [[discord (if you must): ubq323#9691]], + li [[discord (if you must): ubq323]], li { 'the ', a('questions page','/questions/questions.html') }, }, } |