feat: Refactoring climate zone.

This commit is contained in:
2025-03-03 15:52:34 -05:00
parent 8e0860af8e
commit 1727e9a905
6 changed files with 73 additions and 30 deletions

View File

@@ -11,6 +11,14 @@ struct MainPage<Inner: HTML>: SendableHTMLDocument where Inner: Sendable {
var head: some HTML {
meta(.charset(.utf8))
meta(.name("viewport"), .content("width=device-width, initial-scale=1.0"))
meta(.name("author"), .content("Michael Housh and Dustin Cole"))
meta(.name("og:site-name"), .content("HVAC-Toolbox"))
meta(.name("apple-mobile-web-app-title"), .content("HVAC-Toolbox"))
meta(.name("format-detection"), .content("telephone=no"))
meta(.name("HandheldFriendly"), .content("True"))
meta(.name("MobileOptimized"), .content("320"))
meta(.name("keywords"), .content("hvac, HVAC, design, system-design, calculators"))
Elementary.title { self.title }
link(.rel(.stylesheet), .href("/output.css"))
link(
.rel(.icon),

View File

@@ -62,7 +62,7 @@ struct FilterPressureDropForm: HTML, Sendable {
}
div {
InputLabel(for: "climateZone") { "Climate Zone" }
Select(for: ClimateZone.self, id: "climateZone") {
Select(for: ClimateZone.ZoneType.self, id: "climateZone") {
$0.label
}
}