Files
vctp2/components/views/index.templ
Nathan Coad 934c082ba1
Some checks are pending
CI / Lint (push) Waiting to run
CI / Test (push) Waiting to run
CI / End-to-End (push) Waiting to run
CI / Publish Docker (push) Blocked by required conditions
continuous-integration/drone/push Build is passing
change templ
2024-09-14 12:01:51 +10:00

29 lines
763 B
Plaintext

package views
import (
"vctp/components/core"
)
type BuildInfo struct {
BuildTime string
SHA1Ver string
GoVersion string
}
templ Index(info BuildInfo) {
<!DOCTYPE html>
<html lang="en">
@core.Header()
<body class="flex flex-col min-h-screen">
<main class="flex-grow">
<div>
<h1 class="text-5xl font-bold">Build Information</h1>
<p class="mt-4"><strong>Build Time:</strong> {info.BuildTime}</p>
<p class="mt-4"><strong>SHA1 Version:</strong> {info.SHA1Ver}</p>
<p class="mt-4"><strong>Go Runtime Version:</strong> {info.GoVersion}</p>
</div>
</main>
</body>
@core.Footer()
</html>
}