fix: correct writer login page to be guest layout

This commit is contained in:
Jonathan Nielson 2025-03-23 14:34:28 -05:00
parent ebcdf7e324
commit 4954d8c389
3 changed files with 7 additions and 6 deletions

View File

@ -9,9 +9,14 @@
<title>{{ config('blog.publishing_name') }} | @yield('title')</title> <title>{{ config('blog.publishing_name') }} | @yield('title')</title>
</head> </head>
<body> <body>
@include('guest.top-bar') @include('guest.top-bar')
<section id="error-bag">
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
</section>
<main> <main>
@yield('content', 'Nothing to see here.') @yield('content', 'Nothing to see here.')
</main> </main>

View File

@ -5,10 +5,6 @@
@section('content') @section('content')
<div> <div>
<h1>Writer's Dashboard</h1> <h1>Writer's Dashboard</h1>
<form method="POST" action="{{ route('logout') }}">
@csrf
<button type="submit">Logout</button>
</form>
<a href="{{ route('new_article') }}"><button>New Article</button></a> <a href="{{ route('new_article') }}"><button>New Article</button></a>
</div> </div>
@endsection @endsection

View File

@ -1,4 +1,4 @@
@extends('layouts.writer') @extends('layouts.guest')
@section('title', 'Writer Login') @section('title', 'Writer Login')