putting web from main into this branch

This commit is contained in:
viljarb
2026-02-18 20:52:50 +01:00
parent 77dd155299
commit f00bf0a684
37 changed files with 3558 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package components
templ Sidebar(routes []NavRoutes) {
<aside
id="sidebar"
class="flex flex-col bg-base-100 border-r border-base-300 transition-all duration-300"
>
<nav class="flex-1 overflow-y-auto p-2">
<ul class="menu menu-vertical p-0">
for _, r := range routes {
<li>
<a
href={ r.Path }
class="sidebar-link rounded-lg py-2.5 px-3 text-base-content items-center"
>
if r.Icon != nil {
<span class="sidebar-icon flex items-center justify-center">@r.Icon</span>
}
</a>
</li>
}
</ul>
</nav>
</aside>
}