feat: Begins room-pressure calculator
This commit is contained in:
@@ -1,5 +1,41 @@
|
||||
import Elementary
|
||||
|
||||
public struct PrimaryButton: HTML, Sendable {
|
||||
let label: String
|
||||
|
||||
public init(label: String) {
|
||||
self.label = label
|
||||
}
|
||||
|
||||
public var content: some HTML<HTMLTag.button> {
|
||||
button(
|
||||
.class("""
|
||||
font-bold py-2 px-4 transition-colors
|
||||
bg-blue-500 enabled:hover:bg-blue-600
|
||||
text-yellow-300
|
||||
""")
|
||||
) { label }
|
||||
}
|
||||
}
|
||||
|
||||
public struct SecondaryButton: HTML, Sendable {
|
||||
let label: String
|
||||
|
||||
public init(label: String) {
|
||||
self.label = label
|
||||
}
|
||||
|
||||
public var content: some HTML<HTMLTag.button> {
|
||||
button(
|
||||
.class("""
|
||||
font-bold py-2 px-4 transition-colors
|
||||
bg-yellow-300 enabled:hover:bg-yellow-400
|
||||
text-blue-600
|
||||
""")
|
||||
) { label }
|
||||
}
|
||||
}
|
||||
|
||||
public struct SubmitButton: HTML, Sendable {
|
||||
let label: String
|
||||
|
||||
|
||||
Reference in New Issue
Block a user