Add trailer info
This commit is contained in:
parent
2211f74671
commit
a1c176986d
BIN
www/assets/images/trailer-front-august2022-cleaned.jpg
Normal file
BIN
www/assets/images/trailer-front-august2022-cleaned.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 414 KiB |
@ -57,7 +57,7 @@
|
||||
<div class="item-content item-link hapticbtn" onclick='openExternalBrowser("{{carrierurl}}");'>
|
||||
<div class="item-inner">
|
||||
<div class="item-title">
|
||||
<i class="fa-regular fa-external-link"></i> More Info
|
||||
<i class="fa-regular fa-arrow-up-right-from-square"></i> More Info
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
68
www/pages/trailer.html
Normal file
68
www/pages/trailer.html
Normal file
@ -0,0 +1,68 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<div class="page" data-name="trailer">
|
||||
|
||||
<div class="navbar">
|
||||
<div class="navbar-bg"></div>
|
||||
<div class="navbar-inner">
|
||||
<div class="left">
|
||||
<a class="link back" href="#">
|
||||
<i class="icon icon-back"></i>
|
||||
<span class="if-not-md">Back</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="title">Mobile Shipping Center</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="page-content noselect">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-100 medium-50 padding-top">
|
||||
<div class="card">
|
||||
<div class="card-body padding-top">
|
||||
<div class="block text-align-center">
|
||||
<img src="assets/images/trailer-front-august2022-cleaned.jpg" style="max-width: 100%; max-height: 300px;"/>
|
||||
</div>
|
||||
<div class="block margin-bottom">
|
||||
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.
|
||||
</div>
|
||||
<div class="block margin-bottom">
|
||||
Check the schedule and come visit us! Need directions?
|
||||
Just <span class="taptext">tap</span><span class="clicktext">click</span>
|
||||
a location to open a map.
|
||||
</div>
|
||||
<div class="block">
|
||||
<div class="button" onclick='openExternalBrowser("https://helena.express/mobile");'>
|
||||
Learn More <i class="fa-regular fa-arrow-up-right-from-square"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-100 medium-50">
|
||||
<div class="block-title">Schedule</div>
|
||||
<div class="list media-list">
|
||||
<ul>
|
||||
{{#each schedule}}
|
||||
<li>
|
||||
<a href="geo:{{geo}}" class="item-link item-content">
|
||||
<div class="item-inner">
|
||||
<div class="item-title-row">
|
||||
<div class="item-title">{{date}}</div>
|
||||
</div>
|
||||
<div class="item-subtitle">{{time}}</div>
|
||||
<div class="item-text">{{location}}</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -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',
|
||||
|
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user