Files
omg-wtf-ai/resources/views/skills/show.blade.php
T

91 lines
3.5 KiB
PHP
Raw Normal View History

2026-08-11 00:42:46 +03:00
<x-layouts.app :title="$title" :description="$description" :canonical="$canonical" :image="$image ?? null">
@push('jsonld')
<script type="application/ld+json">
{!! json_encode([
'@@context' => 'https://schema.org',
'@type' => 'SoftwareApplication',
'name' => $skill->name,
'description' => $description,
'url' => $skill->url,
...($skill->logo_url ? ['image' => $skill->logo_url] : []),
'applicationCategory' => $skill->category_label,
]) !!}
</script>
@endpush
<p class="text-sm text-neutral-500">
<a href="{{ route('skills.index') }}" class="hover:underline">Claude Skills</a>
<span aria-hidden="true">/</span>
<a href="{{ route('skills.category', $skill->category) }}" class="hover:underline">{{ $skill->category_label }}</a>
</p>
<div class="mt-4 flex items-start gap-4">
@if ($skill->logo_url)
<img src="{{ $skill->logo_url }}" alt="{{ $skill->name }} logo" class="h-16 w-16 rounded-lg object-cover">
@endif
<div>
<h1 class="text-3xl font-bold tracking-tight">{{ $skill->name }}</h1>
<p class="mt-1 text-sm text-neutral-500">
{{ $skill->category_label }}
@if ($skill->requirements) &middot; {{ $skill->requirements }} @endif
</p>
</div>
</div>
<div class="mt-6 flex flex-wrap gap-3">
<a
href="{{ route('skills.visit', $skill) }}"
target="_blank"
rel="nofollow noopener"
class="inline-block rounded-lg bg-neutral-900 px-5 py-2.5 text-sm font-medium text-white hover:bg-neutral-700"
>
View repository &rarr;
</a>
@if ($skill->docs_url)
<a
href="{{ $skill->docs_url }}"
target="_blank"
rel="nofollow noopener"
class="inline-block rounded-lg border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-900 hover:bg-neutral-50"
>
Documentation &rarr;
</a>
@endif
</div>
<p class="mt-8 text-neutral-700">{{ $skill->description }}</p>
@if ($skill->install_instructions)
<div class="mt-8">
<h2 class="text-lg font-semibold">How to install</h2>
<p class="mt-3 text-neutral-700">{{ $skill->install_instructions }}</p>
</div>
@endif
@if ($skill->example_prompt)
<div class="mt-8">
<h2 class="text-lg font-semibold">Example prompt</h2>
<pre class="mt-3 overflow-x-auto rounded-lg bg-neutral-900 p-4 text-sm text-neutral-100"><code>{{ $skill->example_prompt }}</code></pre>
</div>
@endif
@if (! empty($skill->tags))
<div class="mt-8 flex flex-wrap gap-2">
@foreach ($skill->tags as $tag)
<span class="rounded-full bg-neutral-100 px-3 py-1 text-sm text-neutral-700">#{{ $tag }}</span>
@endforeach
</div>
@endif
@if ($related->isNotEmpty())
<div class="mt-12 border-t border-neutral-200 pt-8">
<h2 class="text-lg font-semibold">More {{ $skill->category_label }} skills</h2>
<div class="mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2">
@foreach ($related as $relatedSkill)
<x-skill-card :skill="$relatedSkill" />
@endforeach
</div>
</div>
@endif
</x-layouts.app>