Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Refactor error pages

Andras Bacsaidcaa2f4168be
diff --git a/resources/views/errors/401.blade.php b/resources/views/errors/401.blade.php
index 46537d5786..aae21024b1 100644
--- a/resources/views/errors/401.blade.php
+++ b/resources/views/errors/401.blade.php
@@ -1,20 +1,18 @@
@extends('layouts.base')
-<div class="min-h-screen hero">
- <div class="text-center hero-content">
- <div class="">
- <p class="font-mono text-6xl font-semibold dark:text-warning">401</p>
- <h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
- <p class="mt-6 text-base leading-7 text-neutral-300">You don't have permission to access this page.
- </p>
- <div class="flex items-center justify-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
- </a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
- support
- <x-external-link />
- </a>
- </div>
+<div class="flex flex-col items-center justify-center h-full">
+ <div>
+ <p class="font-mono font-semibold text-7xl dark:text-warning">401</p>
+ <h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
+ <p class="text-base leading-7 text-neutral-300">You don't have permission to access this page.
+ </p>
+ <div class="flex items-center mt-10 gap-x-6">
+ <a href="/">
+ <x-forms.button>Go back home</x-forms.button>
+ </a>
+ <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ support
+ <x-external-link />
+ </a>
</div>
</div>
</div>
diff --git a/resources/views/errors/402.blade.php b/resources/views/errors/402.blade.php
index 3bc23efd2f..5c25e020bd 100644
--- a/resources/views/errors/402.blade.php
+++ b/resources/views/errors/402.blade.php
@@ -1,5 +1,17 @@
-@extends('errors::minimal')
+@extends('layouts.base')
-@section('title', __('Payment Required'))
-@section('code', '402')
-@section('message', __('Payment Required'))
+<div class="flex flex-col items-center justify-center h-full">
+ <div>
+ <p class="font-mono font-semibold text-7xl dark:text-warning">402</p>
+ <h1 class="mt-4 font-bold tracking-tight dark:text-white">Payment required.</h1>
+ <div class="flex items-center mt-10 gap-x-6">
+ <a href="/">
+ <x-forms.button>Go back home</x-forms.button>
+ </a>
+ <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ support
+ <x-external-link />
+ </a>
+ </div>
+ </div>
+</div>
diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php
index 5055869c80..ec274e0003 100644
--- a/resources/views/errors/403.blade.php
+++ b/resources/views/errors/403.blade.php
@@ -1,20 +1,18 @@
@extends('layouts.base')
-<div class="min-h-screen hero">
- <div class="text-center hero-content">
- <div class="">
- <p class="font-mono text-6xl font-semibold dark:text-warning">403</p>
- <h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
- <p class="mt-6 text-base leading-7 text-neutral-300">You don't have permission to access this page.
- </p>
- <div class="flex items-center justify-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
- </a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
- support
- <x-external-link />
- </a>
- </div>
+<div class="flex flex-col items-center justify-center h-full">
+ <div>
+ <p class="font-mono font-semibold text-7xl dark:text-warning">403</p>
+ <h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
+ <p class="text-base leading-7 text-neutral-300">You don't have permission to access this page.
+ </p>
+ <div class="flex items-center mt-10 gap-x-6">
+ <a href="/">
+ <x-forms.button>Go back home</x-forms.button>
+ </a>
+ <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ support
+ <x-external-link />
+ </a>
</div>
</div>
</div>
diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php
index 0972b4fc85..9104e1c710 100644
--- a/resources/views/errors/404.blade.php
+++ b/resources/views/errors/404.blade.php
@@ -1,21 +1,19 @@
@extends('layouts.base')
-<div class="min-h-screen hero">
- <div class="text-center hero-content">
- <div class="">
- <p class="font-mono text-6xl font-semibold dark:text-warning">404</p>
- <h1 class="mt-4 font-bold tracking-tight dark:text-white">How did you got here?</h1>
- <p class="mt-6 text-base leading-7 text-neutral-300">Sorry, we couldn’t find the page you’re looking
- for.
- </p>
- <div class="flex items-center justify-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
- </a>
- <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
- support
- <x-external-link />
- </a>
- </div>
+<div class="flex flex-col items-center justify-center h-full">
+ <div>
+ <p class="font-mono font-semibold text-7xl dark:text-warning">404</p>
+ <h1 class="mt-4 font-bold tracking-tight dark:text-white">How did you got here?</h1>
+ <p class="text-base leading-7 text-neutral-300">Sorry, we couldn’t find the page you’re looking
+ for.
+ </p>
+ <div class="flex items-center mt-10 gap-x-6">
+ <a href="/">
+ <x-forms.button>Go back home</x-forms.button>
+ </a>
+ <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ support
+ <x-external-link />
+ </a>
</div>
</div>
</div>
diff --git a/resources/views/errors/419.blade.php b/resources/views/errors/419.blade.php
index 9bfd96b3af..e24cee60d6 100644
--- a/resources/views/errors/419.blade.php
+++ b/resources/views/errors/419.blade.php
@@ -1,20 +1,19 @@
@extends('layouts.base')
-<div class="min-h-screen hero">
- <div class="text-center hero-content">
- <div class="">
- <p class="font-mono text-6xl font-semibold dark:text-warning">419</p>
- <h1 class="mt-4 font-bold tracking-tight dark:text-white">This page is definitely old, not like you!</h1>
- <p class="mt-6 text-base leading-7 text-neutral-300">Sorry, we couldn’t find the page you’re looking
- for.
- </p>
- <div class="flex items-center justify-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
- </a>
- <a href="{{ config('coolify.contact') }}" class="font-semibold dark:text-white ">Contact
- support
- <span aria-hidden="true">&rarr;</span></a>
- </div>
+<div class="flex flex-col items-center justify-center h-full">
+ <div>
+ <p class="font-mono font-semibold text-7xl dark:text-warning">419</p>
+ <h1 class="mt-4 font-bold tracking-tight dark:text-white">This page is definitely old, not like you!</h1>
+ <p class="text-base leading-7 text-neutral-300">Sorry, we couldn’t find the page you’re looking
+ for.
+ </p>
+ <div class="flex items-center mt-10 gap-x-6">
+ <a href="/">
+ <x-forms.button>Go back home</x-forms.button>
+ </a>
+ <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ support
+ <x-external-link />
+ </a>
</div>
</div>
</div>
diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php
index b02e834a37..13e04be6be 100644
--- a/resources/views/errors/429.blade.php
+++ b/resources/views/errors/429.blade.php
@@ -1,20 +1,19 @@
@extends('layouts.base')
-<div class="min-h-screen hero">
- <div class="text-center hero-content">
- <div class="">
- <p class="font-mono text-6xl font-semibold dark:text-warning">429</p>
- <h1 class="mt-4 font-bold tracking-tight dark:text-white">Woah, slow down there!</h1>
- <p class="mt-6 text-base leading-7 text-neutral-300">You're making too many requests. Please wait a few
- seconds before trying again.
- </p>
- <div class="flex items-center justify-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
- </a>
- <a href="{{ config('coolify.contact') }}" class="font-semibold dark:text-white ">Contact
- support
- <span aria-hidden="true">&rarr;</span></a>
- </div>
+<div class="flex flex-col items-center justify-center h-full">
+ <div>
+ <p class="font-mono font-semibold text-7xl dark:text-warning">429</p>
+ <h1 class="mt-4 font-bold tracking-tight dark:text-white">Woah, slow down there!</h1>
+ <p class="text-base leading-7 text-neutral-300">You're making too many requests. Please wait a few
+ seconds before trying again.
+ </p>
+ <div class="flex items-center mt-10 gap-x-6">
+ <a href="/">
+ <x-forms.button>Go back home</x-forms.button>
+ </a>
+ <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ support
+ <x-external-link />
+ </a>
</div>
</div>
</div>
diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php
index ab8ca42ddb..4c64d4f8d2 100644
--- a/resources/views/errors/500.blade.php
+++ b/resources/views/errors/500.blade.php
@@ -1,23 +1,22 @@
@extends('layouts.base')
-<div class="min-h-screen hero ">
- <div class="text-center hero-content">
- <div>
- <p class="font-mono text-6xl font-semibold dark:text-warning">500</p>
- <h1 class="mt-4 font-bold tracking-tight dark:text-white">Something is not okay, are you okay?</h1>
- <p class="mt-6 text-base leading-7 text-neutral-300">There has been an error, we are working on it.
- </p>
- @if ($exception->getMessage() !== '')
- <code class="mt-6 text-xs text-left text-red-500">Error: {{ $exception->getMessage() }}
- </code>
- @endif
- <div class="flex items-center justify-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
- </a>
- <a href="{{ config('coolify.contact') }}" class="font-semibold dark:text-white">Contact
- support
- <span aria-hidden="true">&rarr;</span></a>
- </div>
+<div class="flex flex-col items-center justify-center h-full">
+ <div>
+ <p class="font-mono font-semibold text-red-500 text-7xl">500</p>
+ <h1 class="mt-4 font-bold tracking-tight dark:text-white">Something is not okay, are you okay?</h1>
+ <p class="text-base leading-7 text-neutral-300">There has been an error, we are working on it.
+ </p>
+ @if ($exception->getMessage() !== '')
+ <code class="mt-6 text-xs text-left text-red-500">Error: {{ $exception->getMessage() }}
+ </code>
+ @endif
+ <div class="flex items-center mt-10 gap-x-6">
+ <a href="/">
+ <x-forms.button>Go back home</x-forms.button>
+ </a>
+ <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ support
+ <x-external-link />
+ </a>
</div>
</div>
</div>
diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php
index 74f0a80185..d3a15fb452 100644
--- a/resources/views/errors/503.blade.php
+++ b/resources/views/errors/503.blade.php
@@ -1,17 +1,16 @@
@extends('layouts.base')
-<div class="min-h-screen hero ">
- <div class="text-center hero-content">
- <div>
- <p class="font-mono text-6xl font-semibold dark:text-warning">503</p>
- <h1 class="mt-4 font-bold tracking-tight dark:text-white">We are working on serious things.</h1>
- <p class="mt-6 text-base leading-7 text-neutral-300">Service Unavailable. Be right back. Thanks for your
- patience.
- </p>
- <div class="flex items-center justify-center mt-10 gap-x-6">
- <a href="{{ config('coolify.contact') }}" class="font-semibold dark:text-white ">Contact
- support
- <span aria-hidden="true">&rarr;</span></a>
- </div>
+<div class="flex flex-col items-center justify-center h-full">
+ <div>
+ <p class="font-mono font-semibold text-7xl dark:text-warning">503</p>
+ <h1 class="mt-4 font-bold tracking-tight dark:text-white">We are working on serious things.</h1>
+ <p class="text-base leading-7 text-neutral-300">Service Unavailable. Be right back. Thanks for your
+ patience.
+ </p>
+ <div class="flex items-center mt-10 gap-x-6">
+ <a target="_blank" class="text-xs" href="{{ config('coolify.contact') }}">Contact
+ support
+ <x-external-link />
+ </a>
</div>
</div>
</div>