summaryrefslogtreecommitdiff
path: root/.zs/components/wavy
diff options
context:
space:
mode:
authordelta <darkussdelta@gmail.com>2026-07-25 11:42:01 +0200
committerdelta <darkussdelta@gmail.com>2026-07-25 11:43:48 +0200
commit95ceed33d3adec472f4a1b5d3517baf645766e44 (patch)
tree94d8779483e49f7afe624a15e9d271e6f8fbe430 /.zs/components/wavy
parentae36b044f1fc36cd5587b0d3111c2ee72cf0c03f (diff)
site rework!!
Diffstat (limited to '.zs/components/wavy')
-rwxr-xr-x.zs/components/wavy30
1 files changed, 30 insertions, 0 deletions
diff --git a/.zs/components/wavy b/.zs/components/wavy
new file mode 100755
index 0000000..645442e
--- /dev/null
+++ b/.zs/components/wavy
@@ -0,0 +1,30 @@
+#!/usr/bin/lua
+
+package.path = ".zs/?.lua;" .. package.path
+local html = require "components.html"
+
+-- select what message to use
+local name = arg[1]
+
+local TEXT = {
+ hey = "hey there!",
+ ["404"] = "alas, there is nothing to be found here"
+}
+
+local acc = {}
+
+local i = 0
+for char in TEXT[name or "hey"]:gmatch(".") do
+ table.insert(acc, {
+ tag = "span",
+ style = "animation-delay:" .. (-800 * i) .. "ms",
+ char
+ })
+ i = i + 1
+end
+
+print(html {
+ tag = "div",
+ class = "wavy",
+ acc
+})