From edb6c5e69c478366c410f773583683227fff459f Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Mon, 28 Sep 2020 17:11:10 +0200 Subject: [PATCH] Add 404 page and robots.txt --- src/index.ts | 2 ++ static/logo-colored.svg | 12 ++++++------ static/logo-white.svg | 2 +- static/no-change/404.html | 36 ++++++++++++++++++++++++++++++++++++ static/no-change/robots.txt | 2 ++ webpack.config.js | 10 ++++++++++ 6 files changed, 57 insertions(+), 7 deletions(-) create mode 100644 static/no-change/404.html create mode 100644 static/no-change/robots.txt diff --git a/src/index.ts b/src/index.ts index 432c8c8..b29af4a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,6 +4,8 @@ import '../static/favicons/favicon-16x16.png'; import '../static/favicons/favicon-32x32.png'; import '../static/favicons/favicon.ico'; import '../static/logo-white.svg'; +import '../static/no-change/404.html'; +import '../static/no-change/robots.txt'; import '../static/og-image.png'; import { DeltaTimeCalculator } from './helper/delta-time-calculator'; import { removeUnnecessaryOutlines } from './helper/remove-unnecessary-outlines'; diff --git a/static/logo-colored.svg b/static/logo-colored.svg index 96a64bf..a46b3d8 100644 --- a/static/logo-colored.svg +++ b/static/logo-colored.svg @@ -1,4 +1,4 @@ - + @@ -7,18 +7,18 @@ - + - + - + - + @@ -38,7 +38,7 @@ attributeName="transform" type="rotate" values="0 50 50;90 50 50" - dur="6s" + dur="10s" repeatCount="indefinite" /> diff --git a/static/logo-white.svg b/static/logo-white.svg index 503d9ef..f6f9c79 100644 --- a/static/logo-white.svg +++ b/static/logo-white.svg @@ -1,4 +1,4 @@ - + diff --git a/static/no-change/404.html b/static/no-change/404.html new file mode 100644 index 0000000..9177031 --- /dev/null +++ b/static/no-change/404.html @@ -0,0 +1,36 @@ + + + + + + Not found + + + + + +

The requested resource cannot be found.

+ + diff --git a/static/no-change/robots.txt b/static/no-change/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/static/no-change/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / diff --git a/webpack.config.js b/webpack.config.js index 8af85f7..3892fd6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -100,6 +100,16 @@ module.exports = { }, }, }, + { + test: /no-change.*(html|txt)$/i, + use: { + loader: 'file-loader', + query: { + outputPath: '/', + name: '[name].[ext]', + }, + }, + }, { test: /\.(svg)$/, use: {