summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--layouts/base.lua15
-rw-r--r--site_root/cyberia.svg10
-rw-r--r--site_root/index.lua5
-rw-r--r--site_root/portfolio.lua70
5 files changed, 98 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index c79a3e0..ef21f0e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
*~
public/
publish.sh
+*.swp
+pullcheck.sh
diff --git a/layouts/base.lua b/layouts/base.lua
index 1c585d7..35af0d0 100644
--- a/layouts/base.lua
+++ b/layouts/base.lua
@@ -21,8 +21,8 @@ return function(html, page_tbl)
'<h1>(.-)</h1>',
function(s)
return string.format(
- '<h1>%s</h1>%s</br>',
- s, string.rep('=', string.len(s))
+ '<h1>%s</h1><div class="underline">%s</div></br>',
+ s, string.rep('=', 70)
)
end
)
@@ -32,8 +32,8 @@ return function(html, page_tbl)
'<h2>(.-)</h2>',
function(s)
return string.format(
- '<h2>%s</h2>%s</br>',
- s, string.rep('-', string.len(s))
+ '<h2>%s</h2><div class="underline">%s</div></br>',
+ s, string.rep('-', 70)
)
end
)
@@ -46,6 +46,13 @@ return function(html, page_tbl)
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>%s</title>
<link rel="stylesheet" href="/style.css">
+ <style>
+ .underline {
+ overflow: hidden;
+ white-space: nowrap;
+ max-width: 92vw;
+ }
+ </style>
</html>
<body>
<div id="content">
diff --git a/site_root/cyberia.svg b/site_root/cyberia.svg
new file mode 100644
index 0000000..1fac064
--- /dev/null
+++ b/site_root/cyberia.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg width="600" height="600" viewBox="0 0 600 600" version="1.1" id="svg31165" inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" sodipodi:docname="cyberia.svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
+ <sodipodi:namedview id="namedview31167" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:document-units="px" showgrid="false" inkscape:zoom="1.8348087" inkscape:cx="319.37934" inkscape:cy="266.24029" inkscape:window-width="1920" inkscape:window-height="1018" inkscape:window-x="-8" inkscape:window-y="-8" inkscape:window-maximized="1" inkscape:current-layer="layer1" inkscape:showpageshadow="0" inkscape:deskcolor="#d1d1d1"/>
+ <defs id="defs31162"/>
+ <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1">
+ <path id="rect1039" clip-path="none" style="font-variation-settings:normal;display:inline;opacity:1;vector-effect:none;fill:#79cfdc;fill-opacity:1;stroke-width:0.541505;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;paint-order:stroke fill markers;stop-color:#000000;stop-opacity:1" d="M 300,0 A 300,300 0 0 0 0,300 300,300 0 0 0 70.759766,492 H 529.24024 A 300,300 0 0 0 600,300 300,300 0 0 0 300,0 Z M 85.039058,508 a 300,300 0 0 0 20.806652,20 H 494.1543 a 300,300 0 0 0 20.80664,-20 z m 40.878912,36 a 300,300 0 0 0 31.95899,20 h 284.24609 a 300,300 0 0 0 31.95898,-20 z m 66.57813,36 A 300,300 0 0 0 300,600 300,300 0 0 0 407.50391,580 Z"/>
+ <path id="path3110" clip-path="none" style="font-variation-settings:normal;display:inline;opacity:1;vector-effect:none;fill:#a97cb7;fill-opacity:1;fill-rule:evenodd;stroke-width:0.541505;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000;stop-opacity:1" d="M 300,0 A 300,300 0 0 0 0,300 300,300 0 0 0 16.066406,393.50391 c 42.130453,-10.5903 73.537862,-41.95397 79.496092,-81.33984 6.695032,-44.25631 8.968622,-81.05919 36.824222,-104.56055 27.8556,-23.50136 67.52235,-5.27746 81.72852,21.57031 14.20615,26.84778 26.92466,60.31494 61.27734,61.70899 34.35268,1.39405 62.70861,-43.8662 74.15625,-74.36328 11.44764,-30.49708 47.69834,-47.77307 72.26758,-34.63477 24.56923,13.1383 34.67223,40.38966 49.53125,70.99414 14.85901,30.60448 33.60932,61.00834 56.67187,81.03906 19.37272,16.82595 40.73829,33.64697 60.72071,45.19727 A 300,300 0 0 0 600,300 300,300 0 0 0 300,0 Z"/>
+ </g>
+</svg> \ No newline at end of file
diff --git a/site_root/index.lua b/site_root/index.lua
index c419830..f0a50e6 100644
--- a/site_root/index.lua
+++ b/site_root/index.lua
@@ -20,6 +20,11 @@ welcome to sanine.net!
%s
+
+[<-prev](https://cyberia.click/prev.cgi?source=sanine)
+ [<img src="/cyberia.svg" width="15px" alt="Cyberia Computer Club logo"></img>](https://cyberia.click)
+[next->](https://cyberia.click/next.cgi?source=sanine)
+
[subscribe via rss](/rss.xml)
]], get_blog_links())
diff --git a/site_root/portfolio.lua b/site_root/portfolio.lua
new file mode 100644
index 0000000..2b479f3
--- /dev/null
+++ b/site_root/portfolio.lua
@@ -0,0 +1,70 @@
+local md = [[
+portfolio
+=========
+
+These are a collection of some of the things I'm proud to have worked on!
+
+
+[tulsa-water-wall]
+------------------
+
+A really neat interactive, where visitors could create drawings on a touchscreen kiosk
+and then see them recreated physically via falling water.
+
+
+[iowa-rover]
+------------
+
+Lots of complicated microcontroller interactions on this one! Visitors could program a
+rover via RFID pieces and then see their commands remotely executed by a tiny replica Curiosity rover.
+
+
+[argent]
+--------
+
+When I got frustrated with how many static site generators broke when their host language changed, I wrote
+this one which carries its own Lua interpreter in a C99 program. It's how this site is built!
+
+
+[lily-test]
+-----------
+
+A single-header C99 unit test library. All the test frameworks seem to target C++, so I wrote one for C!
+
+
+[honey-engine]
+--------------
+
+My COVID project. 😊 An OpenGL game engine written in C99 with LuaJIT scripting support.
+
+
+[marigold-cgi]
+--------------
+
+A library for building CGI scripts with Lua. Since writing this I've used it in a ton of other things.
+The one I probably use the most is my conlanging tool [amaryllis](https://sanine.net/utils/amaryllis/amaryllis.cgi).
+I also made the webring my site is in with it.
+
+
+[phlox]
+-------
+
+A funky 'lil reverse-proxy daemon written in Go. I made it so that I could serve some weird web apps I was building
+that I didn't quite trust not to have major security flaws, so phlox could provide at least some protection.
+
+
+
+[tulsa-water-wall]: https://github.com/scimusmn/tulsa-water-wall
+[iowa-rover]: https://github.com/scimusmn/iowa-rover
+[argent]: https://sanine.net/git/argent/tree/
+[lily-test]: https://sanine.net/git/lily-test/tree/
+[honey-engine]: https://git.cyberia.club/sanine/honey-core
+[marigold-cgi]: https://sanine.net/git/marigold-cgi/tree/
+[phlox]: https://sanine.net/git/phlox/tree/?h=config-file
+]]
+
+return {
+ title='portfolio',
+ layout='base',
+ markdown=md,
+}