Support live navigation

This commit is contained in:
Paul-Henri Froidmont 2025-09-13 02:44:09 +02:00
parent 0b067aa7e1
commit d42472061b
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
5 changed files with 63 additions and 30 deletions

View file

@ -17,8 +17,8 @@ class HomeLiveView() extends LiveView[String, Unit]:
cls := "space-y-2",
links.map((path, name) =>
li(
a(
href := path,
link.navigate(
path,
cls := "block px-4 py-2 rounded-lg text-gray-700 hover:bg-gray-100 hover:text-gray-900 font-medium transition",
name
)