feat: Working on views
This commit is contained in:
@@ -33,9 +33,9 @@ struct MainPage<Inner: HTML>: SendableHTMLDocument where Inner: Sendable {
|
||||
main(.class("bg-white dark:bg-gray-800")) {
|
||||
div(.class("min-h-screen")) {
|
||||
Header()
|
||||
div(.class("container")) {
|
||||
inner()
|
||||
}
|
||||
// div(.class("container")) {
|
||||
inner()
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,15 +50,7 @@ struct Header: HTML {
|
||||
img(.src("/favicon-32x32.png"))
|
||||
h2(.class("text-2xl text-white font-extrabold")) { "HVAC-Toolbox" }
|
||||
// img(.class("text-yellow-300"), .src("/images/wind.svg"))
|
||||
HTMLRaw("""
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
|
||||
class="w-8 h-8 text-yellow-300">
|
||||
<path d="M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2"></path>
|
||||
<path d="M9.6 4.6A2 2 0 1 1 11 8H2"></path>
|
||||
<path d="M12.6 19.4A2 2 0 1 0 14 16H2"></path>
|
||||
</svg>
|
||||
""")
|
||||
SVG.wind
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user