Skip to content

Commit cf28f01

Browse files
✨ Enhance welcome view with animated SVG and update image dimensions
1 parent 6a05c3e commit cf28f01

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

resources/views/welcome.blade.php

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,24 @@ class="absolute right-1/2 top-1/2 grid size-16 -translate-y-1/2 translate-x-1/2
317317
aria-hidden="true"
318318
>
319319
<svg
320+
x-init="
321+
() => {
322+
motion.animate(
323+
$el,
324+
{
325+
x: [0, 3],
326+
},
327+
{
328+
duration: 0.6,
329+
repeat: Infinity,
330+
repeatType: 'mirror',
331+
ease: motion.easeInOut,
332+
},
333+
)
334+
}
335+
"
320336
xmlns="http://www.w3.org/2000/svg"
321-
class="size-8"
337+
class="size-7"
322338
viewBox="0 0 17 22"
323339
fill="none"
324340
aria-hidden="true"
@@ -336,9 +352,9 @@ class="size-8"
336352
<img
337353
src="{{ Vite::asset('resources/images/simon2025laraconeu.webp') }}"
338354
alt="Simon Hamp presenting at Laracon EU 2025 on building mobile apps with PHP"
339-
class="w-full max-w-80 rounded-xl"
340-
width="320"
341-
height="180"
355+
class="w-full max-w-96 rounded-xl"
356+
width="384"
357+
height="216"
342358
loading="lazy"
343359
/>
344360
</a>

0 commit comments

Comments
 (0)