Add links to aside

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-07-23 15:07:42 -06:00
parent 6bb47977c5
commit 56249c9498

View File

@@ -14,7 +14,7 @@ func dashboardAside() gomponents.Node {
},
html.A(
html.Class("block w-full flex justify-center"),
html.Class("block flex flex-col justify-center items-center"),
html.Href("https://github.com/eduardolat/pgbackweb"),
html.Target("_blank"),
html.Img(
@@ -22,38 +22,48 @@ func dashboardAside() gomponents.Node {
html.Alt("PG Back Web"),
html.Class("w-[50px] h-auto"),
),
html.Span(
html.Class("text-xs text-center font-bold mt-1"),
gomponents.Text("PG Back Web"),
),
),
html.Div(
html.Class("mt-8 space-y-4"),
html.Class("mt-6 space-y-4"),
dashboardAsideItem(
lucide.Database,
"Databases",
"/dashboard/databases",
),
dashboardAsideItem(
lucide.HardDrive,
"Destinations",
"/dashboard/destinations",
),
dashboardAsideItem(
lucide.DatabaseBackup,
"Backups",
"/dashboard/backups",
),
dashboardAsideItem(
lucide.List,
"Executions",
"/dashboard/executions",
),
dashboardAsideItem(
lucide.User,
"Profile",
"/dashboard/profile",
),
dashboardAsideItem(
lucide.Info,
"About",
"/dashboard/about",
),
),
)
@@ -61,10 +71,11 @@ func dashboardAside() gomponents.Node {
func dashboardAsideItem(
icon func(children ...gomponents.Node) gomponents.Node,
text string,
text, link string,
) gomponents.Node {
return html.Div(
html.Class("flex flex-col items-center justify-center"),
return html.A(
html.Class("block flex flex-col items-center justify-center"),
html.Href(link),
html.Button(
html.Class("btn btn-ghost btn-neutral btn-square"),
icon(html.Class("size-6")),