Skip to content

Commit

Permalink
Merge pull request #90 from frontChapter/develop
Browse files Browse the repository at this point in the history
feat: :fix disable voting
  • Loading branch information
lokiwich authored Feb 29, 2024
2 parents ef2890a + 9df1015 commit 83417b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/Livewire/Festival/ListSites.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function getSites()
return FestivalSite::whereStatus(FestivalSiteStatus::PUBLISHED)
->orderBy("count", "DESC")
->orderBy("score", "DESC")
->paginate(23);
->paginate(24);
}

public function render()
Expand Down
12 changes: 6 additions & 6 deletions resources/views/livewire/festival/list-sites.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@
</div>
@forelse ($sites as $site)
<a wire:navigate href="{{ route('festival-site.single', $site) }}"
class="col-span-12 @if(!in_array($loop->iteration, [1,2,3])) 2xl:col-span-3 @endif lg:col-span-4 md:col-span-6 ">
class="col-span-12 2xl:col-span-3 lg:col-span-4 md:col-span-6 ">

<div
class="overflow-hidden rounded-lg bg-white dark:bg-secondary-800 @if(in_array($loop->iteration, [1,2,3]) && $sites->currentPage() === 1) border-2 border-indigo-500 !bg-indigo-600 text-white @endif">
class="overflow-hidden rounded-lg bg-white dark:bg-secondary-800 @if(in_array($loop->iteration, [1,2,3,4,5,6,7,8,9,10]) && $sites->currentPage() === 1) border-2 border-indigo-500 !bg-indigo-600 text-white @endif">

<div
style="@if(in_array($loop->iteration, [1,2,3]) && $sites->currentPage() === 1) background: url('{{ asset('images/carrot-pattern.png') }}'); background-size:64px @endif">
style="@if(in_array($loop->iteration, [1,2,3,4,5,6,7,8,9,10]) && $sites->currentPage() === 1) background: url('{{ asset('images/carrot-pattern.png') }}'); background-size:64px @endif">
<div
class="@if(in_array($loop->iteration, [1,2,3]) && $sites->currentPage() === 1) bg-gradient-to-br from-indigo-500/40 via-indigo-500/85 via-15% to-30% to-indigo-500 @endif">
class="@if(in_array($loop->iteration, [1,2,3,4,5,6,7,8,9,10]) && $sites->currentPage() === 1) bg-gradient-to-br from-indigo-500/40 via-indigo-500/85 via-15% to-30% to-indigo-500 @endif">
<div class="px-5 py-5">
<div class="flex items-center gap-4">
<x-avatar squared size="h-14 w-14" :src="$site->logo_url" :alt="$site->name" />
<div class="w-[calc(100%-4.5rem)]">
<h2
class="@if(in_array($loop->iteration, [1,2,3]) && $sites->currentPage() === 1) text-white @endif mb-1 text-xl font-semibold">
class="@if(in_array($loop->iteration, [1,2,3,4,5,6,7,8,9,10]) && $sites->currentPage() === 1) text-white @endif mb-1 text-xl font-semibold">
{{ $site->name }}
</h2>
<p class="@if(in_array($loop->iteration, [1,2,3]) && $sites->currentPage() === 1) text-white @endif flex-1 overflow-hidden whitespace-nowrap max-w-fit opacity-90 text-ellipsis rtl:text-right"
<p class="@if(in_array($loop->iteration, [1,2,3,4,5,6,7,8,9,10]) && $sites->currentPage() === 1) text-white @endif flex-1 overflow-hidden whitespace-nowrap max-w-fit opacity-90 text-ellipsis rtl:text-right"
dir="ltr">
{{ $site->url }}
</p>
Expand Down

0 comments on commit 83417b1

Please sign in to comment.