Skip to content

Commit 86087a0

Browse files
committed
fixed header text
1 parent c7539f7 commit 86087a0

File tree

7 files changed

+91
-29
lines changed

7 files changed

+91
-29
lines changed

.env.example

+73-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,76 @@
1-
APP_NAME=Laravel
1+
# APP_NAME=Laravel
2+
# APP_ENV=local
3+
# APP_KEY=
4+
# APP_DEBUG=true
5+
# APP_TIMEZONE=UTC
6+
# APP_URL=http://localhost
7+
8+
# APP_LOCALE=en
9+
# APP_FALLBACK_LOCALE=en
10+
# APP_FAKER_LOCALE=en_US
11+
12+
# APP_MAINTENANCE_DRIVER=file
13+
# # APP_MAINTENANCE_STORE=database
14+
15+
# PHP_CLI_SERVER_WORKERS=4
16+
17+
# BCRYPT_ROUNDS=12
18+
19+
# LOG_CHANNEL=stack
20+
# LOG_STACK=single
21+
# LOG_DEPRECATIONS_CHANNEL=null
22+
# LOG_LEVEL=debug
23+
24+
# DB_CONNECTION=sqlite
25+
# # DB_HOST=127.0.0.1
26+
# # DB_PORT=3306
27+
# # DB_DATABASE=laravel
28+
# # DB_USERNAME=root
29+
# # DB_PASSWORD=
30+
31+
# SESSION_DRIVER=database
32+
# SESSION_LIFETIME=120
33+
# SESSION_ENCRYPT=false
34+
# SESSION_PATH=/
35+
# SESSION_DOMAIN=null
36+
37+
# BROADCAST_CONNECTION=log
38+
# FILESYSTEM_DISK=local
39+
# QUEUE_CONNECTION=database
40+
41+
# CACHE_STORE=database
42+
# CACHE_PREFIX=
43+
44+
# MEMCACHED_HOST=127.0.0.1
45+
46+
# REDIS_CLIENT=phpredis
47+
# REDIS_HOST=127.0.0.1
48+
# REDIS_PASSWORD=null
49+
# REDIS_PORT=6379
50+
51+
# MAIL_MAILER=log
52+
# MAIL_HOST=127.0.0.1
53+
# MAIL_PORT=2525
54+
# MAIL_USERNAME=null
55+
# MAIL_PASSWORD=null
56+
# MAIL_ENCRYPTION=null
57+
# MAIL_FROM_ADDRESS="hello@example.com"
58+
# MAIL_FROM_NAME="${APP_NAME}"
59+
60+
# AWS_ACCESS_KEY_ID=
61+
# AWS_SECRET_ACCESS_KEY=
62+
# AWS_DEFAULT_REGION=us-east-1
63+
# AWS_BUCKET=
64+
# AWS_USE_PATH_STYLE_ENDPOINT=false
65+
66+
# VITE_APP_NAME="${APP_NAME}"
67+
68+
APP_NAME=Laraflix
269
APP_ENV=local
3-
APP_KEY=
70+
APP_KEY=base64:XG9CTou7t6azVvlaZTs0OBdypjjC6oc8BSNky10CbNw=
471
APP_DEBUG=true
572
APP_TIMEZONE=UTC
6-
APP_URL=http://localhost
73+
APP_URL=https://laraflix.fly.dev/
774

875
APP_LOCALE=en
976
APP_FALLBACK_LOCALE=en
@@ -57,10 +124,8 @@ MAIL_ENCRYPTION=null
57124
MAIL_FROM_ADDRESS="hello@example.com"
58125
MAIL_FROM_NAME="${APP_NAME}"
59126

60-
AWS_ACCESS_KEY_ID=
61-
AWS_SECRET_ACCESS_KEY=
62-
AWS_DEFAULT_REGION=us-east-1
63-
AWS_BUCKET=
64-
AWS_USE_PATH_STYLE_ENDPOINT=false
127+
# TMDB_TOKEN=6ef4d74eaa2e5ea30132434642707cab
128+
TMDB_ENDPOINT=https://api.themoviedb.org/3/
129+
TMDB_TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI2ZWY0ZDc0ZWFhMmU1ZWEzMDEzMjQzNDY0MjcwN2NhYiIsIm5iZiI6MTcyOTk1MzgxNS4xMzM2NzQsInN1YiI6IjY3MWNmZjc2YjNkNWNiYjg0MmY0M2IzYSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.arbvX-lwI8KJxwxi3x_DtX2MhvGFB0ZEJr-Chnt9Sic
65130

66131
VITE_APP_NAME="${APP_NAME}"

