Files
where_woof/frontend/internal/handlers/pages.go
Sam Rolfe 2a101e9a62 Promo: order page + red banner + contact form; fix admin login rehash
- /order page: single tag $5.50 / 10-pack $22.00 (GST-incl), qty via
  Stripe Payment Links (single 1-25, pack 1-2), thanks state
- Red 'Protect & recover your valuables — ORDER NOW' banner in base layout
  (every page incl. found-dog tag page) + footer promo links
- Contact page: form -> Gmail SMTP (env SMTP_*), hello@where-woof.com
- Fix admin login 500: User.getAuthPasswordName() = password_hash so
  Laravel 13 rehash-on-login writes the correct column (was trying
  UPDATE users SET password = ...)
2026-09-01 12:53:53 +10:00

24 lines
637 B
Go

package handlers
import "net/http"
// About renders the About page.
func (a *App) About(w http.ResponseWriter, r *http.Request) {
a.render(w, r, "about", "About", nil, "")
}
// WhatIsThis renders the "what is this?" explainer page.
func (a *App) WhatIsThis(w http.ResponseWriter, r *http.Request) {
a.render(w, r, "what", "What is this?", nil, "")
}
// Contact renders the contact page.
func (a *App) Contact(w http.ResponseWriter, r *http.Request) {
a.render(w, r, "contact", "Contact", contactData{}, "")
}
// contactData passed to the contact page (form submission state).
type contactData struct {
Sent bool
Error string
}