diff options
| author | Kumar Damani <damani.kumar@gmail.com> | 2019-02-20 00:43:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-20 00:43:34 +0000 |
| commit | 4b588e647dedbb49f54f9dd390b96f8466321ece (patch) | |
| tree | 7754c0837ae23952984bd5f9339bab4be270c51f /web/views | |
| parent | e29d2e6c05f9fb2e6b630fed48904943625ad358 (diff) | |
| parent | 0b5953f7bc46be5b879dc08173731cacee47afde (diff) | |
Merge pull request #11 from csc301-winter-2019/feat/4
Feat/4
Diffstat (limited to 'web/views')
| -rw-r--r-- | web/views/error.pug | 6 | ||||
| -rw-r--r-- | web/views/index.pug | 5 | ||||
| -rw-r--r-- | web/views/layout.pug | 12 | ||||
| -rw-r--r-- | web/views/map.pug | 11 |
4 files changed, 34 insertions, 0 deletions
diff --git a/web/views/error.pug b/web/views/error.pug new file mode 100644 index 0000000..51ec12c --- /dev/null +++ b/web/views/error.pug @@ -0,0 +1,6 @@ +extends layout + +block content + h1= message + h2= error.status + pre #{error.stack} diff --git a/web/views/index.pug b/web/views/index.pug new file mode 100644 index 0000000..be7ff98 --- /dev/null +++ b/web/views/index.pug @@ -0,0 +1,5 @@ +extends layout + +block content + h1= title + p Welcome to our site, please go to /map to see a map diff --git a/web/views/layout.pug b/web/views/layout.pug new file mode 100644 index 0000000..f46138c --- /dev/null +++ b/web/views/layout.pug @@ -0,0 +1,12 @@ +doctype html +html + head + title= title + link(rel='stylesheet', href='https://unpkg.com/leaflet@1.0.3/dist/leaflet.css') + link(rel='stylesheet', href='https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css') + link(rel='stylesheet', href='/stylesheets/style.css') + script(src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js') + script(src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js') + script(src='https://unpkg.com/leaflet@1.0.3/dist/leaflet.js') + body + block content diff --git a/web/views/map.pug b/web/views/map.pug new file mode 100644 index 0000000..b7781fa --- /dev/null +++ b/web/views/map.pug @@ -0,0 +1,11 @@ +extends layout.pug +block content + #sidebar + h1 This is a sidebar + #map + + script(type='text/javascript'). + var map = L.map('map').setView([#{lat},#{lng}], 15); + script(src='/javascripts/map.js') + + |
