From ee0e97c9c5692533dbc4ceb982f323845c01406d Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Mon, 10 Jun 2019 11:52:37 -0600 Subject: [PATCH] Add social meta and logo --- advertising.html | 9 ++- dev/resize-images.js | 5 ++ offline.html | 12 +++- src/images/logo.svg | 146 ++++++++++++++++++++++++++++++++++--------- template-index.html | 6 ++ template-view.html | 22 ++++--- 6 files changed, 161 insertions(+), 39 deletions(-) diff --git a/advertising.html b/advertising.html index 7980870..31ae1ae 100644 --- a/advertising.html +++ b/advertising.html @@ -6,11 +6,18 @@ Advertising on Lexiconga + + + - + + + + + diff --git a/dev/resize-images.js b/dev/resize-images.js index 9ec9679..3cc88d8 100644 --- a/dev/resize-images.js +++ b/dev/resize-images.js @@ -9,6 +9,11 @@ if (!fs.existsSync(folder)) { const favicon = sharp('./src/images/favicon.svg'); +sharp('./src/images/logo.svg').toFile(folder + 'logo.png', (err, info) => { + if (err) return console.error(err); + console.log(info); +}); + favicon.clone().resize(32, 32).toFile(folder + 'favicon.png', (err, info) => { if (err) return console.error(err); console.log(info); diff --git a/offline.html b/offline.html index c0aefe3..9a04a21 100644 --- a/offline.html +++ b/offline.html @@ -5,11 +5,17 @@ Lexiconga (OFFLINE) - - + + + + - + + + + + diff --git a/src/images/logo.svg b/src/images/logo.svg index cb3c991..bd91dad 100644 --- a/src/images/logo.svg +++ b/src/images/logo.svg @@ -1,31 +1,121 @@ - + - - - - - image/svg+xml - - - - - - - - - - - - - - + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - diff --git a/template-index.html b/template-index.html index 9942a9f..950744e 100644 --- a/template-index.html +++ b/template-index.html @@ -6,10 +6,16 @@ Lexiconga + + + + + + diff --git a/template-view.html b/template-view.html index 314cdab..48b5a61 100644 --- a/template-view.html +++ b/template-view.html @@ -5,14 +5,22 @@ {{dict_name}} | Lexiconga - - - - - + + + + + + + + + + + + + - - + +