Add the logo, a Viking jarl drawn like a woodcut whose spear-pointed crown holds a DNS tree. It is generated by scripts/logo.py, which mirrors the left half so the figure is exactly symmetrical, as logo.svg (white on a Nordic-blue disc) and logo-white.svg. It links home in the header, sits on the login page and is the favicon. The login page shows an angular "JARL" wordmark drawn as SVG paths over a rule with a "DNS" node, coloured from the theme. The header's "Jarl" uses a self-hosted Cinzel Bold subset (SIL OFL); jarld serves .woff2 as font/woff2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
495 B
Go
27 lines
495 B
Go
// Package web embeds the web UI: a small single-page application that
|
|
// uses Jarl's REST API for everything it does.
|
|
package web
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
"mime"
|
|
)
|
|
|
|
func init() {
|
|
// Not in Go's built-in table, and the server sends nosniff.
|
|
mime.AddExtensionType(".woff2", "font/woff2")
|
|
}
|
|
|
|
//go:embed static
|
|
var static embed.FS
|
|
|
|
// FS returns the web UI files (index.html and assets/).
|
|
func FS() fs.FS {
|
|
sub, err := fs.Sub(static, "static")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return sub
|
|
}
|