aboutsummaryrefslogtreecommitdiff
path: root/resources/views/components/errors
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-09-08 23:19:40 +0100
committerGitHub <noreply@github.com>2023-09-08 23:19:40 +0100
commit26901f82220fe18c0ad6e2bfc23c59b451a4e198 (patch)
treeb199f4d6680b8b62869e5062768e519db846511d /resources/views/components/errors
parent5d148485408bb169cba60c9a82d188442630d233 (diff)
feat: add error handling (#14)
* Remove commented out crap * Update theme to use some colors from catppuccin, add error handling for API/DB
Diffstat (limited to 'resources/views/components/errors')
-rw-r--r--resources/views/components/errors/api-error.blade.php4
-rw-r--r--resources/views/components/errors/db-error.blade.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/resources/views/components/errors/api-error.blade.php b/resources/views/components/errors/api-error.blade.php
new file mode 100644
index 0000000..1d4609a
--- /dev/null
+++ b/resources/views/components/errors/api-error.blade.php
@@ -0,0 +1,4 @@
+<div class="error-box">
+ <p><b>API Error:</b> There was an error connecting to the API.</p>
+ <p>If this error persists, please notify me via <a href="mailto:webmaster@diskfloppy.me">e-mail</a>.</p>
+</div>
diff --git a/resources/views/components/errors/db-error.blade.php b/resources/views/components/errors/db-error.blade.php
new file mode 100644
index 0000000..45f6157
--- /dev/null
+++ b/resources/views/components/errors/db-error.blade.php
@@ -0,0 +1,4 @@
+<div class="error-box">
+ <p><b>DB Error:</b> There was an error connecting to the database.</p>
+ <p>If this error persists, please notify me via <a href="mailto:webmaster@diskfloppy.me">e-mail</a>.</p>
+</div>