custom error pages

pull/26/head
Ondřej Hruška 6 years ago
parent 0164682258
commit aaf2a97627
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 5
      resources/views/errors/404.blade.php
  2. 9
      resources/views/errors/419.blade.php
  3. 5
      resources/views/errors/429.blade.php
  4. 5
      resources/views/errors/500.blade.php
  5. 5
      resources/views/errors/503.blade.php
  6. 57
      resources/views/errors/layout.blade.php

@ -0,0 +1,5 @@
@extends('errors::layout')
@section('title', 'Page Not Found')
@section('message', 'Page not found')

@ -0,0 +1,9 @@
@extends('errors::layout')
@section('title', 'Page Expired')
@section('message')
The page has expired due to inactivity.
<br/><br/>
Please refresh and try again.
@stop

@ -0,0 +1,5 @@
@extends('errors::layout')
@section('title', 'Error')
@section('message', 'Too many requests.')

@ -0,0 +1,5 @@
@extends('errors::layout')
@section('title', 'Error')
@section('message', 'Server error')

@ -0,0 +1,5 @@
@extends('errors::layout')
@section('title', 'Service Unavailable')
@section('message', 'Service unavailable')

@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>@yield('title')</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Raleway', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.content {
text-align: center;
}
.title {
font-size: 36px;
padding: 20px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
<div class="content">
<div class="title">
@yield('message')
</div>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save