Loading app/Exceptions/Handler.php +5 Changes for app/Exceptions/Handler.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace App\Exceptions; use Illuminate\Database\QueryException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Http\Request; use Illuminate\Http\Response; Loading Loading @@ -37,6 +38,10 @@ class Handler extends ExceptionHandler */ public function register() { $this->renderable(function(QueryException $queryException, Request $request){ if ($queryException->getCode()==45000) return response()->view('erreur-page',['message'=>$queryException->getMessage()]); }); $this->reportable(function (Throwable $e) { // }); Loading public/css/error.css +54 Changes for public/css/error.css: 54 added lines, 0 removed lines. Original line number Diff line number Diff line html{ background-image: url("/images/error.jpg"); background-repeat: no-repeat; background-size: cover; } .center-box{ padding: 30px; background-color: rgba(0, 0, 0, 0.22); width: 60vw; height: auto; border-radius: 30px; margin: auto; margin-top: 7em ; display: block; text-align: center; backdrop-filter: blur(5px); } h1{ font-family: 'Space Grotesk', sans-serif; font-size: 55px; color: white; font-weight: bold; } p{ font-family: 'Montserrat', sans-serif; margin-top: 30px; font-size: 30px; color: white; } @media only screen and (max-width: 768px) { /* For mobile phones: */ .center-box{ padding: 30px; background-color: rgba(255, 255, 255, 0.22); width: 75vw; height: auto; border-radius: 30px; margin: auto; margin-top: 7em ; display: block; text-align: center; backdrop-filter: blur(5px); } h1{ font-size: 50px; } } No newline at end of file public/css/homepage.css −4 Changes for public/css/homepage.css: 0 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -6,10 +6,6 @@ html{ background-image: url("/images/background-homepage.jpg"); } .background-image{ filter: blur(5px); } .center-box{ padding: 30px; background-color: rgba(255, 255, 255, 0.22); Loading public/images/error.jpg +186 KiB Loading image diff... resources/views/error-page.blade.php +11 Changes for resources/views/error-page.blade.php: 11 added lines, 0 removed lines. Original line number Diff line number Diff line <x-layout> <link rel="stylesheet" href="/css/error.css"> <div class="center-box"> <h1>OUPS! UNE ERREUR EST SURVENUE</h1> <p> {{$message}} </p> </div> </x-layout> No newline at end of file Loading
app/Exceptions/Handler.php +5 Changes for app/Exceptions/Handler.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace App\Exceptions; use Illuminate\Database\QueryException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; use Illuminate\Http\Request; use Illuminate\Http\Response; Loading Loading @@ -37,6 +38,10 @@ class Handler extends ExceptionHandler */ public function register() { $this->renderable(function(QueryException $queryException, Request $request){ if ($queryException->getCode()==45000) return response()->view('erreur-page',['message'=>$queryException->getMessage()]); }); $this->reportable(function (Throwable $e) { // }); Loading
public/css/error.css +54 Changes for public/css/error.css: 54 added lines, 0 removed lines. Original line number Diff line number Diff line html{ background-image: url("/images/error.jpg"); background-repeat: no-repeat; background-size: cover; } .center-box{ padding: 30px; background-color: rgba(0, 0, 0, 0.22); width: 60vw; height: auto; border-radius: 30px; margin: auto; margin-top: 7em ; display: block; text-align: center; backdrop-filter: blur(5px); } h1{ font-family: 'Space Grotesk', sans-serif; font-size: 55px; color: white; font-weight: bold; } p{ font-family: 'Montserrat', sans-serif; margin-top: 30px; font-size: 30px; color: white; } @media only screen and (max-width: 768px) { /* For mobile phones: */ .center-box{ padding: 30px; background-color: rgba(255, 255, 255, 0.22); width: 75vw; height: auto; border-radius: 30px; margin: auto; margin-top: 7em ; display: block; text-align: center; backdrop-filter: blur(5px); } h1{ font-size: 50px; } } No newline at end of file
public/css/homepage.css −4 Changes for public/css/homepage.css: 0 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -6,10 +6,6 @@ html{ background-image: url("/images/background-homepage.jpg"); } .background-image{ filter: blur(5px); } .center-box{ padding: 30px; background-color: rgba(255, 255, 255, 0.22); Loading
resources/views/error-page.blade.php +11 Changes for resources/views/error-page.blade.php: 11 added lines, 0 removed lines. Original line number Diff line number Diff line <x-layout> <link rel="stylesheet" href="/css/error.css"> <div class="center-box"> <h1>OUPS! UNE ERREUR EST SURVENUE</h1> <p> {{$message}} </p> </div> </x-layout> No newline at end of file