💻 My personal website blog.kacaii.dev/
blog gleam lustre

:art: keep the strings inside class atribute

+4 -4
+4 -4
src/blog/page/navbar.gleam
··· 15 15 } 16 16 17 17 fn route(icon nf: String, href to: String, label text: String) { 18 - let text_style = "underline underline-offset-2" 19 - let anchor_style = "flex gap-2 items-center" 18 + let text_style = class("underline underline-offset-2") 19 + let anchor_style = class("flex gap-2 items-center") 20 20 21 - html.a([class(anchor_style), attr.href(to)], [ 21 + html.a([anchor_style, attr.href(to)], [ 22 22 nerd_font_icon.view([class("hidden sm:inline-block")], nf), 23 - html.p([class(text_style)], [html.text(text)]), 23 + html.p([text_style], [html.text(text)]), 24 24 ]) 25 25 }