add(web): basic layout and ui
This commit is contained in:
parent
fd14d22fed
commit
80df48284c
17 changed files with 9288 additions and 4 deletions
15
internal/handlers/pages.go
Normal file
15
internal/handlers/pages.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package handlers
|
||||
|
||||
import (
|
||||
"maot-shortner/web/templates/pages"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type PagesHandler interface {
|
||||
HandleHomePage(w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
|
||||
func HandleHomePage(w http.ResponseWriter, r *http.Request) {
|
||||
homePage := pages.Home()
|
||||
homePage.Render(r.Context(), w)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue