diff --git a/web/app/Exceptions/Handler.php b/web/app/Exceptions/Handler.php index 63f0dc3..9de6cdd 100644 --- a/web/app/Exceptions/Handler.php +++ b/web/app/Exceptions/Handler.php @@ -36,7 +36,11 @@ class Handler extends ExceptionHandler public function register() { $this->renderable(function (NotFoundHttpException $e, $request) { - return response()->view('main', [], 404); + return response()->view('errors.404', [], 404); + }); + + $this->renderable(function (\ErrorException $e, $request) { + return response()->view('errors.500', ['stack' => $e->getTraceAsString()], 500); }); } } diff --git a/web/public/images/backgrounds/About.png b/web/public/images/backgrounds/About.png new file mode 100644 index 0000000..793b841 Binary files /dev/null and b/web/public/images/backgrounds/About.png differ diff --git a/web/resources/sass/Graphictoria.scss b/web/resources/sass/Graphictoria.scss index 6d56206..2eb1620 100644 --- a/web/resources/sass/Graphictoria.scss +++ b/web/resources/sass/Graphictoria.scss @@ -185,6 +185,24 @@ html { display: flex; } +.graphictoria-home-about { + background-image: url("/Images/Backgrounds/About.png"); + background-size: cover; + background-repeat: no-repeat; + background-position: center; + min-height: 500px; +} + +.graphictoria-home-about-card { + color: #fff; + background: #000000ad; + border-radius: 5px; + padding: 20px; + max-width: 600px; + border: solid tint-color(#000000ad, 10%); + border-width: 0 0 2px; +} + .graphictoria-nojs { background-image: url("/Images/Backgrounds/NoJs.png"); background-size: cover; diff --git a/web/resources/views/errors/403.blade.php b/web/resources/views/errors/403.blade.php deleted file mode 100644 index a7f81b1..0000000 --- a/web/resources/views/errors/403.blade.php +++ /dev/null @@ -1,5 +0,0 @@ -@extends('layouts.app') - -@section('content') -

abcd

-@endsection diff --git a/web/resources/views/errors/500.blade.php b/web/resources/views/errors/500.blade.php new file mode 100644 index 0000000..516ca19 --- /dev/null +++ b/web/resources/views/errors/500.blade.php @@ -0,0 +1,26 @@ +@extends('layouts.app') + +@section('content') +
+ + + 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 support@gtoria.net. + @env(['production', 'staging']) + @if(isset($stack)) +
+ + STACK TRACE
{{ str_repeat('-', 15) }}
{{ $stack }} +
+
+ @endif + @endenv +
+ +
+ Home + Back +
+
+
+
+@endsection diff --git a/web/resources/views/home.blade.php b/web/resources/views/home.blade.php index 7a41378..8f5c95b 100644 --- a/web/resources/views/home.blade.php +++ b/web/resources/views/home.blade.php @@ -11,11 +11,15 @@ Create your account -
-

So what is Graphictoria?

-

Ever wanted to experience or revisit classic Roblox? Graphictoria provides the platform for everyone to relive the classic Roblox experience.

+
+
+
+

So what is Graphictoria?

+

Ever wanted to experience or revisit classic Roblox? Graphictoria provides the platform for anyone and everyone looking to relive the classic Roblox experience. Play with friends in an immersive 3D environment, or create your own game. Your imagination is the only limit.

+
+
-
+

Social Links

diff --git a/web/routes/web.php b/web/routes/web.php index d8bf2f4..678c23b 100644 --- a/web/routes/web.php +++ b/web/routes/web.php @@ -17,10 +17,4 @@ use Illuminate\Support\Facades\Route; Route::view('/', 'home'); // misc -Route::view('/javascript', 'javascript'); - -// fallback -Route::fallback(function(){ - return response() - ->view('errors.404', [], 404); -}); \ No newline at end of file +Route::view('/javascript', 'javascript'); \ No newline at end of file