diff --git a/src/css/custom.scss b/src/css/custom.scss index 267e73f..5264534 100644 --- a/src/css/custom.scss +++ b/src/css/custom.scss @@ -488,4 +488,14 @@ li { margin-bottom: 5px; } +.greetPanel{ + text-shadow: 1px 1px 2px #212121; + color: white; + height:24vw; + background-size: cover; + background-color: goldenrod; + background-image: url(../gfx/default_daily_image.jpg); + +} + @import "./src/css/weather"; diff --git a/src/gfx/default_daily_image.jpg b/src/gfx/default_daily_image.jpg new file mode 100755 index 0000000..618c596 Binary files /dev/null and b/src/gfx/default_daily_image.jpg differ diff --git a/src/img/android-chrome-192x192.png b/src/img/android-chrome-192x192.png index c927e7d..cb5a133 100644 Binary files a/src/img/android-chrome-192x192.png and b/src/img/android-chrome-192x192.png differ diff --git a/src/service-worker.js b/src/service-worker.js index bef3edb..4729f2f 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -28,6 +28,7 @@ const PRECACHE_URLS = [ '/img/favicon-32x32.png', '/img/android-chrome-192x192.png', '/img/android-chrome-512x512.png', + '/gfx/default_daily_image.jpg', '/gfx/stars_00.png', '/gfx/stars_10.png', '/gfx/stars_15.png', @@ -131,10 +132,10 @@ self.addEventListener('fetch', event => { caches.open(RUNTIME).then(function(cache) { return cache.match(event.request).then(function (response) { console.log('£', response); - + return response || fetch(event.request).then(function(response) { cache.put(event.request, response.clone()); - + return response; }); }); @@ -146,7 +147,7 @@ self.addEventListener('fetch', event => { return cache.match(event.request).then(function (response) { return response || fetch(event.request).then(function(response) { cache.put(event.request, response.clone()); - + return response; }); }); diff --git a/src/v1/js/Greet.js b/src/v1/js/Greet.js index 6773e3f..7ff2783 100644 --- a/src/v1/js/Greet.js +++ b/src/v1/js/Greet.js @@ -83,7 +83,7 @@ const GreetView = Backbone.View.extend({ place = place + locationName; } - const html = `
+ const html = `

${todaySegment}

${icon} ${place}
`;