diff --git a/config/middleware.js b/config/middleware.js index 549886a..37647db 100644 --- a/config/middleware.js +++ b/config/middleware.js @@ -17,7 +17,7 @@ module.exports = { if (req.isAuthenticated()) { return next(); } else { req.session.returnTo = req.path; - console.log('mw.ensureAuth: redirect to '+req.path+' after login.'); + console.log('mw.ensureAuth: Going to redirect to '+req.path+' after login.'); // TODO: Correct next path req.flash('error', 'You must be signed in to do that. Click here to log in. '); res.redirect('/'); } diff --git a/static/css/base.css b/static/css/base.css index faa77a7..e06b8c5 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -6,15 +6,15 @@ min-width:10px; max-width:40px; }::-webkit-scrollbar-track { - background-color: #000; + background-color: #080808; }::-webkit-scrollbar-thumb { border-radius: .2vw; background: #333; } body { - background-color:#000; - color:#eee; + background-color: #080808; + color: #eee; } body, input, textarea { padding: 0; margin: 0; @@ -37,7 +37,11 @@ pre { word-wrap: break-word; } .dark pre { - color: #777; + -moz-box-shadow: 2px 2px 4px #000; + -webkit-box-shadow: 2px 2px 4px #000; + box-shadow: 2px 2px 4px #000; + background-color: rgba(255,255,255,.03); + color: #aaa; padding: 1%; border: 1px solid #ccc; border-radius: .25rem; @@ -160,6 +164,9 @@ section { transition: 200ms; background: transparent; cursor: pointer; + -moz-box-shadow: 2px 2px 4px #000; + -webkit-box-shadow: 2px 2px 4px #000; + box-shadow: 2px 2px 4px #000; } .dark .btn { color: #fff; @@ -169,6 +176,10 @@ section { .dark .btn:active:not(.disabled), .dark .btn:focus:not(.disabled) { background: rgba(255,255,255,0.1); +}.dark.btn:active:not(.disabled) { + -moz-box-shadow: 0; + -webkit-box-shadow: 0; + box-shadow: 0; } .light .btn { color: #222; diff --git a/static/css/header.css b/static/css/header.css index b0e871f..aa63c6a 100644 --- a/static/css/header.css +++ b/static/css/header.css @@ -7,6 +7,7 @@ header { z-index: 200; } header .logo { + float: left; font-family: 'Open Sans', sans-serif; padding: 13px 23px; diff --git a/views/dashboard.html b/views/dashboard.html index 01e56eb..95a0b68 100644 --- a/views/dashboard.html +++ b/views/dashboard.html @@ -4,30 +4,66 @@ {% block head %} {{super()}} {% endblock %} {% block main %} -
+
-

Welcome{% if user.name %}, {{user.name}}{% endif %}!

-

To view your location, use this link: https://tracman.org/trac/{{user.slug}}

+

Dashboard

+

You can also embed a map into your website with this code. Be sure to set the width and height attributes to suit your circumstance. 

-
<iframe src="https://tracman.org/trac/{{user.slug}}?noheader=1" width="90%" style="height:90vh;"></iframe>
+
<iframe src="https://tracman.org/trac/{{user.slug}}?noheader=1" width="90%" style="height:90vh"></iframe>
-
+
+ +
-

App

-

Click the button below to download the app from the google play store, if you haven't already. 

+

Set location

+

You can set your location to this device's geolocation by clicking the button below. You can also track this device's location by clicking “Start tracking”. Your location will update as long as you keep this window open. For accuracy, try it on your smartphone, but be careful, because it will drain the battery quickly. 

+

+ + +

+

Android

+

The android app lets you update your location in the background, and will conserve battery life. Note that it's kind of buggy at the moment. 

Get it on Google Play

-

Without the app running, your location won't update. But you can also set your location to this device's geolocation by clicking the button below.

-

-
-
+ +
+ +

Settings

@@ -108,46 +144,73 @@
-
+

-
+

-
- +
+

-
- +
+
{% if not user.isPro %}

Want to try Tracman Pro? It's free during beta testing. 

{% endif %}

Would you like to submit a suggestion or bug report? 

-
{% endblock %} diff --git a/views/index.html b/views/index.html index 5a9d3e7..f2d5e76 100644 --- a/views/index.html +++ b/views/index.html @@ -11,7 +11,7 @@

Tracman

-

Let friends track your GPS location in realtime

+

Display your realtime GPS location on a map

More info {% if not user %} Request invite @@ -47,22 +47,22 @@
Mobile phone
-

The App

-

Tracman uses an android app to recieve GPS location of your device. Sorry, there's no iPhone version yet. 

+

Setting your location

+

You can track your GPS location from your phone's web browsers. There's also has an android app which can run in the background. With the app, you can:

  • -

    On/off switch

    +

    Turn off tracking

    If you need to go undercover, just turn tracman off with the flip of a switch. 

  • -

    Settings

    +

    Change settings

    Change your settings to show a less accurate location, if you want an air of mystery. 

  • -

    Saves energy

    +

    Save energy

    If nobody's tracking you, tracman won't needlessly drain your battery. 

@@ -90,7 +90,7 @@
  • Customizable

    -

    Change the map default type and zoom level. You can also show speed and altitude. 

    +

    Change the map default type and zoom level. You can also show speed, altitude, and streetview. 

  • @@ -100,9 +100,9 @@

    Warning!

    -

    This is beta software, so there are still kinks to be worked out…

    -

    Also keep in mind that there are a lot of reasons why publishing your location online could be a bad idea. 

    -

    I assume no responsibility whatsoever. 

    +

    This is beta software, so there are still kinks to be worked out. 

    +

    Also keep in mind that publishing your location online could be a bad idea. 

    +

    I assume no responsibilities.