Datastar-pro is fetched from a private Gitea repo (ryan/vendor-libs) using VENDOR_TOKEN for CI/Docker builds, with a local fallback from ../optional/ for development. DaisyUI is pinned to v5.5.19 instead of tracking latest. Downloaded files are now gitignored and fetched at build time via 'task download', which is a dependency of both build and live tasks.
29 lines
889 B
Plaintext
29 lines
889 B
Plaintext
package layouts
|
|
|
|
import (
|
|
"github.com/ryanhamamura/games/assets"
|
|
"github.com/ryanhamamura/games/config"
|
|
"github.com/ryanhamamura/games/version"
|
|
)
|
|
|
|
templ Base(title string) {
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{ title }</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
|
<script defer type="module" src={ assets.StaticPath("js/datastar/datastar.js") }></script>
|
|
<link href={ assets.StaticPath("css/output.css") } rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body class="flex flex-col h-screen">
|
|
if config.Global.Environment == config.Dev {
|
|
<div data-init="@get('/reload', {retryMaxCount: 1000, retryInterval:20, retryMaxWaitMs:200})"></div>
|
|
}
|
|
{ children... }
|
|
<footer class="fixed bottom-1 right-2 text-xs text-gray-500">
|
|
{ version.Version }
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
}
|