Skip to content

Commit 30190a1

Browse files
committed
Use prose for entire note
Instead of mixing prose underneath a custom title area, just use prose for the whole page. Steve Schroger certainly came up with a better design than me.
1 parent 59a8206 commit 30190a1

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

resources/views/livewire/notes/show-note-page.blade.php

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,26 @@
44
{{ $this->description() }}
55
</x-slot>
66

7-
<div>
7+
<article class="prose dark:prose-invert">
8+
<p class="text-sm text-gray-600">
9+
{{ $note->publicationDate() }}
10+
</p>
11+
812
@if ($note->title)
9-
<x-type.page-title>{{ $note->title }}</x-type.page-title>
13+
<h1 class="font-serif">{{ $note->title }}</h1>
1014
@endif
1115

1216
@if ($note->lead)
13-
<p class="text-2xl mt-2">{{ $note->lead }}</p>
17+
<p class="lead">{{ $note->lead }}</p>
1418
@endif
1519

16-
<p class="mt-2 text-gray-600">
17-
{{ $note->publicationDate() }}
18-
</p>
19-
2020
@if ($note->content)
21-
<div class="mt-4 prose">
22-
{!! $note->content !!}
23-
</div>
21+
{!! $note->content !!}
2422
@endif
2523

26-
<div class="mt-6">
24+
<p class="text-sm">
2725
<a href="{{ route("notes.index") }}" class="link" wire:navigate>
2826
Back to all notes
2927
</a>
30-
</div>
31-
</div>
28+
</p>
29+
</article>

0 commit comments

Comments
 (0)