Add static files and HTML templates for web UI

Embedded Tailwind CSS and login/generator templates.
Self-contained with no external dependencies.
This commit is contained in:
2026-01-08 07:38:09 -08:00
parent c033e918f0
commit aad5e59d23
5 changed files with 359 additions and 0 deletions

21
internal/static/static.go Normal file
View File

@@ -0,0 +1,21 @@
// Package static provides embedded static files for the web UI.
package static
import (
"embed"
"io/fs"
"net/http"
)
//go:embed *.js
var files embed.FS
// FS returns the embedded filesystem containing static files.
func FS() fs.FS {
return files
}
// Handler returns an http.Handler that serves static files.
func Handler() http.Handler {
return http.FileServer(http.FS(files))
}

File diff suppressed because one or more lines are too long