redesign the site
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Philipp 2021-10-13 21:23:08 +02:00
parent c36e6b1947
commit 5a72d919d0
7 changed files with 10667 additions and 227 deletions

View file

@ -18,6 +18,10 @@ func NewHandler(store steamServer.Store) *Handler {
h.Use(middleware.Logger)
h.Get("/favicon.ico", faviconHandler)
h.Get("/style.css", maincssHandler)
h.Get("/css/bootstrap.css", bootstrapHandler)
h.Get("/images/01.png", arrowHandler)
h.Get("/", h.Home())
h.Get("/europe", h.Europe())
h.Get("/america", h.America())
@ -37,6 +41,18 @@ func faviconHandler(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "static/favicon.ico")
}
func maincssHandler(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "static/css/style.css")
}
func bootstrapHandler(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "static/css/bootstrap.css")
}
func arrowHandler(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "static/images/01.png")
}
func (h *Handler) Home() http.HandlerFunc {
type data struct {
Region string