really poor templ attempt
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
package home
|
||||
|
||||
templ Home() {
|
||||
<div class="text-center">
|
||||
<h1 class="text-5xl font-bold">Welcome!</h1>
|
||||
<p class="text-indigo-200 mt-4">This is a simple home screen.</p>
|
||||
<p class="text-indigo-200 mt-4">{ buildTime }</p>
|
||||
</div>
|
||||
}
|
||||
// Define the Home template, accepting a BuildInfo struct.
|
||||
templ Home(buildTime string, sha1ver string, goVersion string) {
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Build Information</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Build Information</h1>
|
||||
<p><strong>Build Time:</strong> {buildTime}</p>
|
||||
<p><strong>SHA1 Version:</strong> {sha1ver}</p>
|
||||
<p><strong>Go Runtime Version:</strong> {goVersion}</p>
|
||||
</body>
|
||||
</html>
|
||||
}
|
Reference in New Issue
Block a user