Files
go-htmx-local/cmd/web/base_templ.go
2026-03-26 19:12:59 -04:00

49 lines
3.3 KiB
Go

// Code generated by templ - DO NOT EDIT.
// templ: version: v0.3.977
package web
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
func Base() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
return templ_7745c5c3_CtxErr
}
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
if templ_7745c5c3_Err == nil {
templ_7745c5c3_Err = templ_7745c5c3_BufErr
}
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Var1 := templ.GetChildren(ctx)
if templ_7745c5c3_Var1 == nil {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\" class=\"h-screen bg-crema-50\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"><title>Latin Garden</title><link href=\"assets/css/output.css\" rel=\"stylesheet\"><script src=\"assets/js/htmx.min.js\"></script></head><body class=\"min-h-screen font-latin text-ink-800\"><!-- STICKY NAVBAR --><nav class=\"sticky top-0 z-50 bg-crema-100 border-b border-crema-200 shadow-md transition-shadow duration-300\"><div class=\"max-w-6xl mx-auto px-6 py-4 flex items-center justify-between\"><a href=\"/\" class=\"text-xl font-semibold tracking-wide text-terracotta-500 hover:text-terracotta-600 transition-colors duration-200\">Latin Garden</a><div class=\"hidden md:flex space-x-8 text-ink-700\"><a href=\"/\" class=\"hover:text-terracotta-500 transition-colors duration-200 relative group\">Home <span class=\"absolute bottom-0 left-0 w-0 h-0.5 bg-terracotta-500 group-hover:w-full transition-all duration-300\"></span></a> <a href=\"#plants\" class=\"hover:text-terracotta-500 transition-colors duration-200 relative group\">Plants <span class=\"absolute bottom-0 left-0 w-0 h-0.5 bg-terracotta-500 group-hover:w-full transition-all duration-300\"></span></a> <a href=\"#about\" class=\"hover:text-terracotta-500 transition-colors duration-200 relative group\">About <span class=\"absolute bottom-0 left-0 w-0 h-0.5 bg-terracotta-500 group-hover:w-full transition-all duration-300\"></span></a></div><!-- Mobile toggle --><div class=\"md:hidden\"><button hx-get=\"/\" class=\"text-terracotta-500 text-2xl hover:text-terracotta-600 transition-colors duration-200\">☰</button></div></div></nav><!-- CONTENT --><main class=\"max-w-6xl mx-auto px-6 py-10\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templ_7745c5c3_Var1.Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "</main></body></html>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
return nil
})
}
var _ = templruntime.GeneratedTemplate