From 13d5ecf7c4a450d912e3e763adad4251d93b6724 Mon Sep 17 00:00:00 2001 From: dev Date: Sat, 27 Jun 2026 15:09:56 +0200 Subject: style: wrap /topics in card with header, use solid pink btn-primary on both /topics and /popular/topics --- resources/views/topicindex.blade.php | 38 +++++++++++++++++++--------------- resources/views/topicpopular.blade.php | 2 +- 2 files changed, 22 insertions(+), 18 deletions(-) (limited to 'resources/views') diff --git a/resources/views/topicindex.blade.php b/resources/views/topicindex.blade.php index d5cf223..0920b85 100644 --- a/resources/views/topicindex.blade.php +++ b/resources/views/topicindex.blade.php @@ -11,36 +11,40 @@ html {
-
+
-@php ($curLetter = "") -@foreach ($topics->get() as $topic) - @if ( "" != $topic->name ) - @php ( $firstLetter = strtoupper(substr($topic->name, 0, 1)) ) - @if ( $curLetter != $firstLetter ) -
-

+
+

+ Topics +

+
+ @php ($curLetter = "") + @foreach ($topics->get() as $topic) + @if ( "" != $topic->name ) + @php ( $firstLetter = strtoupper(substr($topic->name, 0, 1)) ) + @if ( $curLetter != $firstLetter ) +

- {{ $firstLetter }} + {{ $firstLetter }} -

-
-
- +

+
+ @endif @php ($curLetter = $firstLetter) - @endif - {{ ucwords($topic->name) }} + {{ ucwords($topic->name) }} @endif -@endforeach + @endforeach +
+
@endsection diff --git a/resources/views/topicpopular.blade.php b/resources/views/topicpopular.blade.php index b8f0224..59ade5b 100644 --- a/resources/views/topicpopular.blade.php +++ b/resources/views/topicpopular.blade.php @@ -34,7 +34,7 @@ html {
@foreach ($topics as $topic) @if ( "" != $topic->name ) - {{ ucwords($topic->name) }} ({{ $topic->count }} Articles) + {{ ucwords($topic->name) }} ({{ $topic->count }} Articles) @endif @endforeach
-- cgit v1.2.3