From 6a887968a3888d8961241db4b9c8c376572c3fa1 Mon Sep 17 00:00:00 2001 From: rotimi_best Date: Mon, 28 Dec 2020 04:16:45 +0200 Subject: [PATCH] favicon, tg channel, res design, tags --- rollup.config.js | 30 +++++++++--------- src/{service-worker.js => _service-worker.js} | 2 +- src/components/HashTags.svelte | 9 ++++++ src/components/Nav.svelte | 30 +++++++++++++----- src/components/NewQuestion.svelte | 2 +- src/components/SideBar.svelte | 3 +- src/components/Vote.svelte | 4 +-- src/routes/discussion/[id].svelte | 4 +++ src/routes/discussion/_discussions.js | 15 +++++++++ src/routes/index.svelte | 2 ++ src/template.html | 3 +- static/apple-touch-icon.png | Bin 0 -> 7708 bytes static/favicon.ico | Bin 0 -> 15406 bytes static/favicon.png | Bin 3127 -> 0 bytes static/logo-192.png | Bin 4760 -> 8614 bytes static/logo-32.png | Bin 0 -> 1112 bytes static/logo-512.png | Bin 13928 -> 24976 bytes 17 files changed, 75 insertions(+), 29 deletions(-) rename src/{service-worker.js => _service-worker.js} (97%) create mode 100644 src/components/HashTags.svelte create mode 100644 static/apple-touch-icon.png create mode 100644 static/favicon.ico delete mode 100644 static/favicon.png create mode 100644 static/logo-32.png diff --git a/rollup.config.js b/rollup.config.js index 4a34f91c..9b7cde26 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -103,20 +103,20 @@ export default { onwarn }, - serviceworker: { - input: config.serviceworker.input(), - output: config.serviceworker.output(), - plugins: [ - resolve(), - replace({ - "process.browser": true, - "process.env.NODE_ENV": JSON.stringify(mode) - }), - commonjs(), - !dev && terser() - ], + // serviceworker: { + // input: config.serviceworker.input(), + // output: config.serviceworker.output(), + // plugins: [ + // resolve(), + // replace({ + // "process.browser": true, + // "process.env.NODE_ENV": JSON.stringify(mode) + // }), + // commonjs(), + // !dev && terser() + // ], - preserveEntrySignatures: false, - onwarn - } + // preserveEntrySignatures: false, + // onwarn + // } }; diff --git a/src/service-worker.js b/src/_service-worker.js similarity index 97% rename from src/service-worker.js rename to src/_service-worker.js index 02ab1d2d..f89df038 100644 --- a/src/service-worker.js +++ b/src/_service-worker.js @@ -33,7 +33,7 @@ self.addEventListener('activate', event => { /** - * Fetch the asset from the network and store it in the cache. + * Fetch the asset from the network and store it in the cache. * Fall back to the cache if the user is offline. */ async function fetchAndCache(request) { diff --git a/src/components/HashTags.svelte b/src/components/HashTags.svelte new file mode 100644 index 00000000..f733c298 --- /dev/null +++ b/src/components/HashTags.svelte @@ -0,0 +1,9 @@ + + +
+ {#each tags as tag} + #{tag.toLowerCase()} + {/each} +
diff --git a/src/components/Nav.svelte b/src/components/Nav.svelte index a63e9d7b..3555636a 100644 --- a/src/components/Nav.svelte +++ b/src/components/Nav.svelte @@ -46,17 +46,31 @@ a { text-decoration: none; padding: 1em 0.5em; - display: block; } diff --git a/src/components/NewQuestion.svelte b/src/components/NewQuestion.svelte index 79561c60..51904d02 100644 --- a/src/components/NewQuestion.svelte +++ b/src/components/NewQuestion.svelte @@ -9,7 +9,7 @@ } - \ No newline at end of file diff --git a/src/components/SideBar.svelte b/src/components/SideBar.svelte index 9481b62d..eba3568c 100644 --- a/src/components/SideBar.svelte +++ b/src/components/SideBar.svelte @@ -22,6 +22,7 @@