feat: use tailwind css

This commit is contained in:
2025-11-06 21:36:57 +01:00
parent 3153475bad
commit 8adff6ade2
8 changed files with 315 additions and 294 deletions

View File

@@ -16,19 +16,12 @@ var scissors template.HTML
//go:embed assets/template.html
var htmlTemplate string
//go:embed assets/style.css
var style template.CSS
type tmpler struct {
Invoice
Cross template.HTML
Scissors template.HTML
}
func (i Invoice) CSS() template.CSS {
return style
}
func (i Invoice) HTML() (html template.HTML, err error) {
tmpl := template.Must(template.New("invoice").Parse(htmlTemplate))