package views

import (
    "mocksnow/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>
}