Proper pre-loading and deps

This commit is contained in:
2024-10-30 23:50:34 -06:00
parent 24bf04aa7a
commit 561905aabb
13 changed files with 880 additions and 825 deletions

View File

@ -1,7 +1,7 @@
{{define "buttonlinks"}}
{{if eq true .Internal}}
<a class="btn btn-primary btn-outline btn-md lg:btn-lg" href={{.Href}}>
<a class="btn btn-primary btn-outline btn-md lg:btn-lg" href={{.Href}} preload="mouseover">
{{.Name}}
</a>
@ -12,4 +12,4 @@
</a>
{{end}}
{{end}}
{{end}}

View File

@ -32,6 +32,7 @@
href={{.Href}}
aria-label={{.Name}}
class="btn btn-circle btn-base-100 text-primary hover:btn-accent hover:text-neutral"
preload="mouseover"
>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
</a>

View File

@ -11,6 +11,7 @@
<ul
tabindex="0"
class="menu menu-compact dropdown-content gap-2 mt-3 p-2 shadow bg-base-100 rounded-box"
preload="mouseover"
>
{{template "navitems" .}}
</ul>