Skip to content

Commit

Permalink
feat(design): [LAR-150] update leader component
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Jan 1, 2025
1 parent 02160f8 commit ae51e91
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions resources/views/components/forum/leader.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,17 @@
{{ $user->solutions_count }}
</span>
</div>
@if($position === 1)
<div class="flex flex-col px-4 py-2.5">
<span class="text-xs/4 text-gray-400 capitalize dark:text-gray-500">
{{ __('global.last_active') }}
</span>

<span class="font-medium text-sm text-gray-700 dark:text-gray-300">
{{ $user->last_active_at?->diffForHumans() }}
</span>
</div>
@else
<div class="flex flex-col px-4 py-2.5 lg:hidden">
<span class="text-xs/4 text-gray-400 capitalize dark:text-gray-500">
{{ __('global.last_active') }}
</span>
<div @class([
'flex flex-col px-4 py-2.5',
'lg:hidden' => $position !== 1,
])>
<span class="text-xs/4 text-gray-400 capitalize dark:text-gray-500">
{{ __('global.last_active') }}
</span>

<span class="font-medium text-sm text-gray-700 dark:text-gray-300">
{{ $user->last_active_at?->diffForHumans() }}
</span>
</div>
@endif
<span class="font-medium text-sm text-gray-700 dark:text-gray-300">
{{ $user->last_active_at?->diffForHumans() }}
</span>
</div>
</div>
</div>

0 comments on commit ae51e91

Please sign in to comment.