Switch to single page application #2

Merged
array-in-a-matrix merged 8 commits from hpx-spa into main 2024-01-08 21:04:02 -05:00
Showing only changes of commit 7d5840b6fb - Show all commits

View file

@ -2,11 +2,10 @@ import happyx
component NavButton: component NavButton:
text: string text: string
path: string path: cstring = "/"
`template`: `template`:
tLi(class="list-item cursor-pointer text-white mx-2 my-2 ring-1 ring-white/20 hover:ring-white/50 rounded"): tLi(class="list-item cursor-pointer text-white mx-2 my-2 ring-1 ring-white/20 hover:ring-white/50 rounded"):
tButton: tButton:
{self.text} {self.text}
@click: @click:
route({self.path}) route self.path