File tree 7 files changed +28
-21
lines changed
7 files changed +28
-21
lines changed Original file line number Diff line number Diff line change 9
9
10
10
.swiper-button-next , .swiper-button-prev {
11
11
color : white;
12
+ height : 10px ;
13
+ width : 10px ;
12
14
}
13
15
}
14
16
Original file line number Diff line number Diff line change 8
8
};
9
9
10
10
$width = match ($width ) {
11
- ' 48 ' => ' w-48 ' ,
11
+ ' 64 ' => ' w-64 sm:w-96 ' ,
12
12
default => $width ,
13
13
};
14
14
@endphp
Original file line number Diff line number Diff line change 3
3
<div x-data =" { loaded: @js ($loaded ) }" wire:remove wire:key =" item-{{ $movie [' id' ] } }"
4
4
wire:target =' toggle-watchlist,{{ $movie [' id' ] } }'
5
5
class =" relative transition duration-300 bg-gray-800 border border-transparent rounded-sm shadow-md hover:cursor-pointer hover:border-gray-400 hover:shadow-lg hover:shadow-gray-200/50" >
6
- <div class =" absolute inset-0 flex items-center justify-center" x-show =" !loaded" >
7
- <div class =" w-8 h-8 border-4 border-gray-200 rounded-full border-t-gray-500 animate-spin" ></div >
8
- </div >
9
6
10
- <div class =" relative" >
7
+ <div class =" relative aspect-w-2 aspect-h-3" >
8
+ <div class =" absolute inset-0 flex items-center justify-center" x-show =" !loaded" >
9
+ <div class =" w-8 h-8 border-4 border-gray-200 rounded-full border-t-gray-500 animate-spin" ></div >
10
+ </div >
11
+
11
12
<a href =" {{ route (' movies.show' , $movie [' id' ]) } }" >
12
13
<img loading =" {{ $index < 6 ? ' eager' : ' lazy' } }"
13
- src =" https://image.tmdb.org/t/p/w500{{ $movie [' poster_path' ] } }" alt =" {{ $movie [' title' ] } }"
14
- class =" object-cover w-full h-auto transition duration-500 ease-in-out opacity-0" @load =" loaded = true"
14
+ src =" {{ ' https://image.tmdb.org/t/p/w500' . $movie [' poster_path' ] } }" alt =" {{ $movie [' title' ] } }"
15
+ class =" object-cover w-full h-full transition duration-500 ease-in-out opacity-0" @load =" loaded = true"
15
16
:class =" loaded ? 'opacity-100' : 'opacity-0'" >
16
17
</a >
17
18
18
19
<div class =" absolute top-2 right-2" >
19
- <x-dropdown align =" right " width =" 48" class =" bg-black bg-opacity-50" >
20
+ <x-dropdown align =" top " width =" 48" class =" bg-black bg-opacity-50" >
20
21
<x-slot name =" trigger" >
21
22
<button >
22
23
<svg xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke-width =" 1.5"
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ public function loadMovieGenres()
18
18
}
19
19
}; ? >
20
20
21
- <div class =" inline-flex" >
22
- <x-dropdown align =" left " width =" 72 " class =" bg-black w-96 bg-opacity-80" >
21
+ <div class =" inline-flex pt-2 " >
22
+ <x-dropdown align =" right " width =" 64 " class =" bg-black bg-opacity-80" >
23
23
<x-slot name =" trigger" >
24
24
<button
25
25
class =" inline-flex items-center text-sm font-medium leading-4 text-gray-400 transition duration-150 ease-in-out bg-transparent border border-transparent rounded-md hover:text-gray-300 focus:outline-none" >
@@ -36,9 +36,9 @@ class="inline-flex items-center text-sm font-medium leading-4 text-gray-400 tran
36
36
</x-slot >
37
37
38
38
<x-slot name =" content" >
39
- <div class =" grid grid-cols-3 gap-1" >
39
+ <div class =" grid grid-cols-2 gap-1 sm:grid-cols-3 " >
40
40
@foreach ($movieGenres as $genre )
41
- <x-dropdown-link href =" {{ route (' movies.genres' , $genre [' id' ]) } }" wire:navigate >
41
+ <x-dropdown-link class = " text-xs sm:text-sm " href =" {{ route (' movies.genres' , $genre [' id' ]) } }" wire:navigate >
42
42
{{ $genre [' name' ] } }
43
43
</x-dropdown-link >
44
44
@endforeach
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function loadSeriesGenres()
19
19
}; ? >
20
20
21
21
<div class =" inline-flex" >
22
- <x-dropdown align =" left" width =" 96 " class =" bg-black w-96 bg-opacity-80" >
22
+ <x-dropdown align =" left" width =" 64 " class =" bg-black bg-opacity-80" >
23
23
<x-slot name =" trigger" >
24
24
<button
25
25
class =" inline-flex items-center text-sm font-medium leading-4 text-gray-400 transition duration-150 ease-in-out bg-transparent border border-transparent rounded-md hover:text-gray-300 focus:outline-none" >
@@ -38,7 +38,7 @@ class="inline-flex items-center text-sm font-medium leading-4 text-gray-400 tran
38
38
<x-slot name =" content" >
39
39
<div class =" grid grid-cols-3 gap-1 p-1" >
40
40
@foreach ($seriesGenres as $genre )
41
- <x-dropdown-link href =" {{ route (' series.genres' , $genre [' id' ]) } }" wire:navigate >
41
+ <x-dropdown-link class = " text-xs sm:text-sm " href =" {{ route (' series.genres' , $genre [' id' ]) } }" wire:navigate >
42
42
{{ $genre [' name' ] } }
43
43
</x-dropdown-link >
44
44
@endforeach
Original file line number Diff line number Diff line change 3
3
4
4
<div class =" px-4 sm:px-6 lg:px-8" >
5
5
<!-- Genres -->
6
- <livewire:genres .movie-genres />
6
+ <div class =" flex justify-end px-4" >
7
+ <livewire:genres .movie-genres />
8
+ </div >
7
9
8
10
<!-- Popular -->
9
11
<livewire:movies .popular />
Original file line number Diff line number Diff line change 3
3
4
4
<div class =" px-4 sm:px-6 lg:px-8" >
5
5
<!-- Genres -->
6
- <livewire:genres .series-genres />
7
-
6
+ <div class =" flex justify-end px-4" >
7
+ <livewire:genres .series-genres />
8
+ </div >
9
+
8
10
<!-- Airing today -->
9
11
<livewire:series .airing-today />
10
-
12
+
11
13
<!-- Top rated -->
12
14
<livewire:series .top-rated />
13
-
15
+
14
16
<!-- On the air -->
15
17
<livewire:series .on-the-air />
16
-
18
+
17
19
<!-- Popular -->
18
20
<livewire:series .popular />
19
21
</div >
20
- </x-app-layout >
22
+ </x-app-layout >
You can’t perform that action at this time.
0 commit comments