feat: Adds page header styles, starts an Alert component.
This commit is contained in:
@@ -1,5 +1,27 @@
|
||||
import Elementary
|
||||
|
||||
public struct PageTitleRow<Content: HTML>: HTML, Sendable where Content: Sendable {
|
||||
|
||||
let inner: Content
|
||||
|
||||
public init(@HTMLBuilder content: () -> Content) {
|
||||
self.inner = content()
|
||||
}
|
||||
|
||||
public var body: some HTML<HTMLTag.div> {
|
||||
div(
|
||||
.class(
|
||||
"""
|
||||
flex justify-between bg-secondary border-2 border-primary rounded-sm shadow-sm
|
||||
p-6 w-full
|
||||
"""
|
||||
)
|
||||
) {
|
||||
inner
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public struct PageTitle: HTML, Sendable {
|
||||
|
||||
let title: String
|
||||
|
||||
Reference in New Issue
Block a user