diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-10-21 00:20:45 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-10-21 00:22:10 +0200 |
commit | 70a0e746bea86b3e78e8b0c999f24fabf73e049b (patch) | |
tree | 2d83b65b58e40721e4577a6c2f8cd86f9708afc2 | |
parent | 31ef9f126da452cfa76cd2538a6a9e8ac0955596 (diff) | |
download | server-70a0e746bea86b3e78e8b0c999f24fabf73e049b.tar.gz |
Favicon stuff.
-rw-r--r-- | public/apple-touch-icon.png | bin | 0 -> 4035 bytes | |||
-rw-r--r-- | public/favicon.ico | bin | 0 -> 15086 bytes | |||
-rw-r--r-- | public/favicon.svg | 6 | ||||
-rw-r--r-- | server.js | 4 | ||||
-rw-r--r-- | views/header.ejs | 2 |
5 files changed, 7 insertions, 5 deletions
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png Binary files differnew file mode 100644 index 0000000..40c8f2e --- /dev/null +++ b/public/apple-touch-icon.png diff --git a/public/favicon.ico b/public/favicon.ico Binary files differnew file mode 100644 index 0000000..7822ec2 --- /dev/null +++ b/public/favicon.ico diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..48d6553 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,6 @@ +<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> +<style> +@media(prefers-color-scheme:dark){path{fill:#fff}} +</style> +<path class="a" d="M462.9 19.12c-9.6 0-17.2 7.59-17.2 17.19 0 9.61 7.6 17.19 17.2 17.19s17.2-7.58 17.2-17.19c0-9.6-7.6-17.19-17.2-17.19zm-80.3 21.82c-160.3.8-218.1 217.46-362.93 96.26 3.25 36.8 88.43 78.4 88.43 78.4-26.03 20-34.78 24.7-71.99 25.5 104.09 86.7 338.69-99.8 408.39 40.1l-2.3-38.4-45.4-46.5 42.7.6-.6-10.2-50.7-32.2 48.4-7.2-.7-11.1-50-27.3 47.9-8.8-.6-10.69L381 66.66l50.5-5.85-.8-13.9c-17.1-4.2-33-6.05-48.1-5.97zm70.8 29.97l20.2 423.99 18.7-.9-20.2-423c-6.3 1.54-12.7 1.5-18.7-.1zM360 292.9l-43.6 70 21.3 25L322 493h18.9l15.2-102.3 28-20.2c-8.1-25.9-16.1-51.8-24.1-77.6zm-156.7 17.9l-28.8 69.8 20.5 20.2 2.2 92.2h18.7l-2.2-93 19.6-19.9-30-69.3zm-158.16 5l-16.4 61.9 17.65 13.2L61.24 493h18.87L64.89 388.3l13.22-17.6-32.93-54.9zm85.96 7.4l-28.2 57.5 15.1 17-6.7 95.3H130l6.8-95.3 15.9-14.2-21.6-60.3zM268 355.5l-19.5 68.4 19.4 15.2 5.8 53.9h18.9l-5.9-54.3 16.8-21.6c-11.9-20.5-23.7-41-35.5-61.6zm143.6.1l-18.9 68.6 20.3 15.5 6.2 53.3H438l-6.4-55.2 16-20.9z"/> +</svg> @@ -285,10 +285,6 @@ function must_be_logged_in(req, res, next) { return next(); } -app.get('/favicon.ico', function (req, res) { - res.status(204).send(); -}); - app.get('/about', function (req, res) { res.render('about.ejs', { user: req.user }); }); diff --git a/views/header.ejs b/views/header.ejs index 3af1a8b..b430c25 100644 --- a/views/header.ejs +++ b/views/header.ejs @@ -3,7 +3,7 @@ <head> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1"> <% if (typeof refresh !== 'undefined' && refresh > 0) { %><meta http-equiv="refresh" content="<%= refresh %>"><% } %> -<link rel="icon" href="/images/rally-the-troops.png"> +<link rel="icon" href="/favicon.svg"> <link rel="stylesheet" href="/fonts/fonts.css"> <link rel="stylesheet" href="/style.css"> <title><%= title %></title> |