feat: Adds grid / nav links to home page.

This commit is contained in:
2025-03-01 23:06:09 -05:00
parent 0ff7d6666c
commit d6d400b6ec
11 changed files with 124 additions and 27 deletions

View File

@@ -59,17 +59,17 @@ private struct Header: HTML {
.attributes(.class("group-hover:text-blue-600"))
}
}
nav(.class("flex flex-row gap-2 p-2 mt-2")) {
// TODO: Add class active, to button that is the active route.
ul(.class("flex flex-wrap gap-x-2 lg:gap-x-5 \(text: .yellow) font-bold")) {
navLink(label: "Mold-Risk", route: .moldRisk(.index))
navLink(label: "Dehumidifier-Sizing", route: .dehumidifierSize(.index))
navLink(label: "HVAC-System-Performance", route: .hvacSystemPerformance(.index))
navLink(label: "Room-Pressure", route: .roomPressure(.index))
navLink(label: "Capcitor-Calculator", route: .capacitor(.index))
navLink(label: "Attic-Ventilation", route: .atticVentilation(.index))
}
}
// nav(.class("flex flex-row gap-2 p-2 mt-2")) {
// // TODO: Add class active, to button that is the active route.
// ul(.class("flex flex-wrap gap-x-2 lg:gap-x-5 \(text: .yellow) font-bold")) {
// navLink(label: "Mold-Risk", route: .moldRisk(.index))
// navLink(label: "Dehumidifier-Sizing", route: .dehumidifierSize(.index))
// navLink(label: "HVAC-System-Performance", route: .hvacSystemPerformance(.index))
// navLink(label: "Room-Pressure", route: .roomPressure(.index))
// navLink(label: "Capcitor-Calculator", route: .capacitor(.index))
// navLink(label: "Attic-Ventilation", route: .atticVentilation(.index))
// }
// }
}
}