Skip to content

Commit 8490f51

Browse files
committed
app deployed successfully
1 parent 835cc6a commit 8490f51

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

resources/js/swiper.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ Livewire.on("livewireFetchedData", () => {
1212
breakpoints: {
1313
640: {
1414
slidesPerView: 3,
15-
slidesPerGroup: 3,
15+
slidesPerGroup: 2,
1616
},
1717
768: {
1818
slidesPerView: 4,
19-
slidesPerGroup: 4,
19+
slidesPerGroup: 3,
2020
},
2121
1024: {
2222
slidesPerView: 5,
23-
slidesPerGroup: 5,
23+
slidesPerGroup: 4,
2424
},
2525
1280: {
2626
slidesPerView: 6,
27-
slidesPerGroup: 6,
27+
slidesPerGroup: 5,
2828
},
2929
},
3030
});

resources/views/livewire/layout/home-header.blade.php

+5-11
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,7 @@ public function mount()
1616
public function loadTrendingMoviesAndSeries()
1717
{
1818
$this->trendingMovies = Cache::remember('home_header', 360, function () {
19-
$results = collect(
20-
array_merge(
21-
Http::withToken(config('services.tmdb.token'))
22-
->get('https://api.themoviedb.org/3/trending/movie/day')
23-
->json()['results'] ?? [],
24-
Http::withToken(config('services.tmdb.token'))
25-
->get('https://api.themoviedb.org/3/trending/tv/day')
26-
->json()['results'] ?? []
27-
)
28-
);
19+
$results = collect(array_merge(Http::withToken(config('services.tmdb.token'))->get('https://api.themoviedb.org/3/trending/movie/day')->json()['results'] ?? [], Http::withToken(config('services.tmdb.token'))->get('https://api.themoviedb.org/3/trending/tv/day')->json()['results'] ?? []));
2920
3021
if ($results->isEmpty()) {
3122
return [];
@@ -81,7 +72,10 @@ public function loadTrendingMoviesAndSeries()
8172
</div>
8273

8374
<div class="">
84-
<a wire:navigate :href="`{{ route('movies.show', '') }}/${slide.id}`">
75+
<a
76+
wire:navigate
77+
:href="slide.type === 'movie' ? `{{ route('movies.show', '') }}/${slide.id}` :
78+
`{{ route('series.show', '') }}/${slide.id}`">
8579
<x-primary-button class="absolute px-16 hover:cursor-pointer">
8680
<div class="flex items-center gap-2">
8781
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"

0 commit comments

Comments
 (0)