Files
omg-wtf-ai/resources/views/components/skill-card.blade.php
T
2026-08-11 00:42:46 +03:00

33 lines
1.4 KiB
PHP

<article class="flex flex-col rounded-lg border border-neutral-200 p-5">
<div class="flex items-center gap-3">
@if ($skill->logo_url)
<img src="{{ $skill->logo_url }}" alt="{{ $skill->name }} logo" class="h-10 w-10 rounded-md object-cover" loading="lazy">
@endif
<div>
<h3 class="font-semibold leading-tight">
<a href="{{ route('skills.show', $skill) }}" class="hover:underline">{{ $skill->name }}</a>
</h3>
<a href="{{ route('skills.category', $skill->category) }}" class="text-xs text-neutral-500 hover:text-neutral-900">
{{ $skill->category_label }}
</a>
</div>
@if ($skill->featured)
<span class="ml-auto rounded-full bg-amber-100 px-2 py-0.5 text-xs font-medium text-amber-800">Featured</span>
@endif
</div>
<p class="mt-3 flex-1 text-sm text-neutral-600">{{ str($skill->description)->limit(120) }}</p>
<div class="mt-4 flex flex-wrap items-center justify-between gap-2">
@if ($skill->requirements)
<span class="rounded-full bg-neutral-100 px-2 py-0.5 text-xs text-neutral-700">{{ $skill->requirements }}</span>
@endif
<a
href="{{ route('skills.show', $skill) }}"
class="ml-auto text-sm font-medium text-neutral-900 hover:underline"
>
View details &rarr;
</a>
</div>
</article>