add svg icons to show page

This commit is contained in:
Constantin Plaiasu 2024-09-01 23:31:27 +03:00
parent 4328444626
commit 5cec6ad76e
2 changed files with 18 additions and 7 deletions

View file

@ -74,9 +74,9 @@
</span> </span>
<span class="movie-widget"> <span class="movie-widget">
<i class="color--danger"> <i class="base--color">
<svg class="si"> <svg class="si">
<use href="#si-eye"></use> <use href="#si-star"></use>
</svg> </svg>
</i> </i>
<span>{{$movie['vote_count']}} views</span> <span>{{$movie['vote_count']}} views</span>
@ -103,7 +103,6 @@
<svg class="si"> <svg class="si">
<use href="#si-{{ $share['icon'] }}"></use> <use href="#si-{{ $share['icon'] }}"></use>
</svg> </svg>
{{-- <i class="lab {{ $share['icon'] }}"></i> --}}
</a> </a>
</li> </li>
@endforeach @endforeach

View file

@ -32,7 +32,7 @@
<svg class="si base--color me-2"> <svg class="si base--color me-2">
<use href="#si-home"></use> <use href="#si-home"></use>
</svg> </svg>
<a href="{{route('home')}}" class="">Home</a></li> <a href="{{route('home')}}" class="">Homex</a></li>
<li><a href="{{route('shows')}}" class="">Series</a></li> <li><a href="{{route('shows')}}" class="">Series</a></li>
<li><a href="{{ url()->current() }}">{{$show['title']}}</a></li> <li><a href="{{ url()->current() }}">{{$show['title']}}</a></li>
</ul> </ul>
@ -71,12 +71,20 @@
<div class="movie-widget-area align-items-center"> <div class="movie-widget-area align-items-center">
<span class="movie-widget"> <span class="movie-widget">
<i class="lar la-star base--color"></i> <i class="base--color">
<svg class="si">
<use href="#si-star"></use>
</svg>
</i>
<span>{{ $episode['vote_average'] ?? $season['vote_average'] ?? $show['vote_average'] }}</span> <span>{{ $episode['vote_average'] ?? $season['vote_average'] ?? $show['vote_average'] }}</span>
</span> </span>
<span class="movie-widget"> <span class="movie-widget">
<i class="lar la-eye color--danger"></i> <i class="base--color">
<svg class="si">
<use href="#si-star"></use>
</svg>
</i>
<span>{{$show['vote_count']}} views</span> <span>{{$show['vote_count']}} views</span>
</span> </span>
@ -91,7 +99,11 @@
@foreach ($show['share'] as $share) @foreach ($show['share'] as $share)
<li data-bs-toggle="tooltip" data-bs-placement="top" title="{{ $share['name'] }}"> <li data-bs-toggle="tooltip" data-bs-placement="top" title="{{ $share['name'] }}">
<a href="{{ $share['url'] }}" target="_blank"><i class="lab {{ $share['icon'] }}"></i></a> <a href="{{ $share['url'] }}" target="_blank">
<svg class="si">
<use href="#si-{{ $share['icon'] }}"></use>
</svg>
</a>
</li> </li>
@endforeach @endforeach
@endif @endif