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

@@ -13,7 +13,7 @@ public struct Label: HTML, Sendable {
}
public var body: some HTML<HTMLTag.span> {
span(.class("text-xl text-secondary font-bold")) {
span(.class("text-lg text-secondary font-bold")) {
title
}
}

View File

@@ -0,0 +1,18 @@
import Elementary
public struct PageTitle: HTML, Sendable {
let title: String
public init(_ title: String) {
self.title = title
}
public init(_ title: () -> String) {
self.title = title()
}
public var body: some HTML<HTMLTag.h1> {
h1(.class("text-3xl font-bold")) { title }
}
}