diff --git a/assets/banner-bg.jpg b/assets/banner-bg.jpg new file mode 100644 index 0000000..7a0bc85 Binary files /dev/null and b/assets/banner-bg.jpg differ diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..92127bb Binary files /dev/null and b/assets/favicon.ico differ diff --git a/assets/pro-shop-device.jpg b/assets/pro-shop-device.jpg new file mode 100644 index 0000000..d8e43bb Binary files /dev/null and b/assets/pro-shop-device.jpg differ diff --git a/package.json b/package.json index 67c017b..26efe1a 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "moment-timezone": "^0.4.0", "nodemailer": "^1.3.4", "pg": "^4.4.3", + "serve-favicon": "^2.3.0", "sqlite3": "^3.0.8", "winston": "^2.1.1" }, diff --git a/server.js b/server.js index 0d01c45..db36eb4 100644 --- a/server.js +++ b/server.js @@ -35,6 +35,9 @@ app.engine('hbs', hbs.express4({ })); app.set('view engine', 'hbs'); app.set('views', __dirname + '/views'); +var favicon = require('serve-favicon'); +app.use(favicon(__dirname + '/assets/favicon.ico')); // Try this before setting static dir. +app.use(express.static('assets')); /******************************************************************************************************* With this express setup, ordering of routes matters!!! It's 1st-come-1st-served. diff --git a/views/home.hbs b/views/home.hbs index f34c745..a997874 100644 --- a/views/home.hbs +++ b/views/home.hbs @@ -1,12 +1,21 @@ {{!< default}} -
+

Are the courts open?


-

You can always know if the courts are open BEFORE you leave the house with TennisCourtsOpen.com

+

What's the QUICKEST way to know if the courts are open?:
TennisCourtsOpen.com


-

Here are the currently supported locations:

- - -
Temple Terrace Recreation Center, soft courts
+
+

At each location, we supply an internet-enabled hardware switch that updates the corresponding status page here at TennisCourtsOpen.com.

+ TennisCourtsOpen.com internet-enabled hardware device +
+
+
+ + {{! Make this table dynamic later when DB supports multiple locations. }} + + +

Here are the currently supported locations:

Temple Terrace Recreation Center, clay courts
+
+