Skip to content

Commit

Permalink
feat: add profile simplified compoenent (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
ell-ska authored Feb 7, 2025
2 parents dfb7322 + 37eef9c commit 5417701
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions resources/views/components/profile-simplified.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@props([
'username',
'image',
'size',
])

<div
@class([
'flex',
'items-center',
'gap-1' => $size === 'sm',
'gap-2' => $size === 'md',
])
>
<x-avatar :image="$image" :size="$size" />
<p
@class([
'text-slate-50',
'text-sm' => $size === 'sm',
'text-base' => $size === 'md',
])
>
{{ $username }}
</p>
</div>

0 comments on commit 5417701

Please sign in to comment.