--- import MainLayout from "../layouts/main.astro"; import profileData from '../data/profile.json'; import Icon from "../components/icon.svelte"; type IconData = { name: string; url: string; icon: string; iconUrl?: string; } const profileName = profileData.name; const personalLinks = []; const profesionalLinks = []; for (let link of profileData.personalLinks) { const withUrl: IconData = { ...link }; withUrl.iconUrl = `/icons/${link.icon}.svg`; personalLinks.push(withUrl); } for (let link of profileData.profesionalLinks) { const withUrl: IconData = { ...link }; withUrl.iconUrl = `/icons/${link.icon}.svg`; profesionalLinks.push(withUrl); } ---

Personal Links

{personalLinks.map(perLink => ( ))}

Profesional Links

{profesionalLinks.map(perLink => ( ))}