From 8c75965b357864bdd404f66c81ec61ff474c29ff Mon Sep 17 00:00:00 2001 From: philawsophizing Date: Tue, 16 May 2017 13:14:57 +0300 Subject: [PATCH] Add taxi view/route/css close #18 --- public/style.css | 90 ++++++++++++++++++++++++----------------- src/routes/carPage.js | 12 ------ src/routes/home.js | 1 - src/routes/index.js | 4 +- src/routes/taxi.js | 1 - src/views/car-route.hbs | 13 ------ src/views/splash.hbs | 17 +++++--- src/views/taxi.hbs | 7 +++- 8 files changed, 72 insertions(+), 73 deletions(-) delete mode 100644 src/routes/carPage.js delete mode 100644 src/views/car-route.hbs diff --git a/public/style.css b/public/style.css index f097f5d..0cf724b 100644 --- a/public/style.css +++ b/public/style.css @@ -20,15 +20,6 @@ body { flex-direction: column; } -/* Back Button */ -.back-button { - height: 10%; - margin: 0 0 5% 5%; - display: inline-block; - position: absolute; - margin-top: 155%; -} - /* Header */ .header { @@ -75,6 +66,46 @@ body { font-family: 'Roboto Condensed', sans-serif; } +/* Back Button */ +.back-button { + height: 7%; + margin: 0 0 5% 5%; + display: inline-block; + position: absolute; + margin-top: 155%; +} + +.arrow { + height: 100%; + margin-top: 40%; +} + +/* Arrived Button */ + +.arrived-button { + background-color: white; + height: 7%; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 3%; + text-decoration: none; + box-shadow: 0 0 1px 2px #848e9e; +} + +.arrived-button:hover { + box-shadow: inset 0 0 1px 2px #848e9e; +} + +.arrived-text { + font-family: 'Roboto Condensed', sans-serif; + color: #6E9FEF; + font-weight: bolder; + font-size: 1.75rem; + padding: 0em 1em; + line-height: 2em; +} + /* Splash Page */ .intro-text { @@ -158,36 +189,19 @@ body { /* Car Route */ -#mapid { - margin-top: 3%; - height: 70%; - width: 100%; -} - -.splash-button-car { +.map-container { + width: 85%; + height: 65%; + margin-top: 10%; + display: flex; + align-self: center; + align-items: center; + justify-content: center; background-color: white; - height: 7%; - position: absolute; - left: 50%; - transform: translateX(-50%); - bottom: 4%; -} - -.arrived-button { - text-decoration: none; - color: #6E9FEF; - font-weight: bolder; - font-size: 1.5rem; - padding: 0em 1em; - line-height: 2em; + box-shadow: inset 0 0 1px 2px #848e9e; } -.back-button { - color: white; - float: left; - font-size: 4rem; - margin-left: 1rem; - left: 0%; - bottom: 4%; - position: absolute; +#mapid { + height: 98%; + width: 98%; } diff --git a/src/routes/carPage.js b/src/routes/carPage.js deleted file mode 100644 index 51cd7c8..0000000 --- a/src/routes/carPage.js +++ /dev/null @@ -1,12 +0,0 @@ -const carRouteHandler = (request, reply) => { - reply.view('car-route', { - title: 'Private Parking', - tagLine: 'ElMutran Parking', - }); -}; - -module.exports = { - method: 'GET', - path: '/car', - handler: carRouteHandler, -}; diff --git a/src/routes/home.js b/src/routes/home.js index b8a4e62..884568a 100644 --- a/src/routes/home.js +++ b/src/routes/home.js @@ -3,7 +3,6 @@ const data = { tagLine: 'Park & Sleep', }; - module.exports = { method: 'GET', path: '/', diff --git a/src/routes/index.js b/src/routes/index.js index a083721..2e0db70 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -1,11 +1,13 @@ const homeHandler = require('./home.js'); const staticHandler = require('./static.js'); const taxiHandler = require('./taxi.js'); -const carHandler = require('./carPage.js'); +const carHandler = require('./car.js'); +const busHandler = require('./bus.js'); module.exports = [ homeHandler, staticHandler, taxiHandler, carHandler, + busHandler, ]; diff --git a/src/routes/taxi.js b/src/routes/taxi.js index 5f6ccc6..fad390a 100644 --- a/src/routes/taxi.js +++ b/src/routes/taxi.js @@ -3,7 +3,6 @@ const data = { tagLine: '6098/8 Nazareth', }; - module.exports = { method: 'GET', path: '/taxi', diff --git a/src/views/car-route.hbs b/src/views/car-route.hbs deleted file mode 100644 index 9731dea..0000000 --- a/src/views/car-route.hbs +++ /dev/null @@ -1,13 +0,0 @@ -
- - {{> header}} -
-
- ARRIVED -
- -
- - diff --git a/src/views/splash.hbs b/src/views/splash.hbs index ed90ff2..fbf897b 100644 --- a/src/views/splash.hbs +++ b/src/views/splash.hbs @@ -1,13 +1,18 @@
+ {{> header}}

Welcome!
How will you be arriving?

-
arriving by car
- - -
arriving by bus
- -
arriving by taxi
+ + arriving by car + + + arriving by bus + + + arriving by taxi + +
diff --git a/src/views/taxi.hbs b/src/views/taxi.hbs index a329317..f85dcb3 100644 --- a/src/views/taxi.hbs +++ b/src/views/taxi.hbs @@ -1,9 +1,14 @@
+ {{> header}}

Estimated cost from your
location is:

$7.50 USD
- click to go back + + + click to go back + +