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/nav | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to '.zs/components/nav') diff --git a/.zs/components/nav b/.zs/components/nav index 935cd92..c787517 100755 --- a/.zs/components/nav +++ b/.zs/components/nav @@ -21,6 +21,7 @@ end ---@field index boolean? ---@field dir string? ---@field inside Set? +---@field icon string ---@type Link[] local links = { @@ -29,23 +30,27 @@ local links = { title = "home", inside = set { "index" - } + }, + icon = "home" }, { url = "/projects.html", title = "projects", inside = set { "prismite" - } + }, + icon = "git" }, { url = "/posts.html", title = "ramblings", - dir = "blog" + dir = "blog", + icon = "notebook" }, { url = "/buttons.html", - title = "buttons" + title = "buttons", + icon = "external" }, } @@ -79,7 +84,14 @@ for _, link in ipairs(links) do { tag = "a", href = link.url, - title, + { + tag = "div", + style = [[mask-image: url("/assets/svg/]] .. link.icon .. [[.svg")]] + }, + { + tag = "span", + title + } } }) end -- cgit v1.2.3