Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [LAR-150] add forum leaderboard page #289

Merged
merged 4 commits into from
Jan 1, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat(design): [LAR-150] update leader component
mckenziearts committed Jan 1, 2025
commit ae51e911db0edf0e9f1b9e835ca5fef74e2e7b59
31 changes: 11 additions & 20 deletions resources/views/components/forum/leader.blade.php
Original file line number Diff line number Diff line change
@@ -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>