diff --git a/www/assets/images/trailer-front-august2022-cleaned.jpg b/www/assets/images/trailer-front-august2022-cleaned.jpg new file mode 100644 index 0000000..150e587 Binary files /dev/null and b/www/assets/images/trailer-front-august2022-cleaned.jpg differ diff --git a/www/pages/trackresult.html b/www/pages/trackresult.html index baa0af4..79273ba 100644 --- a/www/pages/trackresult.html +++ b/www/pages/trackresult.html @@ -57,7 +57,7 @@ diff --git a/www/pages/trailer.html b/www/pages/trailer.html new file mode 100644 index 0000000..1dd7193 --- /dev/null +++ b/www/pages/trailer.html @@ -0,0 +1,68 @@ + + +
+ + + +
+
+
+
+
+
+ +
+
+ Our Mobile Shipping Center is a specialized trailer equipped to offer mailing, + shipping, notarizing, copying, and faxing services. With no pickup or travel fees, + it's a good way to save money and skip the line at the post office. +
+
+ Check the schedule and come visit us! Need directions? + Just tapclick + a location to open a map. +
+
+
+ Learn More   +
+
+
+
+
+
+
Schedule
+
+ +
+
+
+
+
\ No newline at end of file diff --git a/www/routes.js b/www/routes.js index 09c3816..323f70c 100644 --- a/www/routes.js +++ b/www/routes.js @@ -22,7 +22,8 @@ var pagesToCompile = [ "account", "trackresult", "settings", - "receipts" + "receipts", + "trailer" ]; console.log("Compiling page templates..."); for (var i = 0; i < pagesToCompile.length; i++) { @@ -207,6 +208,12 @@ var routes = [ icon: "fa-duotone fa-home", text: "Leave your package on your porch and we'll pick it up and ship it for you. No postage or appointment needed." }, + { + title: "Visit Us", + href: "/trailer", + icon: "fa-duotone fa-caravan", + text: "Our Mobile Shipping Center roams the Helena area like a food truck for mail. Find dates and places here." + }, { title: "Book an Appointment", href: "/appointment/shipping", @@ -372,6 +379,31 @@ var routes = [ } } }, + { + path: '/trailer', + name: 'trailer', + async: function ( {resolve, reject}) { + app.dialog.preloader("Checking the schedule..."); + apirequest(SETTINGS.apis.trailerschedule, [], function (resp) { + app.dialog.close(); + + resolve({ + content: compiledPages.trailer({ + schedule: resp + }) + }, {}); + }, function (error) { + app.dialog.close(); + app.dialog.alert("Couldn't get the latest schedule. Try again later.", "Whoops!"); + sendErrorReport("Trailer", "Loading schedule"); + resolve({ + content: compiledPages.trailer({ + schedule: [] + }) + }, {}); + }, "GET"); + } + }, { path: '/telegram', name: 'telegram', diff --git a/www/settings.js b/www/settings.js index f6b94cb..920c6df 100644 --- a/www/settings.js +++ b/www/settings.js @@ -46,7 +46,8 @@ var SETTINGS = { broadcasttransaction: "http://localhost/helena.express/apis/crypto/broadcasttransaction", cryptofees: "http://localhost/helena.express/apis/crypto/fees", // Service area map - servicearea: "http://localhost/helena.express/apis/servicearea" + servicearea: "http://localhost/helena.express/apis/servicearea", + trailerschedule: "https://helena.express/mobile/schedule.json" }, stripe_pubkey: "pk_test_51J6qFXCa1Fboir5UzPO3LCiMsVNiFP2lq4wR0dEcjJJVzAaJ3uRggDekZPB3qeYpMD3ayIYHKyD5sSn0IFLlEXMW001LqrvGSH", branding: {