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

View File

@ -1,7 +1,32 @@
@extends('linkstack.layout')
@section('content')
@push('linkstack-head-end')
@include('linkstack.modules.theme')
@push('linkstack-head')
@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
@endsection