Migrate from templates to Gomponents (#103)
This commit is contained in:
parent
0bf9ab7189
commit
051d032038
104 changed files with 2768 additions and 2824 deletions
22
pkg/ui/emails/auth.go
Normal file
22
pkg/ui/emails/auth.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package emails
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/mikestefanello/pagoda/pkg/routenames"
|
||||
"github.com/mikestefanello/pagoda/pkg/ui"
|
||||
. "maragu.dev/gomponents"
|
||||
. "maragu.dev/gomponents/html"
|
||||
)
|
||||
|
||||
func ConfirmEmailAddress(ctx echo.Context, username, token string) Node {
|
||||
url := ui.NewRequest(ctx).
|
||||
Url(routenames.VerifyEmail, token)
|
||||
|
||||
return Group{
|
||||
Strong(Textf("Hello %s,", username)),
|
||||
Br(),
|
||||
P(Text("Please click on the following link to confirm your email address:")),
|
||||
Br(),
|
||||
A(Href(url), Text(url)),
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue