From aaa11ee1ca6e738efe4c2d0a68ba242152847d50 Mon Sep 17 00:00:00 2001 From: Henrique Miranda Date: Sat, 17 Aug 2024 17:36:04 -0300 Subject: [PATCH] add theme switch --- database/database.go | 1 + web/view/employee/employees.templ | 10 +++++----- web/view/layout/base.templ | 10 +++++----- web/view/layout/dashboard.templ | 1 + web/view/ui/breadcrumb.templ | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/database/database.go b/database/database.go index e69de29..636bab8 100644 --- a/database/database.go +++ b/database/database.go @@ -0,0 +1 @@ +package database diff --git a/web/view/employee/employees.templ b/web/view/employee/employees.templ index bcd2148..0441ab4 100644 --- a/web/view/employee/employees.templ +++ b/web/view/employee/employees.templ @@ -11,13 +11,13 @@ templ EmployeesPage() { @ui.Breadcrumb([]ui.BreadcrumbItem{ {Label: "Profissinais", Href: "/employees"}, }) -

Novo Profissinal

-
- @ui.TextInput(ui.TextInputProps{}) +
+

Novo Profissinal

@ui.Link(ui.LinkProps{Href: "employees/create"}) { - Novo Profissional + + Novo Profissional } -
+
EMPLOYEES
diff --git a/web/view/layout/base.templ b/web/view/layout/base.templ index 76b5b65..1f402f9 100644 --- a/web/view/layout/base.templ +++ b/web/view/layout/base.templ @@ -2,21 +2,21 @@ package layout templ Base(title string) { - + { title } | Imperium Tattoo + + - + { children... } - + } diff --git a/web/view/layout/dashboard.templ b/web/view/layout/dashboard.templ index 9832e90..5fa91f7 100644 --- a/web/view/layout/dashboard.templ +++ b/web/view/layout/dashboard.templ @@ -10,6 +10,7 @@ templ Dashbaord(title, route string) { >
LOGO +