@@ -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