diff --git a/internal/templates/base.templ b/internal/templates/base.templ new file mode 100644 index 0000000..e69de29 diff --git a/internal/templates/partials/footer.templ b/internal/templates/partials/footer.templ new file mode 100644 index 0000000..db636fa --- /dev/null +++ b/internal/templates/partials/footer.templ @@ -0,0 +1,33 @@ +package partials + +templ Footer(hostedByHTML string) { + +} diff --git a/internal/templates/partials/navbar.templ b/internal/templates/partials/navbar.templ new file mode 100644 index 0000000..66014b4 --- /dev/null +++ b/internal/templates/partials/navbar.templ @@ -0,0 +1,97 @@ +package partials + +func getNavLinkClasses(activePageName, pageName string) []string { + classes := []string{"nav-link"} + if activePageName == pageName { + classes = append(classes, pageName+"-link-active") + } + return classes +} + +templ Navbar(pageName string, registrationEnabled bool, username string) { + +} diff --git a/website/static/index.css b/website/static/index.css index 312fb5c..cf39f74 100644 --- a/website/static/index.css +++ b/website/static/index.css @@ -89,12 +89,12 @@ a.btn:hover { border-bottom: 5px solid #B44A88; } -.navbar #registration-link:hover { +.navbar #register-link:hover { color: #008234; border-bottom: 5px solid #008234; } -.navbar .registration-link-active { +.navbar .register-link-active { color: #008234 !important; border-bottom: 5px solid #008234; } diff --git a/website/templates/partials/navbar.html b/website/templates/partials/navbar.html index f0c8f56..1e361fa 100644 --- a/website/templates/partials/navbar.html +++ b/website/templates/partials/navbar.html @@ -23,7 +23,7 @@ {{ if .RegistrationEnabled }}