Refactor layout and button display logic

This commit is contained in:
Julian Prieber 2024-09-24 16:13:17 +02:00
parent 00f0327cce
commit a05036f4ca
2 changed files with 29 additions and 17 deletions

View File

@ -1,28 +1,15 @@
<!DOCTYPE html> <!DOCTYPE html>
@include('layouts.lang') @include('layouts.lang')
<head> <head>
@include('linkstack.modules.meta')
@stack('linkstack-head') @stack('linkstack-head')
@include('linkstack.modules.assets')
@foreach($information as $info)
@stack('linkstack-head-end') @stack('linkstack-head-end')
</head> </head>
<body> <body>
@stack('linkstack-body-start') @stack('linkstack-body-start')
@include('linkstack.modules.admin-bar')
@include('linkstack.modules.share-button')
@include('linkstack.modules.report-icon')
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="column" style="margin-top: 5%"> <div class="column" style="margin-top: 5%">
@include('linkstack.elements.avatar') @stack('linkstack-content')
@include('linkstack.elements.heading')
@include('linkstack.elements.bio')
@include('linkstack.elements.icons')
@endforeach
@yield('content')
@include('linkstack.modules.footer')
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,7 +1,32 @@
@extends('linkstack.layout') @extends('linkstack.layout')
@section('content') @section('content')
@push('linkstack-head-end') @push('linkstack-head')
@include('linkstack.modules.theme') @include('linkstack.modules.meta')
@include('linkstack.modules.assets')
@endpush
@push('linkstack-head-end')
@foreach($information as $info)
@include('linkstack.modules.theme')
@endforeach
@endpush
@push('linkstack-body-start')
@include('linkstack.modules.admin-bar')
@include('linkstack.modules.share-button')
@include('linkstack.modules.report-icon')
@endpush
@push('linkstack-content')
@foreach($information as $info)
@include('linkstack.elements.avatar')
@include('linkstack.elements.heading')
@include('linkstack.elements.bio')
@endforeach
@include('linkstack.elements.icons')
@include('linkstack.elements.buttons')
@yield('content')
@include('linkstack.modules.footer')
@endpush @endpush
@include('linkstack.elements.buttons')
@endsection @endsection