WIP
This commit is contained in:
@@ -20,28 +20,15 @@
|
||||
</div>
|
||||
@endpush
|
||||
|
||||
<x-layouts.app>
|
||||
<x-hero-search></x-hero-search>
|
||||
<h1 class="mb-4 mx-8 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white">
|
||||
{{ $category->name }}
|
||||
</h1>
|
||||
<div class="m-8 flex flex-wrap flex-row gap-4">
|
||||
<x-layouts.app :title="$category->name">
|
||||
<div class="flex flex-wrap flex-row gap-4">
|
||||
<x-drawer-trigger target="album-add" action="open" class="relative rounded-lg cursor-pointer h-80 flex-grow flex items-center justify-center bg-gray-300 sm:w-96 dark:bg-gray-700 hover:opacity-50">
|
||||
<svg class="w-24 h-24 text-gray-200 dark:text-gray-600" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7 7V5"/>
|
||||
</svg>
|
||||
</x-drawer-trigger>
|
||||
@foreach ($albums as $album)
|
||||
<figure class="relative rounded-lg cursor-pointer h-80 flex-grow overflow-hidden group">
|
||||
<a href="{{ route('album.show', $album) }}" wire:navigate>
|
||||
<img class="max-h-full min-w-full align-bottom object-cover"
|
||||
src="{{ $album->thumbnail }}" alt="{{ $album->name }} Cover">
|
||||
<figcaption class="absolute p-4 text-lg text-white top-1/2 bottom-0 bg-opacity-20 min-w-full bg-gradient-to-b from-transparent to-slate-900 flex flex-col-reverse">
|
||||
<span class="z-10">{{ $album->name }}</span>
|
||||
</figcaption>
|
||||
<div class="opacity-0 z-0 group-hover:opacity-40 absolute inset-0 w-full h-full bg-black flex items-center justify-center transition-opacity">
|
||||
<svg class="w-1/2 h-1/2 text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
||||
<path stroke="currentColor" stroke-width="2" d="M21 12c0 1.2-4.03 6-9 6s-9-4.8-9-6c0-1.2 4.03-6 9-6s9 4.8 9 6Z"/>
|
||||
<path stroke="currentColor" stroke-width="2" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/>
|
||||
</svg>
|
||||
</div>
|
||||
</a>
|
||||
</figure>
|
||||
<x-album.element :album="$album"></x-album.element>
|
||||
@endforeach
|
||||
</div>
|
||||
<x-drawer name="album-add" >
|
||||
|
||||
Reference in New Issue
Block a user