-
+
+
+
+
diff --git a/cmd/web/routes.go b/cmd/web/routes.go index f7d6329..4628ebc 100644 --- a/cmd/web/routes.go +++ b/cmd/web/routes.go @@ -17,6 +17,12 @@ func routes(app *config.AppConfig) http.Handler { mux.Get("/", handlers.Repo.Home) mux.Get("/about", handlers.Repo.About) + mux.Get("/generals-quarters", handlers.Repo.Generals) + mux.Get("/majors-suite", handlers.Repo.Majors) + mux.Get("/search-availability", handlers.Repo.Availability) + mux.Get("/contact", handlers.Repo.Contact) + + mux.Get("/make-reservation", handlers.Repo.Reservation) fileServer := http.FileServer(http.Dir("./static/")) mux.Handle("/static/*", http.StripPrefix("/static", fileServer)) diff --git a/pkg/handlers/handlers.go b/pkg/handlers/handlers.go index f81f58f..961ddc3 100644 --- a/pkg/handlers/handlers.go +++ b/pkg/handlers/handlers.go @@ -49,3 +49,28 @@ func (m *Repository) About(w http.ResponseWriter, r *http.Request) { StringMap: stringMap, }) } + +// Reservation renders the make a reservation page and displays form +func (m *Repository) Reservation(w http.ResponseWriter, r *http.Request) { + render.RenderTemplate(w, "make-reservation.page.tmpl", &models.TemplateData{}) +} + +// Generals renders the room page +func (m *Repository) Generals(w http.ResponseWriter, r *http.Request) { + render.RenderTemplate(w, "generals.page.tmpl", &models.TemplateData{}) +} + +// Majors renders the room page +func (m *Repository) Majors(w http.ResponseWriter, r *http.Request) { + render.RenderTemplate(w, "majors.page.tmpl", &models.TemplateData{}) +} + +// Availability renders the search availability page +func (m *Repository) Availability(w http.ResponseWriter, r *http.Request) { + render.RenderTemplate(w, "search-availability.page.tmpl", &models.TemplateData{}) +} + +// Contact renders the contact page +func (m *Repository) Contact(w http.ResponseWriter, r *http.Request) { + render.RenderTemplate(w, "contact.page.tmpl", &models.TemplateData{}) +} diff --git a/static/css/styles.css b/static/css/styles.css new file mode 100644 index 0000000..7a7fdf6 --- /dev/null +++ b/static/css/styles.css @@ -0,0 +1,20 @@ +.my-footer { + height: 5em; + background-color: #163b65; + margin-top: 1.5em; + padding: 1em; + color: white; + font-size: 80%; +} + +.room-image { + max-width: 50%; +} + +.notie-container { + box-shadow: none; +} + +.datepicker { + z-index: 10000; +} \ No newline at end of file diff --git a/static/images/generals-quarters.png b/static/images/generals-quarters.png new file mode 100644 index 0000000..676bebc Binary files /dev/null and b/static/images/generals-quarters.png differ diff --git a/static/images/marjors-suite.png b/static/images/marjors-suite.png new file mode 100644 index 0000000..8d49755 Binary files /dev/null and b/static/images/marjors-suite.png differ diff --git a/templates/about.page.tmpl b/templates/about.page.tmpl index 9cc9513..c73ecfc 100644 --- a/templates/about.page.tmpl +++ b/templates/about.page.tmpl @@ -5,18 +5,7 @@
This is a paragraph of text
-This is a paragraph of text
-This came from the template: {{index .StringMap "test"}}
- -- {{if ne (index .StringMap "remote_ip") ""}} - Your remote ip address is {{index .StringMap "remote_ip"}} - {{else}} - I don't know your ip address yet. Visit the home page so I can set it. - {{end}} -
+ Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. +
+This is some text
++ Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation to remember. +
+ Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. + Your home away form home, set on the majestic waters of the Atlantic Ocean, this will be a vacation + to remember. +
+This is some text.
-This is some text.
-This is some text.
-This is some text.
-- -
-