From ab5b1e08c48cba8e4a6b1bb3c9756b9646a6ff0d Mon Sep 17 00:00:00 2001 From: Graphictoria Date: Fri, 15 Apr 2022 16:06:26 -0400 Subject: [PATCH] 404 page, home page --- web/app/View/Components/Card.php | 30 ++++++++++++++++ web/app/View/Components/SocialCard.php | 34 +++++++++++++++++++ web/resources/sass/Graphictoria.scss | 1 - web/resources/views/components/card.blade.php | 8 +++++ .../views/components/social-card.blade.php | 6 ++++ web/resources/views/errors/403.blade.php | 5 +++ web/resources/views/errors/404.blade.php | 21 ++++++++++++ web/resources/views/home.blade.php | 23 ++++++++++++- web/routes/web.php | 10 ++++-- 9 files changed, 133 insertions(+), 5 deletions(-) create mode 100644 web/app/View/Components/Card.php create mode 100644 web/app/View/Components/SocialCard.php create mode 100644 web/resources/views/components/card.blade.php create mode 100644 web/resources/views/components/social-card.blade.php create mode 100644 web/resources/views/errors/403.blade.php create mode 100644 web/resources/views/errors/404.blade.php diff --git a/web/app/View/Components/Card.php b/web/app/View/Components/Card.php new file mode 100644 index 0000000..c7ffb7c --- /dev/null +++ b/web/app/View/Components/Card.php @@ -0,0 +1,30 @@ +title = $title; + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|\Closure|string + */ + public function render() + { + return view('components.card'); + } +} diff --git a/web/app/View/Components/SocialCard.php b/web/app/View/Components/SocialCard.php new file mode 100644 index 0000000..02dcd3d --- /dev/null +++ b/web/app/View/Components/SocialCard.php @@ -0,0 +1,34 @@ +title = $title; + $this->description = $description; + $this->link = $link; + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|\Closure|string + */ + public function render() + { + return view('components.social-card'); + } +} diff --git a/web/resources/sass/Graphictoria.scss b/web/resources/sass/Graphictoria.scss index c2f973f..6d56206 100644 --- a/web/resources/sass/Graphictoria.scss +++ b/web/resources/sass/Graphictoria.scss @@ -183,7 +183,6 @@ html { background-position: center; min-height: calc(100vh - 63px); display: flex; - margin-top: -16px; } .graphictoria-nojs { diff --git a/web/resources/views/components/card.blade.php b/web/resources/views/components/card.blade.php new file mode 100644 index 0000000..30a011f --- /dev/null +++ b/web/resources/views/components/card.blade.php @@ -0,0 +1,8 @@ +
+
+
{{ $title }}
+
+

{{ $body }}

+ {{ $footer }} +
+
\ No newline at end of file diff --git a/web/resources/views/components/social-card.blade.php b/web/resources/views/components/social-card.blade.php new file mode 100644 index 0000000..1d344fc --- /dev/null +++ b/web/resources/views/components/social-card.blade.php @@ -0,0 +1,6 @@ +
+ +

{{ $title }}

+

{{ $description }}

+ View ยป +
\ No newline at end of file diff --git a/web/resources/views/errors/403.blade.php b/web/resources/views/errors/403.blade.php new file mode 100644 index 0000000..a7f81b1 --- /dev/null +++ b/web/resources/views/errors/403.blade.php @@ -0,0 +1,5 @@ +@extends('layouts.app') + +@section('content') +

abcd

+@endsection diff --git a/web/resources/views/errors/404.blade.php b/web/resources/views/errors/404.blade.php new file mode 100644 index 0000000..8acf60a --- /dev/null +++ b/web/resources/views/errors/404.blade.php @@ -0,0 +1,21 @@ +@php +$errorTitles = ['OH NOES!!!', 'BZZT', 'ERROR', 'UH OH.']; +@endphp + +@extends('layouts.app') + +@section('content') +
+ + + We've looked far and wide and weren't able to find the page you were looking for. If you believe this is an error, contact us at support@gtoria.net! + + +
+ Home + Back +
+
+
+
+@endsection diff --git a/web/resources/views/home.blade.php b/web/resources/views/home.blade.php index a7f81b1..7a41378 100644 --- a/web/resources/views/home.blade.php +++ b/web/resources/views/home.blade.php @@ -1,5 +1,26 @@ @extends('layouts.app') @section('content') -

abcd

+
+
+
+

Graphictoria

+
Graphictoria aims to revive the classic Roblox experience. Join 8k+ other users and relive your childhood!
+

* Graphictoria is not affiliated with, endorsed by, or sponsored by Roblox Corporation.

+
+ 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.

+
+
+

Social Links

+
+ + + +
+
@endsection diff --git a/web/routes/web.php b/web/routes/web.php index ea60956..d8bf2f4 100644 --- a/web/routes/web.php +++ b/web/routes/web.php @@ -1,8 +1,6 @@ view('errors.404', [], 404); +}); \ No newline at end of file