-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
91 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,8 @@ | |
], | ||
"rules": { | ||
"linebreak-style": 0 | ||
}, | ||
"globals": { | ||
"L": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
node_modules/ | ||
npm-debug.log | ||
.eslintrc.json | ||
.eslintcache | ||
.eslintrc.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
/* eslint-env browser */ | ||
console.log('OY'); | ||
|
||
setTimeout(() => { | ||
const mymap = L.map('mapid', { | ||
center: [32.699, 35.303], | ||
zoomControl: false, | ||
attributionControl: false, | ||
zoom: 15, | ||
}); | ||
|
||
L.tileLayer( | ||
'https://api.mapbox.com/styles/v1/mapbox/light-v9/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1Ijoia2FyeXVtIiwiYSI6ImNqMjAzNGU4ZjAxa3EycW4xazFxcHZ6a2QifQ.m_dNO1l1sMkM7r4d5nlRRQ').addTo(mymap); | ||
}, 50); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const carRouteHandler = (request, reply) => { | ||
reply.view('car-route', { | ||
title: 'Private Parking', | ||
tagLine: 'ElMutran Parking', | ||
}); | ||
}; | ||
|
||
module.exports = { | ||
method: 'GET', | ||
path: '/car', | ||
handler: carRouteHandler, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
const homeHandler = require('./home.js'); | ||
const staticHandler = require('./static.js'); | ||
const taxiHandler = require('./taxi.js'); | ||
const carHandler = require('./carPage.js'); | ||
|
||
module.exports = [ | ||
homeHandler, | ||
staticHandler, | ||
taxiHandler, | ||
carHandler, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="app-shell"> | ||
|
||
{{> header}} | ||
<div id="mapid"></div> | ||
<div class="splash-button-car"> | ||
<a href="/walk" class="arrived-button">ARRIVED</a> | ||
</div> | ||
<a href="/"><i class="fa fa-arrow-left back-button"></i></a> | ||
</div> | ||
|
||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" | ||
integrity="sha512-A7vV8IFfih/D732iSSKi20u/ooOfj/AGehOKq0f4vLT1Zr2Y+RX7C+w8A1gaSasGtRUZpF/NZgzSAu4/Gc41Lg==" | ||
crossorigin=""></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,18 @@ | |
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="/style.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" | ||
integrity="sha512-07I2e+7D8p6he1SIM+1twR5TIrhUQn9+I6yjqD53JQjFiMf8EtC93ty0/5vJTZGF8aAocvHYNEDJajGdNx1IsQ==" | ||
crossorigin=""/> | ||
<link href="https://fonts.googleapis.com/css?family=Economica|Roboto+Condensed" rel="stylesheet"> | ||
|
||
<title>PAS</title> | ||
</head> | ||
<body> | ||
|
||
{{{content}}} | ||
|
||
<script type="text/javascript" src="/main.js"></script> | ||
<script type="text/javascript" src="/main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
|
||
<div class="app-shell"> | ||
{{> header}} | ||
<p class="intro-text">Welcome!<br />How will you be arriving?</p> | ||
|
||
<div class="button-container"> | ||
<div class="splash-button"><img class="transport-type" src="/images/car-4-128.jpg" alt="arriving by car"></div> | ||
<a href="/car"><div class="splash-button"><img class="transport-type" src="/images/car-4-128.jpg" alt="arriving by car"></div></a> | ||
|
||
<!-- when we make the bus route page we need to add the a tag here --> | ||
<div class="splash-button"><img class="transport-type" src="/images/bus-128.jpg" alt="arriving by bus"></div> | ||
|
||
<!-- when we add the taxi route we need to add the a tag here --> | ||
<div class="splash-button btn-3"><img class="transport-type" src="/images/taxi-128.jpg" alt="arriving by taxi"></div> | ||
</div> | ||
</div> |