diff --git a/app/Http/Controllers/TagController.php b/app/Http/Controllers/TagController.php index 9566b87..047fe68 100644 --- a/app/Http/Controllers/TagController.php +++ b/app/Http/Controllers/TagController.php @@ -36,7 +36,12 @@ class TagController extends Controller */ public function show(Tag $tag) { - return view('tag.show', [ 'tag' => $tag, ]); + return view( + 'tag.show', [ + 'tag' => $tag->load('bookmarks'), + 'tag_count' => $tag->bookmarks()->count(), + ] + ); } /** diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 0e80b96..75d0952 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -12,6 +12,7 @@ body { padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; background-color: #335C67; + color: #fff; } @import 'components/bookmark'; diff --git a/resources/sass/components/_bookmark.scss b/resources/sass/components/_bookmark.scss index e027eb0..7fa683a 100644 --- a/resources/sass/components/_bookmark.scss +++ b/resources/sass/components/_bookmark.scss @@ -9,6 +9,8 @@ "date tags" "actions actions"; + color: #000; + form & { grid-template-areas: "title" diff --git a/resources/views/tag/show.blade.php b/resources/views/tag/show.blade.php index 776902a..09c281a 100644 --- a/resources/views/tag/show.blade.php +++ b/resources/views/tag/show.blade.php @@ -1,6 +1,7 @@ @extends('layouts.app') @section('content') +