aboutsummaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-02-18 04:15:36 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-02-18 04:15:36 +0000
commit085538ec47cb5baa29c4214d97c6926b285ab507 (patch)
tree64a34dda05d1ef36c7e2b569e3fc39887493b621 /web/views
parent5635b98d0ba8f28db9868ee44a82a3f1151eed05 (diff)
added basic site with basic map
Diffstat (limited to 'web/views')
-rw-r--r--web/views/error.pug6
-rw-r--r--web/views/index.pug5
-rw-r--r--web/views/layout.pug12
-rw-r--r--web/views/map.pug11
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')
+
+