From 661e0754a77c8fe8f6809627847e9607d79d6236 Mon Sep 17 00:00:00 2001 From: KiraLT Date: Sat, 11 Nov 2023 01:16:48 +0200 Subject: [PATCH] Add fallback files and update button style in NotFound component --- .gitignore | 2 + src/app/_offline/page.tsx | 161 ++++++++++++++++++++++++++++++++++++++ src/app/not-found.tsx | 2 +- 3 files changed, 164 insertions(+), 1 deletion(-) create mode 100644 src/app/_offline/page.tsx diff --git a/.gitignore b/.gitignore index 6b2d923..198c877 100755 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,5 @@ public/sw.js public/sw.js.map public/workbox-*.js public/workbox-*.js.map +public/fallback-*.js +public/fallback-*.js.map \ No newline at end of file diff --git a/src/app/_offline/page.tsx b/src/app/_offline/page.tsx new file mode 100644 index 0000000..5116867 --- /dev/null +++ b/src/app/_offline/page.tsx @@ -0,0 +1,161 @@ +'use client' + +export default function Offline() { + return ( +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ {'You aren\'t connected to a working internet connection'} +

+ +
+
+ ) +} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index ee316f8..85e24a5 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -169,7 +169,7 @@ export default function NotFound() {