feat-WIP: Style updates, new form inputs.

This commit is contained in:
2026-01-12 22:49:58 -05:00
parent fa9e8cffb0
commit 432533c940
13 changed files with 249 additions and 134 deletions

View File

@@ -9,7 +9,7 @@ struct ProjectDetail: HTML, Sendable {
var body: some HTML {
div {
Row {
h1(.class("text-2xl font-bold")) { "Project" }
h1(.class("text-3xl font-bold")) { "Project" }
EditButton()
.attributes(
.class("btn-ghost"),
@@ -21,24 +21,44 @@ struct ProjectDetail: HTML, Sendable {
table(.class("table table-zebra text-lg")) {
tbody {
tr {
td { Label("Name") }
td { project.name }
td { "Name" }
td {
div(.class("flex justify-end")) {
project.name
}
}
}
tr {
td { Label("Street Address") }
td { project.streetAddress }
td { "Street Address" }
td {
div(.class("flex justify-end")) {
project.streetAddress
}
}
}
tr {
td { Label("City") }
td { project.city }
td { "City" }
td {
div(.class("flex justify-end")) {
project.city
}
}
}
tr {
td { Label("State") }
td { project.state }
td { "State" }
td {
div(.class("flex justify-end")) {
project.state
}
}
}
tr {
td { Label("Zip") }
td { project.zipCode }
td { "Zip" }
td {
div(.class("flex justify-end")) {
project.zipCode
}
}
}
}
}

View File

@@ -20,7 +20,7 @@ struct ProjectsTable: HTML, Sendable {
Navbar(sidebarToggle: false)
div(.class("m-6")) {
Row {
h1(.class("text-2xl font-bold")) { "Projects" }
PageTitle { "Projects" }
Tooltip("Add project") {
PlusButton()
.attributes(
@@ -31,7 +31,7 @@ struct ProjectsTable: HTML, Sendable {
}
.attributes(.class("pb-6"))
div(.class("overflow-x-auto rounded-box border")) {
div(.class("overflow-x-auto")) {
table(.class("table table-zebra")) {
thead {
tr {