Error pages.

This commit is contained in:
Graphictoria 2022-05-06 21:19:28 -04:00
parent f8407994cc
commit 80eb66fb86
5 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,19 @@
@extends('layouts.app')
@section('title', 'Bad Request')
@section('content')
<div class="container graphictoria-center-vh">
<x-card title="BAD REQUEST">
<x-slot name="body">
There was a problem with your request. If you believe this is an error on our part, contact us at <a href="mailto:support@gtoria.net" class="fw-bold text-decoration-none">support@gtoria.net</a>!
</x-slot>
<x-slot name="footer">
<div class="mt-2">
<a class="btn btn-primary px-4 me-2" href="{{ url('/') }}">Home</a>
<a class="btn btn-secondary px-4" onclick="history.back();return false;">Back</a>
</div>
</x-slot>
</x-card>
</div>
@endsection

View File

@ -0,0 +1,19 @@
@extends('layouts.app')
@section('title', 'Unauthorized')
@section('content')
<div class="container graphictoria-center-vh">
<x-card title="UNAUTHORIZED">
<x-slot name="body">
You're missing the proper authentication to view this page. If you believe this is an error, contact us at <a href="mailto:support@gtoria.net" class="fw-bold text-decoration-none">support@gtoria.net</a>!
</x-slot>
<x-slot name="footer">
<div class="mt-2">
<a class="btn btn-primary px-4 me-2" href="{{ url('/') }}">Home</a>
<a class="btn btn-secondary px-4" onclick="history.back();return false;">Back</a>
</div>
</x-slot>
</x-card>
</div>
@endsection

View File

@ -0,0 +1,19 @@
@extends('layouts.app')
@section('title', 'Forbidden')
@section('content')
<div class="container graphictoria-center-vh">
<x-card title="FORBIDDEN">
<x-slot name="body">
You don't have permission to view this page. If you believe this is an error, contact us at <a href="mailto:support@gtoria.net" class="fw-bold text-decoration-none">support@gtoria.net</a>!
</x-slot>
<x-slot name="footer">
<div class="mt-2">
<a class="btn btn-primary px-4 me-2" href="{{ url('/') }}">Home</a>
<a class="btn btn-secondary px-4" onclick="history.back();return false;">Back</a>
</div>
</x-slot>
</x-card>
</div>
@endsection

View File

@ -0,0 +1,23 @@
@php
$errorTitles = ['OH NOES!!!', 'BZZT', 'ERROR', 'UH OH.'];
@endphp
@extends('layouts.app')
@section('title', 'Not Found')
@section('content')
<div class="container graphictoria-center-vh">
<x-card title="{{ $errorTitles[array_rand($errorTitles)] }}">
<x-slot name="body">
We've looked far and wide and weren't able to find the page you were looking for. If you believe this is an error, contact us at <a href="mailto:support@gtoria.net" class="fw-bold text-decoration-none">support@gtoria.net</a>!
</x-slot>
<x-slot name="footer">
<div class="mt-2">
<a class="btn btn-primary px-4 me-2" href="{{ url('/') }}">Home</a>
<a class="btn btn-secondary px-4" onclick="history.back();return false;">Back</a>
</div>
</x-slot>
</x-card>
</div>
@endsection

View File

@ -0,0 +1,19 @@
@extends('layouts.app')
@section('title', 'Internal Server Error')
@section('content')
<div class="container graphictoria-center-vh">
<x-card title="INTERNAL SERVER ERROR">
<x-slot name="body">
Oops, we ran into an issue while trying to process your request, please try again later in a few minutes. If the issue persists after a few minutes, please contact us at <a href="mailto:support@gtoria.net" class="fw-bold text-decoration-none">support@gtoria.net</a>.
</x-slot>
<x-slot name="footer">
<div class="mt-2">
<a class="btn btn-primary px-4 me-2" href="{{ url('/') }}">Home</a>
<a class="btn btn-secondary px-4" onclick="history.back();return false;">Back</a>
</div>
</x-slot>
</x-card>
</div>
@endsection