From 6979ec35432ae68c01644b37f06fb0164d9ea312 Mon Sep 17 00:00:00 2001 From: delta Date: Sat, 25 Jul 2026 15:39:11 +0200 Subject: fix mobile layout --- .zs/components/wavy | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to '.zs/components/wavy') diff --git a/.zs/components/wavy b/.zs/components/wavy index 645442e..20c4a70 100755 --- a/.zs/components/wavy +++ b/.zs/components/wavy @@ -14,13 +14,30 @@ local TEXT = { local acc = {} local i = 0 -for char in TEXT[name or "hey"]:gmatch(".") do - table.insert(acc, { +for word in TEXT[name or "hey"]:gmatch("[^ ]+") do + local word_acc = {} + + for char in word:gmatch(".") do + table.insert(word_acc, { + tag = "span", + style = "animation-delay:" .. (-800 * i) .. "ms", + char + }) + i = i + 1 + end + + table.insert(word_acc, { tag = "span", style = "animation-delay:" .. (-800 * i) .. "ms", - char + " " }) + i = i + 1 + + table.insert(acc, { + tag = "div", + word_acc + }) end print(html { -- cgit v1.2.3