change templ
This commit is contained in:
29
components/views/index.templ
Normal file
29
components/views/index.templ
Normal file
@@ -0,0 +1,29 @@
|
||||
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>
|
||||
}
|
Reference in New Issue
Block a user