diff --git a/app/Http/Controllers/CelebrityController.php b/app/Http/Controllers/CelebrityController.php index 14e825f..c870412 100644 --- a/app/Http/Controllers/CelebrityController.php +++ b/app/Http/Controllers/CelebrityController.php @@ -7,6 +7,13 @@ use Illuminate\Http\Request; class CelebrityController extends Controller { + public function index() + { + $celebrities = Person::paginate(25); + + return view('celebrity.index', compact('celebrities')); + } + public function show(string $slug) { $celebrity = Person::where('slug', $slug)->first(); diff --git a/app/Http/Controllers/Forum/ThreadsController.php b/app/Http/Controllers/Forum/ThreadsController.php index 2e40e4d..98de268 100644 --- a/app/Http/Controllers/Forum/ThreadsController.php +++ b/app/Http/Controllers/Forum/ThreadsController.php @@ -7,5 +7,8 @@ use Illuminate\Http\Request; class ThreadsController extends Controller { - // + public function show(string $threadSlug) + { + + } } diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php new file mode 100644 index 0000000..bcee262 --- /dev/null +++ b/app/Http/Controllers/ProfileController.php @@ -0,0 +1,13 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('timelines'); + } +}; diff --git a/resources/js/app.js b/resources/js/app.js index 2439f8b..7fef458 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -60,3 +60,20 @@ $('.like-btn').on('click', function (e) { }); return false; }); + +$('.remove-from-watchlist').on('click', function(e){ + e.preventDefault(); + let url = '/lists/watched/' + $(this).data('id') + '/' + $(this).data('type'); + var self = this + $.ajax({ + url: url, + method: 'GET', + success: function(data){ + if(!data.added) { + $(self).closest('.large-list-item').remove(); + } + + } + }); + return false; +}); diff --git a/resources/sass/app.scss b/resources/sass/app.scss index af6a8d0..404103f 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -43,8 +43,8 @@ body.light-mode{ .user-avatar{ width: 125px; border-radius: 50%; - border: 2px solid white; - box-shadow: 1px 1px 1px #b5b3b3; + border: 2px solid #eeecec; + box-shadow: 2px 2px 9px #979696; } h1{ display: inline-block; diff --git a/resources/views/celebrity/index.blade.php b/resources/views/celebrity/index.blade.php index e69de29..eda78a6 100644 --- a/resources/views/celebrity/index.blade.php +++ b/resources/views/celebrity/index.blade.php @@ -0,0 +1,54 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+
+ Celebrities +
+
+
+ @foreach($celebrities as $celebrity) + + @endforeach +
+
+
+ {{ $celebrities->links() }} +
+
+
+ +
+
+
+
+@endsection diff --git a/resources/views/layouts/header.blade.php b/resources/views/layouts/header.blade.php index 0d0200d..3d2bd29 100644 --- a/resources/views/layouts/header.blade.php +++ b/resources/views/layouts/header.blade.php @@ -10,7 +10,7 @@ - + @guest diff --git a/resources/views/profile/lists/show.blade.php b/resources/views/profile/lists/show.blade.php index 8a04fd5..c3d047d 100644 --- a/resources/views/profile/lists/show.blade.php +++ b/resources/views/profile/lists/show.blade.php @@ -33,7 +33,28 @@ {{ $item->item()->first()->overview }}
- Rate | favorite | add to list | remove +
diff --git a/resources/views/profile/profile.blade.php b/resources/views/profile/profile.blade.php index ed53af1..f251ff9 100644 --- a/resources/views/profile/profile.blade.php +++ b/resources/views/profile/profile.blade.php @@ -19,7 +19,7 @@
-
+