From 71ce403b0ce9ead5d0f0bdc3f2eeca9a95bbf475 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 12 Aug 2025 19:03:55 +0200 Subject: [PATCH] Replace GIFs with WebP (#2416) * Rename maze.gif to maze.webp * Replace gif, mp4 with webp --- components/error-boundary.js | 2 +- pages/_error.js | 10 +++++----- pages/auth/error.js | 8 ++++---- pages/email.js | 5 +---- pages/offline.js | 2 +- public/cowboy-saloon.gif | Bin 6131030 -> 0 bytes public/cowboy-saloon.mp4 | Bin 1199243 -> 0 bytes public/cowboy-saloon.webp | Bin 0 -> 805938 bytes public/crying.gif | Bin 512908 -> 0 bytes public/crying.webp | Bin 0 -> 334318 bytes public/double.gif | Bin 645852 -> 0 bytes public/double.webp | Bin 0 -> 148276 bytes public/falling.gif | Bin 260629 -> 0 bytes public/falling.webp | Bin 0 -> 60310 bytes public/floating.gif | Bin 1008046 -> 0 bytes public/floating.webp | Bin 0 -> 413274 bytes public/forbidden.gif | Bin 657444 -> 0 bytes public/forbidden.webp | Bin 0 -> 226788 bytes public/{maze.gif => maze.webp} | Bin public/waiting.gif | Bin 309515 -> 0 bytes public/waiting.webp | Bin 0 -> 108556 bytes sw/build.js | 2 +- 22 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 public/cowboy-saloon.gif delete mode 100644 public/cowboy-saloon.mp4 create mode 100644 public/cowboy-saloon.webp delete mode 100644 public/crying.gif create mode 100644 public/crying.webp delete mode 100644 public/double.gif create mode 100644 public/double.webp delete mode 100644 public/falling.gif create mode 100644 public/falling.webp delete mode 100644 public/floating.gif create mode 100644 public/floating.webp delete mode 100644 public/forbidden.gif create mode 100644 public/forbidden.webp rename public/{maze.gif => maze.webp} (100%) delete mode 100644 public/waiting.gif create mode 100644 public/waiting.webp diff --git a/components/error-boundary.js b/components/error-boundary.js index 82ebf626..2f5bac16 100644 --- a/components/error-boundary.js +++ b/components/error-boundary.js @@ -44,7 +44,7 @@ class ErrorBoundary extends Component { const errorDetails = this.getErrorDetails() return ( - +

something went wrong

{this.state.error && }
diff --git a/pages/_error.js b/pages/_error.js index 02d52c23..0a10ae77 100644 --- a/pages/_error.js +++ b/pages/_error.js @@ -48,18 +48,18 @@ const statusDescribe = { function ErrorImage ({ statusCode }) { if (statusCode === 404) { - return + return } if (statusCode >= 500) { - return + return } if (statusCode >= 400) { - return + return } if (statusCode >= 300) { - return + return } - return + return } export default function Error ({ statusCode }) { diff --git a/pages/auth/error.js b/pages/auth/error.js index 5df283bf..258bb48a 100644 --- a/pages/auth/error.js +++ b/pages/auth/error.js @@ -18,14 +18,14 @@ export default function AuthError ({ error }) { if (error === 'AccessDenied') { return ( - +

ACCESS DENIED

) } else if (error === 'Verification') { return ( - +

Incorrect magic code