File tree 6 files changed +179
-0
lines changed
resources/views/components/feeds
6 files changed +179
-0
lines changed Original file line number Diff line number Diff line change
1
+ <div class =" relative pb-8" >
2
+ <div class =" relative flex items-start space-x-3" >
3
+ <div class =" relative" >
4
+ <img
5
+ class =" flex size-10 items-center justify-center rounded-full bg-white dark:bg-gray-800 ring-4 ring-white dark:ring-white/10"
6
+ src =" {{ $user -> profile_photo_url } }"
7
+ alt =" Avatar de {{ $user -> username } }"
8
+ />
9
+ <span class =" absolute -bottom-0.5 -right-1 rounded-tl bg-white dark:bg-gray-800 px-0.5 py-px" >
10
+ <svg
11
+ class =" size-5 text-gray-400 dark:text-gray-500"
12
+ xmlns =" http://www.w3.org/2000/svg"
13
+ fill =" none"
14
+ viewBox =" 0 0 24 24"
15
+ stroke-width =" 1.5"
16
+ stroke =" currentColor"
17
+ >
18
+ <path
19
+ stroke-linecap =" round"
20
+ stroke-linejoin =" round"
21
+ d =" M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z"
22
+ />
23
+ </svg >
24
+ </span >
25
+ </div >
26
+ <div class =" min-w-0 flex-1" >
27
+ <div >
28
+ <div class =" text-sm" >
29
+ <x-link
30
+ :href =" route('profile', ['username' => $user->username])"
31
+ class =" font-sans font-medium text-gray-900 dark:text-white"
32
+ >
33
+ {{ $user -> name } }
34
+ </x-link >
35
+ </div >
36
+ <p class =" mt-0.5 font-sans text-sm text-gray-500 dark:text-gray-400" >a commenté il y a 2 jours</p >
37
+ </div >
38
+ <div class =" mt-2 text-sm font-normal text-gray-700 dark:text-gray-300" >
39
+ <p >...</p >
40
+ </div >
41
+ </div >
42
+ </div >
43
+ </div >
Original file line number Diff line number Diff line change
1
+ @props ([
2
+ ' activity' ,
3
+ ] )
4
+
5
+ @if ($activity -> subject -> isPublished () )
6
+ <x-feeds .feed :date =" $activity->created_at" >
7
+ <x-slot:icon >
8
+ <x-heroicon-o-newspaper
9
+ class =" size-5 text-gray-700 dark:text-gray-300"
10
+ stroke-width =" 1.5"
11
+ aria-hidden =" true"
12
+ />
13
+ </x-slot:icon >
14
+
15
+ {{ __ (' pages/account.activities.create_article' ) } }
16
+ <x-link
17
+ :href =" route('articles.show', $activity->subject)"
18
+ class =" font-medium text-primary-600 hover:text-primary-700 dark:text-primary-500 dark:hover:text-primary-600"
19
+ >
20
+ {{ $activity -> subject -> title } }
21
+ </x-link >
22
+ </x-feeds .feed >
23
+ @endif
Original file line number Diff line number Diff line change
1
+ @props ([
2
+ ' activity' ,
3
+ ] )
4
+
5
+ <x-feeds .feed :date =" $activity->created_at" >
6
+ <x-slot:icon >
7
+ <x-untitledui-rss
8
+ class =" size-5 text-gray-400 dark:text-gray-500"
9
+ stroke-width =" 1.5"
10
+ aria-hidden =" true"
11
+ />
12
+ </x-slot:icon >
13
+
14
+ {{ __ (' pages/account.activities.create_discussion' ) } }
15
+ <x-link
16
+ :href =" route('discussions.show', $activity->subject)"
17
+ class =" font-medium text-primary-600 hover:text-primary-700 dark:text-primary-500 dark:hover:text-primary-600"
18
+ >
19
+ {{ $activity -> subject -> title } }
20
+ </x-link >
21
+ </x-feeds .feed >
Original file line number Diff line number Diff line change
1
+ @props ([
2
+ ' activity' ,
3
+ ] )
4
+
5
+ <x-feeds .feed :date =" $activity->created_at" >
6
+ <x-slot:icon >
7
+ <x-untitledui-annotation-dots
8
+ class =" size-5 text-gray-400 dark:text-gray-500"
9
+ stroke-width =" 1.5"
10
+ aria-hidden =" true"
11
+ />
12
+ </x-slot:icon >
13
+
14
+ {{ __ (' pages/account.activities.answer_reply' ) } }
15
+
16
+ <x-link
17
+ :href =" url(
18
+ ($activity->subject->replyable_type === 'discussion' ? '/discussions/' : '/forum/')
19
+ . $activity->subject->replyAble->slug . '#reply-'. $activity->subject->id
20
+ )"
21
+ class =" font-medium text-primary-600 hover:text-primary-700 dark:text-primary-500 dark:hover:text-primary-600"
22
+ >
23
+ {{ $activity -> subject -> replyAble -> title } }
24
+ </x-link >
25
+
26
+ @if (strlen ($activity -> subject -> excerpt ()) > 3 )
27
+ <x-slot:content >
28
+ {{ $activity -> subject -> excerpt () } }
29
+ </x-slot:content >
30
+ @endif
31
+ </x-feeds .feed >
Original file line number Diff line number Diff line change
1
+ @props ([
2
+ ' activity' ,
3
+ ] )
4
+
5
+ <x-feeds .feed :date =" $activity->created_at" >
6
+ <x-slot:icon >
7
+ <x-untitledui-help-circle
8
+ class =" size-5 text-gray-400 dark:text-gray-500"
9
+ stroke-width =" 1.5"
10
+ aria-hidden =" true"
11
+ />
12
+ </x-slot:icon >
13
+
14
+ {{ __ (' pages/account.activities.create_thread' ) } }
15
+ <x-link
16
+ :href =" route('forum.show', $activity->subject)"
17
+ class =" font-medium text-primary-600 hover:text-primary-700 dark:text-primary-500 dark:hover:text-primary-600"
18
+ >
19
+ {{ $activity -> subject -> title } }
20
+ </x-link >
21
+ </x-feeds .feed >
Original file line number Diff line number Diff line change
1
+ <li >
2
+ <div class =" relative pb-8" >
3
+ <span class =" absolute left-4 top-5 -ml-px h-full w-0.5 bg-gray-200 dark:bg-white/20" aria-hidden =" true" ></span >
4
+ <div class =" relative flex items-start space-x-3" >
5
+ <div >
6
+ <div class =" relative px-1" >
7
+ <div class =" flex size-8 items-center justify-center rounded-full bg-white dark:bg-gray-800 ring-4 ring-white dark:ring-white/10" >
8
+ <svg
9
+ class =" size-6 text-gray-500 dark:text-gray-400"
10
+ xmlns =" http://www.w3.org/2000/svg"
11
+ fill =" none"
12
+ viewBox =" 0 0 24 24"
13
+ stroke-width =" 1.5"
14
+ stroke =" currentColor"
15
+ >
16
+ <path
17
+ stroke-linecap =" round"
18
+ stroke-linejoin =" round"
19
+ d =" M19 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zM4 19.235v-.11a6.375 6.375 0 0112.75 0v.109A12.318 12.318 0 0110.374 21c-2.331 0-4.512-.645-6.374-1.766z"
20
+ />
21
+ </svg >
22
+ </div >
23
+ </div >
24
+ </div >
25
+ <div class =" min-w-0 flex-1 py-1.5" >
26
+ <div class =" text-sm text-gray-500 dark:text-gray-400" >
27
+ <a
28
+ href =" {{ route (' profile' , [' username' => $user -> username ]) } }"
29
+ class =" font-sans font-medium text-gray-900"
30
+ >
31
+ {{ $user -> name } }
32
+ </a >
33
+ a commencé a suivre
34
+ <a href =" #" class =" font-sans font-medium text-gray-900" >Fabrice Yopa</a >
35
+ <span class =" whitespace-nowrap font-sans" >il y a 3h</span >
36
+ </div >
37
+ </div >
38
+ </div >
39
+ </div >
40
+ </li >
You can’t perform that action at this time.
0 commit comments