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 ++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'resources/views/topicindex.blade.php') 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 -- cgit v1.2.3