resources/js/swiper.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ Livewire.on("livewireFetchedData", () => {
1212
breakpoints: {
1313
640: {
1414
slidesPerView: 3,
15-
slidesPerGroup: 2,
15+
slidesPerGroup: 3,
1616
},
1717
768: {
1818
slidesPerView: 4,
19-
slidesPerGroup: 3,
19+
slidesPerGroup: 4,
2020
},
2121
1024: {
2222
slidesPerView: 5,
23-
slidesPerGroup: 4,
23+
slidesPerGroup: 5,
2424
},
2525
1280: {
2626
slidesPerView: 6,
27-
slidesPerGroup: 5,
27+
slidesPerGroup: 6,
2828
},
2929
},
3030
});
@@ -58,19 +58,19 @@ Livewire.on("livewireFetchedData", () => {
5858
breakpoints: {
5959
640: {
6060
slidesPerView: 3,
61-
slidesPerGroup: 2,
61+
slidesPerGroup: 3,
6262
},
6363
768: {
6464
slidesPerView: 4,
65-
slidesPerGroup: 3,
65+
slidesPerGroup: 4,
6666
},
6767
1024: {
6868
slidesPerView: 5,
69-
slidesPerGroup: 4,
69+
slidesPerGroup: 5,
7070
},
7171
1280: {
7272
slidesPerView: 6,
73-
slidesPerGroup: 5,
73+
slidesPerGroup: 6,
7474
},
7575
},
7676
});

resources/views/home.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<x-app-layout>
2-
{{-- <livewire:layout.home-header /> --}}
2+
<livewire:layout.home-header />
33

44
<!-- Page Content -->
55
<div class="px-4 sm:px-6 lg:px-8">
66
<livewire:movies.popular />
7-
{{-- <livewire:movies.now-playing />
7+
<livewire:movies.now-playing />
88
<livewire:movies.upcoming />
99
<livewire:movies.top-rated />
1010
<livewire:series.airing-today />
1111
<livewire:series.top-rated />
1212
<livewire:series.popular />
13-
<livewire:series.on-the-air /> --}}
13+
<livewire:series.on-the-air />
1414
</div>
1515
</x-app-layout>

resources/views/livewire/layout/movie-genre-header.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function loadMovies($genreId)
3434
'imgSrc' => 'https://image.tmdb.org/t/p/original/' . $movie['backdrop_path'],
3535
'imgAlt' => $movie['title'],
3636
'title' => $movie['title'],
37-
'description' => $movie['overview'],
37+
'description' => Str::limit($movie['overview'], 400, '...') ?? $movie['overview'],
3838
];
3939
})
4040
->toArray();

resources/views/livewire/layout/series-genre-header.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function loadSeries($genreId)
3434
'imgSrc' => 'https://image.tmdb.org/t/p/original/' . $series['backdrop_path'],
3535
'imgAlt' => $series['name'],
3636
'title' => $series['name'],
37-
'description' => $series['overview'],
37+
'description' => Str::limit($series['overview'], 400, '...') ?? $series['overview'],
3838
];
3939
})
4040
->toArray();

resources/views/livewire/movies/show-movie.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ class="text-black size-6">
107107
<!-- Genres -->
108108
<p class="text-sm text-gray-400">
109109
@foreach ($movie['genres'] as $genre)
110-
<a class="hover:cursor-pointer hover:underline" href="{{ route('movies.genres', $genre['id'])}}" wire:navigate>{{ $movieGenres[$genre['id']] ?? '' }}</a>@if (!$loop->last),@endif
110+
<a class="hover:cursor-pointer hover:underline" href="{{ route('movies.genres', $genre['id'])}}" wire:navigate>{{ $movieGenres[$genre['id']] ?? '' }}</a>@if(!$loop->last),@endif
111111
@endforeach
112112
</p>
113113

114114
<!-- Cast -->
115115
@if ($this->cast)
116116
<p class="text-xs text-gray-500">
117117
@foreach (array_slice($cast['cast'], 0, 5) as $actor)
118-
{{ $actor['name'] }}@if (!$loop->last),@endif
118+
{{ $actor['name'] }}@if(!$loop->last),@endif
119119
@endforeach
120120
</p>
121121
@endif

resources/views/livewire/series/show-series.blade.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,22 @@ class="text-black size-6">
123123
<p class="text-sm text-gray-400">
124124
@foreach ($series['genres'] as $genre)
125125
<a class="hover:cursor-pointer hover:underline" href="{{ route('series.genres', $genre['id']) }}"
126-
wire:navigate>{{ $seriesGenres[$genre['id']] ?? '' }}</a>
127-
@if (!$loop->last),
128-
@endif
126+
wire:navigate>{{ $seriesGenres[$genre['id']] ?? '' }}</a>@if(!$loop->last),@endif
129127
@endforeach
130128
</p>
131129

132130
<!-- Cast -->
133131
@if ($this->cast)
134132
<p class="text-xs text-gray-500">
135133
@foreach (array_slice($this->cast['cast'], 0, 5) as $actor)
136-
{{ $actor['name'] }}@if (!$loop->last),
137-
@endif
134+
{{ $actor['name'] }}@if(!$loop->last),@endif
138135
@endforeach
139136
</p>
140137
@endif
141138
</div>
142139

143140
<!-- Seasons -->
144-
<div class="mt-6 mb-20">
141+
<div class="px-4 mt-6 mb-20">
145142
<div class="inline-flex">
146143
<x-dropdown align="left" width="48" class="bg-black bg-opacity-80">
147144
<x-slot name="trigger">

0 commit comments

Comments
 (0)