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 routes/web.php +10 −21 Changes for routes/web.php: 10 added lines, 21 removed lines. Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ use App\Http\Controllers\DivingSignUpController; use App\Http\Controllers\DiveSessionCreation; use App\Http\Controllers\DiveSessionUpdate; use App\Http\Controllers\DiveSessionDelete; use App\Http\Controllers\AuthController; use Illuminate\Support\Facades\Route; Loading @@ -29,6 +28,13 @@ use App\Models\Boat; use App\Models\Prerogative; Route::get('/error', function () { $message = 'test'; return view('error-page' , [ 'message' => $message ]); }); Route::get('/login', function () { return view('login', ['wrongPassword' => false]); Loading Loading @@ -66,19 +72,14 @@ Route::middleware('App\Http\Middleware\rightChecker') ->get('/create/dive', function() { return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all()]); return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all(), 'users' => User::all()]); })->name('create_dive'); Route::middleware('App\Http\Middleware\rightChecker') ->post('/create/dive', function(Request $request) { $pre = DiveSessionCreation::add($request); $previousDives = session('previousDives', []); session(['previousDives' => $previousDives]); return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all(), 'precedent' => $pre, 'previousDives' => $previousDives]); return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all(), 'users' => User::all(), 'precedent' => $pre]); }); Route::get('/tewst2', function(){ Loading @@ -90,7 +91,7 @@ return view('update_dive', ['dive' => DivingSession::find($id), 'locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(4), 'levels' => Prerogative::all(), 'users' => User::all()]); }); Loading @@ -105,18 +106,6 @@ return redirect('/'); }); Route::post('/dive/delete/{id}', function ($id, Request $request) { DiveSessionDelete::update($id); $previousDives = session('previousDives', []); $previousDives = array_filter($previousDives, function ($dive) use ($id) { return $dive['id'] != $id; }); session(['previousDives' => $previousDives]); return redirect('/create/dive'); }); Route::get('/sessions', [DiversBySession::class,'getAllSessions']); Route::get('/session/{ds_code}', [DiversBySession::class,'getDiversBySession']); Loading 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
routes/web.php +10 −21 Changes for routes/web.php: 10 added lines, 21 removed lines. Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ use App\Http\Controllers\DivingSignUpController; use App\Http\Controllers\DiveSessionCreation; use App\Http\Controllers\DiveSessionUpdate; use App\Http\Controllers\DiveSessionDelete; use App\Http\Controllers\AuthController; use Illuminate\Support\Facades\Route; Loading @@ -29,6 +28,13 @@ use App\Models\Boat; use App\Models\Prerogative; Route::get('/error', function () { $message = 'test'; return view('error-page' , [ 'message' => $message ]); }); Route::get('/login', function () { return view('login', ['wrongPassword' => false]); Loading Loading @@ -66,19 +72,14 @@ Route::middleware('App\Http\Middleware\rightChecker') ->get('/create/dive', function() { return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all()]); return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all(), 'users' => User::all()]); })->name('create_dive'); Route::middleware('App\Http\Middleware\rightChecker') ->post('/create/dive', function(Request $request) { $pre = DiveSessionCreation::add($request); $previousDives = session('previousDives', []); session(['previousDives' => $previousDives]); return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all(), 'precedent' => $pre, 'previousDives' => $previousDives]); return view('create_dive', ['locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all(), 'users' => User::all(), 'precedent' => $pre]); }); Route::get('/tewst2', function(){ Loading @@ -90,7 +91,7 @@ return view('update_dive', ['dive' => DivingSession::find($id), 'locations' => DivingLocation::all(), 'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(4), 'levels' => Prerogative::all(), 'users' => User::all()]); }); Loading @@ -105,18 +106,6 @@ return redirect('/'); }); Route::post('/dive/delete/{id}', function ($id, Request $request) { DiveSessionDelete::update($id); $previousDives = session('previousDives', []); $previousDives = array_filter($previousDives, function ($dive) use ($id) { return $dive['id'] != $id; }); session(['previousDives' => $previousDives]); return redirect('/create/dive'); }); Route::get('/sessions', [DiversBySession::class,'getAllSessions']); Route::get('/session/{ds_code}', [DiversBySession::class,'getDiversBySession']); Loading