Skip to content

Commit 02965c1

Browse files
🔥 Remove early adopter card animation
1 parent e7f5a25 commit 02965c1

File tree

2 files changed

+24
-45
lines changed

2 files changed

+24
-45
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
])
88

99
<article
10-
class="group mt-3 inline-block break-inside-avoid overflow-hidden rounded-2xl text-center opacity-0 transition duration-300 ease-out will-change-transform hover:scale-102 xl:mt-5"
10+
class="group mt-3 inline-block break-inside-avoid overflow-hidden rounded-2xl text-center transition duration-300 ease-out will-change-transform hover:scale-102 xl:mt-5"
1111
itemscope
1212
>
1313
<figure class="grid">
@@ -55,7 +55,7 @@ class="capitalize transition duration-300 ease-out will-change-transform group-h
5555
@class([
5656
'relative z-10 self-center justify-self-center object-cover brightness-80 transition duration-300 [grid-area:1/-1] group-hover:brightness-100',
5757
'aspect-[1/1.3] xl:aspect-[1/1.5]' => $featured,
58-
'aspect-square max-h-50 grayscale group-hover:grayscale-0 xl:max-h-none' => ! $featured,
58+
'aspect-square max-h-50 xl:max-h-none' => ! $featured,
5959
])
6060
/>
6161

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

Lines changed: 22 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -117,49 +117,24 @@ class="mx-auto mt-5 max-w-2xl text-center text-base/relaxed text-gray-600 sm:tex
117117
->get();
118118
119119
// Convert approved submissions to the format expected by the component
120-
$earlyAdopters = $approvedSubmissions->map(function ($submission) {
121-
return [
122-
'name' => $submission->name,
123-
'title' => $submission->company,
124-
'url' => $submission->url,
125-
'image' => $submission->photo_path
126-
? asset('storage/' . $submission->photo_path)
127-
: 'https://avatars.laravel.cloud/' . rand(1, 70) . '?vibe=' . array_rand(['ocean', 'crystal', 'bubble', 'forest', 'sunset']),
128-
'featured' => rand(0, 4) === 0, // Randomly feature about 20% of submissions
129-
'testimonial' => $submission->testimonial,
130-
];
131-
})->toArray();
120+
$earlyAdopters = $approvedSubmissions
121+
->map(function ($submission) {
122+
return [
123+
'name' => $submission->name,
124+
'title' => $submission->company,
125+
'url' => $submission->url,
126+
'image' => $submission->photo_path
127+
? asset('storage/' . $submission->photo_path)
128+
: 'https://avatars.laravel.cloud/' . rand(1, 70) . '?vibe=' . array_rand(['ocean', 'crystal', 'bubble', 'forest', 'sunset']),
129+
'featured' => rand(0, 4) === 0, // Randomly feature about 20% of submissions
130+
'testimonial' => $submission->testimonial,
131+
];
132+
})
133+
->toArray();
132134
@endphp
133135

134-
@if(count($earlyAdopters) > 0)
136+
@if (count($earlyAdopters) > 0)
135137
<div
136-
x-init="
137-
() => {
138-
motion.inView($el, (element) => {
139-
const children = Array.from($el.children)
140-
141-
children.forEach((child, i) => {
142-
const range = 20 // px
143-
const xFrom = (Math.random() * 2 - 1) * range
144-
const yFrom = (Math.random() * 2 - 1) * range
145-
146-
motion.animate(
147-
child,
148-
{
149-
x: [xFrom, 0],
150-
y: [yFrom, 0],
151-
opacity: [0, 1],
152-
},
153-
{
154-
duration: 0.7,
155-
ease: motion.backOut,
156-
delay: i * 0.06,
157-
},
158-
)
159-
})
160-
})
161-
}
162-
"
163138
class="relative z-10 mt-10 grid place-items-center 2xs:block 2xs:columns-[10rem] xl:columns-[12rem]"
164139
>
165140
@foreach ($earlyAdopters as $adopter)
@@ -174,9 +149,13 @@ class="relative z-10 mt-10 grid place-items-center 2xs:block 2xs:columns-[10rem]
174149
</div>
175150
@else
176151
<div class="relative z-10 mt-10 text-center">
177-
<div class="bg-white dark:bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 mx-auto max-w-md border border-gray-200 dark:border-gray-700">
178-
<div class="text-6xl mb-4">🚀</div>
179-
<h3 class="text-xl font-semibold text-gray-900 dark:text-white mb-2">
152+
<div
153+
class="mx-auto max-w-md rounded-2xl border border-gray-200 bg-white p-8 backdrop-blur-sm dark:border-gray-700 dark:bg-gray-800/50"
154+
>
155+
<div class="mb-4 text-6xl">🚀</div>
156+
<h3
157+
class="mb-2 text-xl font-semibold text-gray-900 dark:text-white"
158+
>
180159
Coming Soon!
181160
</h3>
182161
<p class="text-gray-600 dark:text-gray-400">

0 commit comments

Comments
 (0)