diff --git a/app/Http/Controllers/AuthController.php b/app/Http/Controllers/AuthController.php index d8c7ea5..26d9cd4 100644 --- a/app/Http/Controllers/AuthController.php +++ b/app/Http/Controllers/AuthController.php @@ -13,7 +13,7 @@ class AuthController extends Controller //$token = $request->session()->token(); //$token = csrf_token(); - return view('back.login', ["title" => "The Den Login"]); + return view('back.login', ["title" => "The Den"]); } public function memberAuth(Request $request): Response diff --git a/app/Http/Controllers/FrontIndexController.php b/app/Http/Controllers/FrontIndexController.php index fa0e169..470af0d 100644 --- a/app/Http/Controllers/FrontIndexController.php +++ b/app/Http/Controllers/FrontIndexController.php @@ -13,14 +13,38 @@ class FrontIndexController extends Controller { $locations = Location::where("active", true)->get(); $count = count($locations); - - $terms = "no|agenda"; + $terms = "no|agenda"; + $recent = Location::where("active", true) + ->limit(5)->orderByDesc('updated_at')->get(); //$result = DB::select("SELECT * FROM searchlocations('$terms')"); return view('front.index', [ - 'count' => $count, - 'title' => "The Bad Space" + 'count' => $count, + 'recent' => $recent, + 'title' => "The Bad Space" + ]); + } + + public function about() + { + return view('front.about', [ + 'title' => "ABOUT" + ]); + } + + public function location(string $uuid = "1") + { + $location = Location::where("uuid", $uuid)->first(); + $name = "NO LOCATION FOUND"; + if ($location) { + $name = $location->name; + } + return view('front.location', [ + 'title' => $name, + 'location' => $location, + 'images' => json_decode($location->images), + 'updated' => $location->updated_at->format('Y M d'), ]); } diff --git a/public/assets/css/front/index.css b/public/assets/css/front/index.css index 617ac2f..0f4f581 100644 --- a/public/assets/css/front/index.css +++ b/public/assets/css/front/index.css @@ -35,3 +35,7 @@ form.index-search-form > button { /* Chrome, Firefox, Opera, Safari 10.1+ */ color: var(--highlight); } + +section.index-meta article { + margin-top: 20px; +} diff --git a/public/assets/css/global/colors.css b/public/assets/css/global/colors.css index d8a815f..092c4a8 100644 --- a/public/assets/css/global/colors.css +++ b/public/assets/css/global/colors.css @@ -6,5 +6,6 @@ --white: #efebe3; --grey: #abb7b7; --black: #32302f; + --error: #b62520; --primary-rgb: 20 13 13; } diff --git a/public/assets/css/global/frame.css b/public/assets/css/global/frame.css index 5513e0c..f644082 100644 --- a/public/assets/css/global/frame.css +++ b/public/assets/css/global/frame.css @@ -2,7 +2,7 @@ html { width: 100%; height: 100%; overflow: hidden; - font: 400 1.2em/1.4em var(--base-type); + font: 400 1.6em/1.3em var(--base-type); } html body { @@ -71,20 +71,23 @@ header > div nav { right: 0; } -div.system-notice { - background: var(--highlight); - color: var(--primary); +div.system-notice-error { + background: var(--error); + color: var(--white); padding: 10px; } -main { - height: 100%; +div.system-notice-message { + background: var(--highlight); + color: var(--black); + padding: 10px; } main > section > article { width: 80%; max-width: 1000px; margin: 0 auto; + min-height: 400px; } /* GLOBALS */ @@ -122,3 +125,31 @@ sup { height: 90%; padding-top: 3px; } + +.location-image { + height: 200px; + width: 200px; + display: inline-block; + border-radius: 3px; +} + +/* GLOBALS */ + +footer { + width: 100%; + color: var(--primary); + background: var(--secondary); + height: 200px; +} + +footer > div:nth-child(1) { + display: grid; + grid-template-columns: 50% 50%; + padding: 10px; + gap: 10px; + height: 200px; + width: 80%; + margin: 0 auto; + max-width: 1000px; + position: relative; +} diff --git a/public/assets/css/global/typography.css b/public/assets/css/global/typography.css index 19f6249..96e9c3e 100644 --- a/public/assets/css/global/typography.css +++ b/public/assets/css/global/typography.css @@ -40,34 +40,28 @@ --mono-type: "Lucida Console", monaco, monospace; } -h1, -h2, -h3 { - color: var(--white); - font-family: var(--title-type); -} - h1 { - font-size: 4em; - font-weight: 500; + font-size: 3em; + font-weight: 600; font-kerning: normal; letter-spacing: -5px; text-transform: uppercase; line-height: 0.75em; - margin: 40px 0; + margin: 0; + position: absolute; + bottom: 20px; + width: 70%; } h2 { - font-size: 3em; - font-weight: 400; + font-size: 2em; + font-weight: 500; line-height: 0.8em; + color: var(--white); + margin: 30px 0; } h3 { font-size: 2em; font-weight: 300; } - -main > article > h1 { - color: var(--primary); -} diff --git a/resources/views/back/login.blade.php b/resources/views/back/login.blade.php index 4841ea7..fdf09b6 100644 --- a/resources/views/back/login.blade.php +++ b/resources/views/back/login.blade.php @@ -4,11 +4,9 @@ @section('main-content') @parent - @if($errors->any()) -