41 lines
1.2 KiB
Go
41 lines
1.2 KiB
Go
|
// Code generated by templ@v0.2.316 DO NOT EDIT.
|
||
|
|
||
|
package partials
|
||
|
|
||
|
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
||
|
|
||
|
import "github.com/a-h/templ"
|
||
|
import "context"
|
||
|
import "io"
|
||
|
import "bytes"
|
||
|
|
||
|
import "git.myrkvi.com/myrkvi/bin/views/components"
|
||
|
|
||
|
func EmailForm() templ.Component {
|
||
|
return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) {
|
||
|
templBuffer, templIsBuffer := w.(*bytes.Buffer)
|
||
|
if !templIsBuffer {
|
||
|
templBuffer = templ.GetBuffer()
|
||
|
defer templ.ReleaseBuffer(templBuffer)
|
||
|
}
|
||
|
ctx = templ.InitializeContext(ctx)
|
||
|
var_1 := templ.GetChildren(ctx)
|
||
|
if var_1 == nil {
|
||
|
var_1 = templ.NopComponent
|
||
|
}
|
||
|
ctx = templ.ClearChildren(ctx)
|
||
|
_, err = templBuffer.WriteString("<input type=\"text\" class=\"mr-4 w-48 bg-amber-50\n hover:outline-slate-400 hover:outline-dotted \n focus:outline-slate-600 focus:outline-dashed\n active:outline-green-600\" name=\"email\" id=\"email\" placeholder=\"email\">")
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
err = components.SubmitFormButton("send").Render(ctx, templBuffer)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
if !templIsBuffer {
|
||
|
_, err = io.Copy(w, templBuffer)
|
||
|
}
|
||
|
return err
|
||
|
})
|
||
|
}
|