tangled
alpha
login
or
join now
kacaii.dev
/
blog
0
fork
atom
💻 My personal website
blog.kacaii.dev/
blog
gleam
lustre
0
fork
atom
overview
issues
pulls
pipelines
:art: keep the strings inside class atribute
kacaii.dev
2 months ago
b2eaf08c
97e2bc77
+4
-4
1 changed file
expand all
collapse all
unified
split
src
blog
page
navbar.gleam
+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
18
-
let text_style = "underline underline-offset-2"
19
19
-
let anchor_style = "flex gap-2 items-center"
18
18
+
let text_style = class("underline underline-offset-2")
19
19
+
let anchor_style = class("flex gap-2 items-center")
20
20
21
21
-
html.a([class(anchor_style), attr.href(to)], [
21
21
+
html.a([anchor_style, attr.href(to)], [
22
22
nerd_font_icon.view([class("hidden sm:inline-block")], nf),
23
23
-
html.p([class(text_style)], [html.text(text)]),
23
23
+
html.p([text_style], [html.text(text)]),
24
24
])
25
25
}