Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5860766

Browse files
author
Joel Butcher
committedNov 19, 2021
added new default avatar
1 parent 374f349 commit 5860766

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed
 

‎resources/views/components/avatar.blade.php

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@
77
<a href="{{ route('profile', $user->username()) }}">
88
@endunless
99

10-
<x-buk-avatar
11-
:search="$user->githubUsername()"
12-
provider="github"
13-
:fallback="asset('/images/user.svg')"
14-
:alt="$user->name()"
15-
{{ $attributes->merge(['class' => 'rounded-full text-gray-500']) }}
16-
/>
10+
@if ($user->githubUsername())
11+
<x-buk-avatar
12+
:search="$user->githubUsername()"
13+
provider="github"
14+
:fallback="asset('/images/user.svg')"
15+
:alt="$user->name()"
16+
{{ $attributes->merge(['class' => 'rounded-full text-gray-500']) }}
17+
/>
18+
@else
19+
<div {{ $attributes->merge(['class' => 'bg-gray-100 rounded-full text-gray-500 relative flex items-center justify-center']) }}>
20+
<img
21+
src="{{ asset('images/laravel.png') }}"
22+
alt="{{ $user->name() }}"
23+
class="filter grayscale"
24+
/>
25+
</div>
26+
@endif
1727

1828
@unless ($unlinked)
1929
</a>

0 commit comments

Comments
 (0)
Please sign in to comment.