From 725712aa35a989f1c2f179e210b8fa1c310e39e9 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Fri, 12 Jan 2024 18:57:10 +0000 Subject: Add custom error pages, pixel images, etc (also improve computers) --- resources/views/errors/401.blade.php | 5 ++ resources/views/errors/402.blade.php | 5 ++ resources/views/errors/403.blade.php | 5 ++ resources/views/errors/404.blade.php | 30 +++++++ resources/views/errors/418.blade.php | 5 ++ resources/views/errors/419.blade.php | 5 ++ resources/views/errors/429.blade.php | 5 ++ resources/views/errors/500.blade.php | 5 ++ resources/views/errors/503.blade.php | 5 ++ resources/views/errors/layout.blade.php | 53 ++++++++++++ resources/views/errors/minimal.blade.php | 21 +++++ resources/views/includes/footer.blade.php | 16 ++-- resources/views/includes/header.blade.php | 18 ++-- resources/views/pages/computers.blade.php | 132 +++++++++++++++++++++++++++++- resources/views/pages/home.blade.php | 1 + 15 files changed, 292 insertions(+), 19 deletions(-) create mode 100644 resources/views/errors/401.blade.php create mode 100644 resources/views/errors/402.blade.php create mode 100644 resources/views/errors/403.blade.php create mode 100644 resources/views/errors/404.blade.php create mode 100644 resources/views/errors/418.blade.php create mode 100644 resources/views/errors/419.blade.php create mode 100644 resources/views/errors/429.blade.php create mode 100644 resources/views/errors/500.blade.php create mode 100644 resources/views/errors/503.blade.php create mode 100644 resources/views/errors/layout.blade.php create mode 100644 resources/views/errors/minimal.blade.php (limited to 'resources/views') diff --git a/resources/views/errors/401.blade.php b/resources/views/errors/401.blade.php new file mode 100644 index 0000000..5c586db --- /dev/null +++ b/resources/views/errors/401.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Unauthorized')) +@section('code', '401') +@section('message', __('Unauthorized')) diff --git a/resources/views/errors/402.blade.php b/resources/views/errors/402.blade.php new file mode 100644 index 0000000..3bc23ef --- /dev/null +++ b/resources/views/errors/402.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Payment Required')) +@section('code', '402') +@section('message', __('Payment Required')) diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php new file mode 100644 index 0000000..a5506f0 --- /dev/null +++ b/resources/views/errors/403.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Forbidden')) +@section('code', '403') +@section('message', __($exception->getMessage() ?: 'Forbidden')) diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php new file mode 100644 index 0000000..79ca498 --- /dev/null +++ b/resources/views/errors/404.blade.php @@ -0,0 +1,30 @@ +@extends('errors::minimal') +@php +abort(503) +@endphp +@section('content') + +

Error 404 | Page not found!

+
+

The page /{{ Request::path() }}/ doesn't exist! Did you mean...

+ +

Still haven't found what you were looking for or believe this is a server error? Contact the webmaster!

+
+

Diagnostic Info

+
+ + Server:  {{ gethostname() }}
+ Your IP: {{ Request::ip() }}
+ Epoch:   {{ now()->timestamp }}
+ Agent:   Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
+
+
+

© floppydisk 2021-2024

+@endsection diff --git a/resources/views/errors/418.blade.php b/resources/views/errors/418.blade.php new file mode 100644 index 0000000..412ea92 --- /dev/null +++ b/resources/views/errors/418.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('I\'m a teapot')) +@section('code', '418') +@section('message', __('I\'m a teapot')) diff --git a/resources/views/errors/419.blade.php b/resources/views/errors/419.blade.php new file mode 100644 index 0000000..c09216e --- /dev/null +++ b/resources/views/errors/419.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Page Expired')) +@section('code', '419') +@section('message', __('Page Expired')) diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php new file mode 100644 index 0000000..f01b07b --- /dev/null +++ b/resources/views/errors/429.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Too Many Requests')) +@section('code', '429') +@section('message', __('Too Many Requests')) diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php new file mode 100644 index 0000000..d9e95d9 --- /dev/null +++ b/resources/views/errors/500.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Server Error')) +@section('code', '500') +@section('message', __('Server Error')) diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php new file mode 100644 index 0000000..c5a9dde --- /dev/null +++ b/resources/views/errors/503.blade.php @@ -0,0 +1,5 @@ +@extends('errors::minimal') + +@section('title', __('Service Unavailable')) +@section('code', '503') +@section('message', __('Service Unavailable')) diff --git a/resources/views/errors/layout.blade.php b/resources/views/errors/layout.blade.php new file mode 100644 index 0000000..019c2cd --- /dev/null +++ b/resources/views/errors/layout.blade.php @@ -0,0 +1,53 @@ + + + + + + + @yield('title') + + + + + +
+
+
+ @yield('message') +
+
+
+ + diff --git a/resources/views/errors/minimal.blade.php b/resources/views/errors/minimal.blade.php new file mode 100644 index 0000000..e15c833 --- /dev/null +++ b/resources/views/errors/minimal.blade.php @@ -0,0 +1,21 @@ +@extends('layouts.minimal') +@section('content') +

Error @yield('code') | @yield('message')

+
+

Here, have a cat...

+

+

If you believe this is a server error, contact the webmaster

+
+

Diagnostic Info

+
+ + Server:  {{ gethostname() }}
+ Your IP: {{ Request::ip() }}
+ Root:    {!! url('') !!}
+ Path:    /{{ Request::path() }}/
+ Epoch:   {{ now()->timestamp }}
+ Agent:   Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0
+
+
+

© floppydisk 2021-2024

+@endsection diff --git a/resources/views/includes/footer.blade.php b/resources/views/includes/footer.blade.php index 7f5b5d3..63bf17d 100644 --- a/resources/views/includes/footer.blade.php +++ b/resources/views/includes/footer.blade.php @@ -1,28 +1,28 @@