Updated greeter with graphic and height

This commit is contained in:
Martin Donnelly 2020-02-01 13:22:23 +00:00
parent 960427c906
commit 15857f42ef
5 changed files with 15 additions and 4 deletions

View File

@ -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";

BIN
src/gfx/default_daily_image.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

@ -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;
});
});

View File

@ -83,7 +83,7 @@ const GreetView = Backbone.View.extend({
place = place + locationName;
}
const html = `<div class="mui-panel mui--text-center">
const html = `<div class="mui-panel greetPanel mui--text-center">
<h2>${todaySegment}</h2>
<div>${icon} ${place}</div>
</div>`;