mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
wip
This commit is contained in:
parent
8623a25b79
commit
28555af28f
6 changed files with 96 additions and 137 deletions
37
resources/views/components/author-card.blade.php
Normal file
37
resources/views/components/author-card.blade.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
@props(['tip'])
|
||||
|
||||
<div class="flex w-full p-6 space-x-6 bg-gray-50 rounded-2xl">
|
||||
<a href="{{ $tip->author->profile_url }}" target="_blank">
|
||||
<img class="bg-gray-200 rounded-full w-14 h-14" src="{{ asset($tip->author->avatar) }}"
|
||||
alt="{{ $tip->author->name }}">
|
||||
</a>
|
||||
|
||||
<aside class="flex-1 space-y-2 text-left">
|
||||
<a href="{{ $tip->author->profile_url }}" target="_blank"
|
||||
class="block text-xl font-bold">{{ $tip->author->name }}</a>
|
||||
|
||||
<dl class="grid gap-6 sm:grid-cols-2 md:grid-cols-4">
|
||||
@if ($tip->thread)
|
||||
<div>
|
||||
<dt class="text-sm text-gray-500">Thread</dt>
|
||||
|
||||
<dd>
|
||||
<x-link href="{{ route('thread.show', $tip->thread->slug) }}">
|
||||
{{ $tip->thread->title }}
|
||||
</x-link>
|
||||
</dd>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div>
|
||||
<dt class="text-sm text-gray-500">Tweet</dt>
|
||||
|
||||
<dd>
|
||||
<x-link href="{{ $tip->tweet_url }}" target="_blank">
|
||||
twitter.com/...
|
||||
</x-link>
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</aside>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue