From 904ccabe4324cb2e7c985a2dbe25cce462f14d7c Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Mon, 8 Apr 2019 21:51:53 -0400 Subject: added proper content, no styling --- web/routes/index.js | 3 ++- web/views/index.pug | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/web/routes/index.js b/web/routes/index.js index 2a828bc..05df4d4 100644 --- a/web/routes/index.js +++ b/web/routes/index.js @@ -12,7 +12,8 @@ const glookup = new GeoJsonGeometriesLookup(torontoNeighbourhoords); /* GET home page. */ router.get('/', function(req, res, next) { // for now just redirect to /map - res.redirect('/map'); + //res.redirect('/map'); + res.render('index'); }); /* GET Map page. */ diff --git a/web/views/index.pug b/web/views/index.pug index be7ff98..8adb664 100644 --- a/web/views/index.pug +++ b/web/views/index.pug @@ -1,5 +1,55 @@ extends layout block content - h1= title - p Welcome to our site, please go to /map to see a map + h1 Welcome to Helpthehome(less) + h2 About this project + p + | This project is under the UN's SDG Goals + | + a(href="https://www.un.org/sustainabledevelopment/sustainable-development-goals/") (Sustainable Development Goals) + | + | umbrella. The issue it tries to address, falls under Goal 1: No Poverty. + p + | Our small attempt to tackle this issue involves helping with the + | + strong visibly homeless + | + | in the City of Toronto. + p + | This project contains two main components: mobile, and web. The Mobile component consists of a mobile app through which an ordinary citizen may report the location, and a few identifying characteristics of a homeless person they see. + | Once they submit the report on the app, the Web component receives this report and displays it so that an outreach worker can take appropriate action. + p + | Note: We do not store any personal data from any user in order to use this service. + h2 How it works + p + | Adding /map to the URL above will load a new page with the Map of City of Toronto. + br + | On this map you will find map Markers. + br + | Each marker represents a Report sent in by our companion mobile application by an anonymous person in the city. The position of the marker on the map corresponds to the location of the homeless person in the city. + br + | This report contains useful information about spotting a homeless person. The report can be accessed by clicking on any one of the Markers. + p + | The page can be accessed + | + a(href="/map") here + | . + h2 How it's built + ul + li Website + ul + li HTML/CSS/Javascript (ES6) + li MongoDB, Express, Pug, NodeJs + li OpenStreetMap, Leaflet.js, Jquery + li: a(href="https://portal0.cf.opendata.inter.sandbox-toronto.ca/dataset/neighbourhoods/") City Neighborhood data + li Mobile + ul + li Javascript + li React-Native, Expo + h2 Who built it + ul + li Samarth Agarwal, GitHub + li Fahim Ahmed, GitHub + li Kumar Damani, GitHub + li Andrew Mihai, GitHub + li Ivan Shen, GitHub -- cgit v1.2.3