mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix series list view in dark mode
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
@section('content')
|
||||
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm">
|
||||
<!-- Header -->
|
||||
<div class="px-6 py-4 border-b border-gray-200">
|
||||
<div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700">
|
||||
<div class="flex justify-between items-center">
|
||||
<h3 class="text-2xl font-bold text-gray-800 dark:text-gray-200 flex items-center">
|
||||
<i class="fa fa-tv mr-3 text-blue-600"></i>TV Series
|
||||
</h3>
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="flex items-center space-x-2 text-sm text-gray-600">
|
||||
<li><a href="{{ url($site['home_link'] ?? '/') }}" class="hover:text-blue-600">Home</a></li>
|
||||
<ol class="flex items-center space-x-2 text-sm text-gray-600 dark:text-gray-400">
|
||||
<li><a href="{{ url($site['home_link'] ?? '/') }}" class="hover:text-blue-600 dark:hover:text-blue-400">Home</a></li>
|
||||
<li><i class="fas fa-chevron-right text-xs mx-2"></i></li>
|
||||
<li class="text-gray-500">TV Series List</li>
|
||||
<li class="text-gray-500 dark:text-gray-400">TV Series List</li>
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
@@ -22,11 +22,11 @@
|
||||
<!-- Alphabet navigation -->
|
||||
<div class="mb-4">
|
||||
<div class="flex items-center flex-wrap gap-2">
|
||||
<span class="font-semibold mr-2">Jump to:</span>
|
||||
<span class="font-semibold mr-2 text-gray-800 dark:text-gray-200">Jump to:</span>
|
||||
<div class="flex gap-1">
|
||||
<a href="{{ url('/series/0-9') }}" class="px-3 py-1 rounded {{ $seriesletter == '0-9' ? 'bg-blue-600 dark:bg-blue-700 text-white' : 'bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300' }}">0-9</a>
|
||||
<a href="{{ url('/series/0-9') }}" class="px-3 py-1 rounded {{ $seriesletter == '0-9' ? 'bg-blue-600 dark:bg-blue-700 text-white' : 'bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600' }}">0-9</a>
|
||||
@foreach($seriesrange as $range)
|
||||
<a href="{{ url('/series/' . $range) }}" class="px-3 py-1 rounded {{ $range == $seriesletter ? 'bg-blue-600 dark:bg-blue-700 text-white' : 'bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300' }}">{{ $range }}</a>
|
||||
<a href="{{ url('/series/' . $range) }}" class="px-3 py-1 rounded {{ $range == $seriesletter ? 'bg-blue-600 dark:bg-blue-700 text-white' : 'bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600' }}">{{ $range }}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,12 +48,12 @@
|
||||
|
||||
<!-- Search form -->
|
||||
<form method="get" action="{{ url('/series') }}" class="flex gap-2">
|
||||
<input class="px-4 py-2 border border-gray-300 dark:border-gray-600 rounded focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
<input class="px-4 py-2 border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
type="text"
|
||||
name="title"
|
||||
value="{{ $showname ?? '' }}"
|
||||
placeholder="Search series">
|
||||
<button class="px-4 py-2 bg-blue-600 dark:bg-blue-700 text-white rounded hover:bg-blue-700" type="submit" title="Search series">
|
||||
<button class="px-4 py-2 bg-blue-600 dark:bg-blue-700 text-white rounded hover:bg-blue-700 dark:hover:bg-blue-800" type="submit" title="Search series">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</form>
|
||||
@@ -69,32 +69,32 @@
|
||||
<i class="fa fa-bookmark mr-2 text-blue-600"></i>{{ $sletter }}
|
||||
</h4>
|
||||
</div>
|
||||
<table class="min-w-full bg-white dark:bg-gray-800 border border-gray-200">
|
||||
<thead class="bg-gray-50">
|
||||
<table class="min-w-full bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700">
|
||||
<thead class="bg-gray-50 dark:bg-gray-700">
|
||||
<tr>
|
||||
<th class="px-4 py-3 text-left text-sm font-semibold text-gray-700">Name</th>
|
||||
<th class="px-4 py-3 text-center text-sm font-semibold text-gray-700 w-120">Network</th>
|
||||
<th class="px-4 py-3 text-center text-sm font-semibold text-gray-700 w-120">Country</th>
|
||||
<th class="px-4 py-3 text-center text-sm font-semibold text-gray-700 w-140">Actions</th>
|
||||
<th class="px-4 py-3 text-center text-sm font-semibold text-gray-700 col-width-200">External Links</th>
|
||||
<th class="px-4 py-3 text-left text-sm font-semibold text-gray-700 dark:text-gray-200">Name</th>
|
||||
<th class="px-4 py-3 text-center text-sm font-semibold text-gray-700 dark:text-gray-200 w-120">Network</th>
|
||||
<th class="px-4 py-3 text-center text-sm font-semibold text-gray-700 dark:text-gray-200 w-120">Country</th>
|
||||
<th class="px-4 py-3 text-center text-sm font-semibold text-gray-700 dark:text-gray-200 w-140">Actions</th>
|
||||
<th class="px-4 py-3 text-center text-sm font-semibold text-gray-700 dark:text-gray-200 col-width-200">External Links</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200">
|
||||
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
|
||||
@foreach($series as $s)
|
||||
@php
|
||||
$sData = is_object($s) ? get_object_vars($s) : $s;
|
||||
@endphp
|
||||
<tr class="hover:bg-gray-50">
|
||||
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
|
||||
<td class="px-4 py-3">
|
||||
<div class="mb-1">
|
||||
<a class="font-semibold text-blue-600 dark:text-blue-400 hover:text-blue-800"
|
||||
<a class="font-semibold text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300"
|
||||
title="View series details"
|
||||
href="{{ url('/series/' . $sData['id']) }}">
|
||||
{{ $sData['title'] ?? '' }}
|
||||
</a>
|
||||
</div>
|
||||
@if(!empty($sData['prevdate']))
|
||||
<span class="inline-block px-2 py-1 text-xs bg-blue-100 text-blue-800 rounded">
|
||||
<span class="inline-block px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded">
|
||||
<i class="fa fa-calendar mr-1"></i>Last: {{ $sData['previnfo'] ?? '' }} aired {{ \Carbon\Carbon::parse($sData['prevdate'])->format('M d, Y') }}
|
||||
</span>
|
||||
@endif
|
||||
@@ -133,7 +133,7 @@
|
||||
</td>
|
||||
<td class="px-4 py-3">
|
||||
<div class="flex justify-center gap-2">
|
||||
<a class="px-2 py-1 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 text-sm"
|
||||
<a class="px-2 py-1 bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 rounded hover:bg-blue-200 dark:hover:bg-blue-800 text-sm"
|
||||
title="View series details"
|
||||
href="{{ url('/series/' . $sData['id']) }}">
|
||||
<i class="fa fa-tv"></i>
|
||||
@@ -141,21 +141,21 @@
|
||||
|
||||
@if($sData['id'] > 0)
|
||||
@if(!empty($sData['tvdb']) && $sData['tvdb'] > 0)
|
||||
<a class="px-2 py-1 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 rounded hover:bg-gray-200 dark:bg-gray-700 text-xs"
|
||||
<a class="px-2 py-1 bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded hover:bg-gray-200 dark:hover:bg-gray-600 text-xs"
|
||||
title="View at TVDB" target="_blank"
|
||||
href="{{ $site['dereferrer_link'] }}http://thetvdb.com/?tab=series&id={{ $sData['tvdb'] }}">
|
||||
TVDB
|
||||
</a>
|
||||
@endif
|
||||
@if(!empty($sData['tvmaze']) && $sData['tvmaze'] > 0)
|
||||
<a class="px-2 py-1 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 rounded hover:bg-gray-200 dark:bg-gray-700 text-xs"
|
||||
<a class="px-2 py-1 bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded hover:bg-gray-200 dark:hover:bg-gray-600 text-xs"
|
||||
title="View at TVMaze" target="_blank"
|
||||
href="{{ $site['dereferrer_link'] }}http://tvmaze.com/shows/{{ $sData['tvmaze'] }}">
|
||||
TVMaze
|
||||
</a>
|
||||
@endif
|
||||
@if(!empty($sData['trakt']) && $sData['trakt'] > 0)
|
||||
<a class="px-2 py-1 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 rounded hover:bg-gray-200 dark:bg-gray-700 text-xs"
|
||||
<a class="px-2 py-1 bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded hover:bg-gray-200 dark:hover:bg-gray-600 text-xs"
|
||||
title="View at Trakt" target="_blank"
|
||||
href="{{ $site['dereferrer_link'] }}http://www.trakt.tv/shows/{{ $sData['trakt'] }}">
|
||||
Trakt
|
||||
@@ -172,7 +172,7 @@
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<div class="bg-yellow-50 border border-yellow-200 rounded-lg p-4 text-yellow-800">
|
||||
<div class="bg-yellow-50 dark:bg-yellow-900/30 border border-yellow-200 dark:border-yellow-700 rounded-lg p-4 text-yellow-800 dark:text-yellow-200">
|
||||
<i class="fa fa-info-circle mr-2"></i>
|
||||
No series found. Try a different search or letter.
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user