You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
606 B
PHTML
20 lines
606 B
PHTML
2 years ago
|
@props(['date', 'link' => '', 'link_name', 'title', 'newest' => false])
|
||
|
|
||
|
<div class="inline-flex w-full">
|
||
|
|
||
|
<!-- Date -->
|
||
|
<div class="pr-2">
|
||
|
<span {{$attributes->merge(['class' => "font-bold"])}} ">{{ $date }}</span>:
|
||
|
</div>
|
||
|
|
||
|
<!-- Title -->
|
||
|
<div class="grow {{$newest ? 'text-white' : ''}} justify-self-start max-w-sm overflow-hidden text-ellipsis">{{ $title }}</div>
|
||
|
|
||
|
<!-- Link -->
|
||
|
@if ($link !== '')
|
||
|
<div>
|
||
|
(<span class="text-blue-400 hover:text-blue-300 underline"><a href="{{ $link }}">{{ $link_name }}</a></span>)
|
||
|
</div>
|
||
|
@endif
|
||
|
</div>
|