From 3e9fbc05ffae128966912ba29aba7d667771802c Mon Sep 17 00:00:00 2001 From: Rico van Zelst Date: Fri, 8 Dec 2023 17:30:23 +0100 Subject: [PATCH] feat(layouts): update app.blade.php and add new sections - Updated the meta description tag in `app.blade.php` to fix formatting. - Added `@stack('top_scripts')` and `@stack('bottom_scripts')` sections in `app.blade.php`. - Extended the `layouts.app` template in `skins/index.blade.php` and `skins/show.blade.php`. - Added title and description sections in both files. - Removed duplicate meta tags from both files. - Added content section with appropriate components in both files. - Added a new script file, 'vert-scroll.js', to be loaded at the bottom of the page in `skins/show.blade.php`. --- resources/views/layouts/app.blade.php | 8 ++-- resources/views/skins/index.blade.php | 59 +++---------------------- resources/views/skins/show.blade.php | 63 +++++---------------------- 3 files changed, 22 insertions(+), 108 deletions(-) diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 7c5ea64..0976453 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -16,8 +16,7 @@ @yield('title') - + @@ -39,11 +38,14 @@ @vite(['resources/css/app.css', 'resources/js/app.js']) + + @stack('top_scripts') - + @yield('content') +@stack('bottom_scripts') diff --git a/resources/views/skins/index.blade.php b/resources/views/skins/index.blade.php index d411cda..5118edc 100644 --- a/resources/views/skins/index.blade.php +++ b/resources/views/skins/index.blade.php @@ -1,54 +1,9 @@ - - +@extends('layouts.app') - - - +@section('title', 'Heimerdinger.LoL • Skins') +@section('description', 'Explore all champion skins on Heimerdinger.LoL. Find detailed information on popular skins +such as Dark Cosmic Jhin, HEARTSTEEL Ezreal, PROJECT: Vayne and more!') - - - - - - - - - - - - Heimerdinger.LoL • Skins - - - - - - - - - - - - - - - - - - - - - - @vite(['resources/css/app.css', 'resources/js/app.js']) - - - - - - - - - - +@section('content') + +@endsection diff --git a/resources/views/skins/show.blade.php b/resources/views/skins/show.blade.php index 483588c..ba4eba1 100644 --- a/resources/views/skins/show.blade.php +++ b/resources/views/skins/show.blade.php @@ -1,56 +1,13 @@ - - +@extends('layouts.app') - - - +@section('title', $skin->skin_name . ' • Heimerdinger.LoL') +@section('description', 'Heimerdinger.LoL: ' . $skin->skin_name . ' details showing all the information about +the ' . $skin->rarity . ' ' . $skin->champion->name . ' skin. ' . substr($skin->lore, 0, 50) . '...') - - - - - - - - - - +@section('content') + +@endsection - {{$skin->skin_name}} • Heimerdinger.LoL - - - - - - - - - - - - - - - - - - - - - - @vite(['resources/css/app.css', 'resources/js/app.js']) - - - - - - - - -@vite('resources/js/vert-scroll.js') - - - +@push('bottom_scripts') + @vite('resources/js/vert-scroll.js') +@endpush