cards with borders

This commit is contained in:
derMaxie
2023-02-08 21:26:14 +01:00
parent 63fafdf97b
commit 84b6c2f664
2 changed files with 4 additions and 4 deletions

View File

@@ -77,8 +77,8 @@
$link = $isLecturerPage ? route('lecturerMaterial.view', ['libraryItem' => $libraryItem]) : route('libraryItem.view', ['libraryItem' => $libraryItem]); $link = $isLecturerPage ? route('lecturerMaterial.view', ['libraryItem' => $libraryItem]) : route('libraryItem.view', ['libraryItem' => $libraryItem]);
@endphp @endphp
<div wire:key="library_item_{{ $libraryItem->id }}" <div wire:key="library_item_{{ $libraryItem->id }}"
class="flex flex-col overflow-hidden rounded-lg shadow-[#F7931A] shadow-sm"> class="flex flex-col overflow-hidden rounded-lg border-2 border-[#F7931A]">
<div class="flex-shrink-0"> <div class="flex-shrink-0 pt-6">
<a href="{{ $link }}"> <a href="{{ $link }}">
<img class="h-48 w-full object-contain" <img class="h-48 w-full object-contain"
src="{{ $libraryItem->getFirstMediaUrl('main') }}" src="{{ $libraryItem->getFirstMediaUrl('main') }}"

View File

@@ -14,8 +14,8 @@
@foreach($libraryItems as $libraryItem) @foreach($libraryItems as $libraryItem)
<div wire:key="library_item_{{ $libraryItem->id }}" <div wire:key="library_item_{{ $libraryItem->id }}"
class="flex flex-col overflow-hidden rounded-lg shadow-[#F7931A] shadow-sm"> class="flex flex-col overflow-hidden rounded-lg border-2 border-[#F7931A]">
<div class="flex-shrink-0"> <div class="flex-shrink-0 pt-6">
<a href="{{ route('article.view', ['libraryItem' => $libraryItem]) }}"> <a href="{{ route('article.view', ['libraryItem' => $libraryItem]) }}">
<img class="h-48 w-full object-contain" <img class="h-48 w-full object-contain"
src="{{ $libraryItem->getFirstMediaUrl('main') }}" src="{{ $libraryItem->getFirstMediaUrl('main') }}"