From b6b1898073c11dc72921aefd87df1b6b221ba88b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 10 Feb 2019 13:29:04 -0700 Subject: [PATCH] Update discover views --- resources/views/discover/home.blade.php | 1 + resources/views/discover/personal.blade.php | 76 +++++++++++++ .../views/discover/tags/category.blade.php | 104 ++++++++++++++++++ 3 files changed, 181 insertions(+) create mode 100644 resources/views/discover/personal.blade.php create mode 100644 resources/views/discover/tags/category.blade.php diff --git a/resources/views/discover/home.blade.php b/resources/views/discover/home.blade.php index 089aa76ba..ea8433a3e 100644 --- a/resources/views/discover/home.blade.php +++ b/resources/views/discover/home.blade.php @@ -9,6 +9,7 @@ @endsection @push('scripts') + diff --git a/resources/views/discover/personal.blade.php b/resources/views/discover/personal.blade.php new file mode 100644 index 000000000..cbda555b9 --- /dev/null +++ b/resources/views/discover/personal.blade.php @@ -0,0 +1,76 @@ +@extends('layouts.app') + +@section('content') +
+
+
+
+

My Discover

+

Discover posts based on hashtags you've used before

+
+
+
+
+ +
+
+

+ Related hashtags: + @foreach($tags as $hashtag) + #{{$hashtag->name}} + @endforeach +

+

+ {{$posts->post_count}} posts +

+
+
+ +
+
+ {{$posts->links()}} +
+
+ +@endsection + +@push('scripts') + +@endpush \ No newline at end of file diff --git a/resources/views/discover/tags/category.blade.php b/resources/views/discover/tags/category.blade.php new file mode 100644 index 000000000..d918f53a4 --- /dev/null +++ b/resources/views/discover/tags/category.blade.php @@ -0,0 +1,104 @@ +@extends('layouts.app') + +@section('content') + +
+
+
+
+
+ +
+
+
+
+
+ {{$tag->name}} +
+
+
+
+
+
+ +
+
+

+ Related hashtags: + @foreach($tag->hashtags as $hashtag) + #{{$hashtag->name}} + @endforeach +

+

+ {{$tag->posts_count}} posts +

+
+
+ +
+
+ {{$posts->links()}} +
+
+ +@endsection + +@push('meta') + + +@endpush + +@push('scripts') + +@endpush