diff --git a/src/lib/components/Intro.svelte b/src/lib/components/Intro.svelte index 869540f..0b1db63 100644 --- a/src/lib/components/Intro.svelte +++ b/src/lib/components/Intro.svelte @@ -2,8 +2,9 @@ import ProfileImage from '$lib/assets/profile.png?w=175&h=175&webp'; // LSP complains here but it's a thing I pinky promise import skills from '$lib/skills'; - import type { Song } from '$lib/types'; + let skillsHalfwayPoint = Math.ceil(skills.length / 2); + import type { Song } from '$lib/types'; export let data: { song: Song }; @@ -14,17 +15,20 @@ /> -
+
Profile -
-

Hey! I'm Andrew.

-

I'm a Full-Stack web developer.

-
- {#each skills as skill} +
+

Hey! I'm Andrew.

+

I'm a Full-Stack web developer.

+
+ {#each skills as skill, index} - {skill.alt} + {skill.alt} + {#if skillsHalfwayPoint === index + 1} + + {/if} {/each}