6 - Convert blade views to layouts/app inheritance
This commit is contained in:
parent
f9cebe5bae
commit
920985eec8
6 changed files with 22 additions and 240 deletions
|
|
@ -1,4 +1,6 @@
|
|||
<x-layout>
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div>
|
||||
<h1>Instances</h1>
|
||||
|
||||
|
|
@ -23,4 +25,5 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</x-layout>
|
||||
@endsection
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<x-layout>
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<main>
|
||||
<h1>About TroveBot</h1>
|
||||
|
||||
|
|
@ -57,4 +60,4 @@
|
|||
</li>
|
||||
</ul>
|
||||
</main>
|
||||
</x-layout>
|
||||
@endsection
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>{{ $title ?? config('app.name') }}</title>
|
||||
<title>Trove @yield('title')</title>
|
||||
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
@livewireStyles
|
||||
</head>
|
||||
<body>
|
||||
{{ $slot }}
|
||||
@yield('content')
|
||||
|
||||
@livewireScripts
|
||||
</body>
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>{{ $title ?? 'Trove' }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ $slot }}
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
<x-layout>
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<livewire:url-submission-form />
|
||||
</x-layout>
|
||||
|
||||
@endsection
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue