Skip to content

Commit d391575

Browse files
committed
Improve wall of love rendering
1 parent 992d66d commit d391575

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/views/components/wall-of-love/early-adopter-card.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class="group mt-3 inline-block break-inside-avoid overflow-hidden rounded-2xl te
1616
@class([
1717
'relative z-20 w-full self-end justify-self-start truncate bg-gradient-to-t px-4 pt-13 pb-4 text-white [grid-area:1/-1]',
1818
'from-blue-500 to-transparent' => $featured,
19-
'from-black to-transparent' => ! $featured,
19+
'from-black/70 to-transparent' => ! $featured,
2020
])
2121
>
2222
<div

resources/views/wall-of-love.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class="mx-auto mt-5 max-w-2xl text-center text-base/relaxed text-gray-600 sm:tex
113113
@php
114114
// Get approved submissions
115115
$approvedSubmissions = App\Models\WallOfLoveSubmission::whereNotNull('approved_at')
116-
->orderBy('approved_at', 'desc')
116+
->inRandomOrder()
117117
->get();
118118
119119
// Convert approved submissions to the format expected by the component
@@ -124,7 +124,7 @@ class="mx-auto mt-5 max-w-2xl text-center text-base/relaxed text-gray-600 sm:tex
124124
'url' => $submission->url,
125125
'image' => $submission->photo_path
126126
? asset('storage/' . $submission->photo_path)
127-
: 'https://i.pravatar.cc/300?img=' . rand(1, 70),
127+
: 'https://avatars.laravel.cloud/' . rand(1, 70) . '?vibe=' . array_rand(['ocean', 'crystal', 'bubble', 'forest', 'sunset']),
128128
'featured' => rand(0, 4) === 0, // Randomly feature about 20% of submissions
129129
'testimonial' => $submission->testimonial,
130130
];

0 commit comments

Comments
 (0)