From 4cd8485a554cb98b499e3a78be98220afeb14a36 Mon Sep 17 00:00:00 2001 From: Rico van Zelst Date: Sun, 14 Apr 2024 14:02:20 +0200 Subject: [PATCH] feat: Add custom error pages fixes #189 https://github.com/rico-vz/HeimerdingerLoL/issues/189 - Created custom error pages with specific messages and designs for HTTP status codes. - Each page includes a title, description, appropriate message content, and a link to return to the homepage. --- resources/views/errors/401.blade.php | 16 ++++++++++++++++ resources/views/errors/402.blade.php | 16 ++++++++++++++++ resources/views/errors/403.blade.php | 16 ++++++++++++++++ resources/views/errors/404.blade.php | 16 ++++++++++++++++ resources/views/errors/419.blade.php | 16 ++++++++++++++++ resources/views/errors/429.blade.php | 16 ++++++++++++++++ resources/views/errors/4xx.blade.php | 16 ++++++++++++++++ resources/views/errors/500.blade.php | 16 ++++++++++++++++ resources/views/errors/503.blade.php | 16 ++++++++++++++++ resources/views/errors/5xx.blade.php | 16 ++++++++++++++++ 10 files changed, 160 insertions(+) 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/419.blade.php create mode 100644 resources/views/errors/429.blade.php create mode 100644 resources/views/errors/4xx.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/5xx.blade.php diff --git a/resources/views/errors/401.blade.php b/resources/views/errors/401.blade.php new file mode 100644 index 0000000..3dfd963 --- /dev/null +++ b/resources/views/errors/401.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger • 401 Unauthorized') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

401

+

Unauthorized

+

You are not authorized to view this page.

+ Go back to the homepage +
+
+@endsection diff --git a/resources/views/errors/402.blade.php b/resources/views/errors/402.blade.php new file mode 100644 index 0000000..8e6c35f --- /dev/null +++ b/resources/views/errors/402.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger • 402 Payment Required') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

402

+

Payment Required

+

You need to make a payment to view this page.

+ Go back to the homepage +
+
+@endsection diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php new file mode 100644 index 0000000..0815b7c --- /dev/null +++ b/resources/views/errors/403.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger • 403 Forbidden') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

403

+

Forbidden

+

You are not allowed to view this page.

+ Go back to the homepage +
+
+@endsection diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php new file mode 100644 index 0000000..447c49d --- /dev/null +++ b/resources/views/errors/404.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger • 404 Not Found') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

404

+

Page Not Found

+

The page you are looking for does not exist.

+ Go back to the homepage +
+
+@endsection diff --git a/resources/views/errors/419.blade.php b/resources/views/errors/419.blade.php new file mode 100644 index 0000000..91704dd --- /dev/null +++ b/resources/views/errors/419.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger • 419 Expired') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

419

+

Expired

+

The page you are looking for has expired.

+ Go back to the homepage +
+
+@endsection diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php new file mode 100644 index 0000000..8d03d11 --- /dev/null +++ b/resources/views/errors/429.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger • 429 Limited') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

403

+

Rate Limited

+

You have been rate limited. Please try again later.

+ Go back to the homepage +
+
+@endsection diff --git a/resources/views/errors/4xx.blade.php b/resources/views/errors/4xx.blade.php new file mode 100644 index 0000000..4f89a86 --- /dev/null +++ b/resources/views/errors/4xx.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

{{ $exception->getStatusCode() }}

+

{{ $exception->getMessage() }}

+ Go back to the + homepage +
+
+@endsection diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php new file mode 100644 index 0000000..8c39e30 --- /dev/null +++ b/resources/views/errors/500.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger • 500') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

500

+

Internal Server Error

+

An unexpected error occurred on the server.

+ Go back to the homepage +
+
+@endsection diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php new file mode 100644 index 0000000..afc3417 --- /dev/null +++ b/resources/views/errors/503.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger • 503 Unavailable') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

503

+

Unavailable

+

The page you are looking for is unavailable.

+ Go back to the homepage +
+
+@endsection diff --git a/resources/views/errors/5xx.blade.php b/resources/views/errors/5xx.blade.php new file mode 100644 index 0000000..4f89a86 --- /dev/null +++ b/resources/views/errors/5xx.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger') +@section('description', 'Explore League of Legends champions, skins, and game assets on Heimerdinger.') + +@section('content') + +
+
+

{{ $exception->getStatusCode() }}

+

{{ $exception->getMessage() }}

+ Go back to the + homepage +
+
+@endsection