Corrected icons links

This commit is contained in:
Rafael González
2022-01-19 16:35:47 -06:00
parent 94149e8478
commit 0612858f6f
13 changed files with 20 additions and 5 deletions
+4 -3
View File
@@ -10,7 +10,7 @@ const profesionalLinks = [];
for (let link of profileData.personalLinks) {
const withUrl = {...link};
withUrl.iconUrl = Astro.resolve(`../icons/${link.icon}.svg`);
withUrl.iconUrl = `/icons/${link.icon}.svg`;
personalLinks.push(withUrl);
}
@@ -18,7 +18,7 @@ for (let link of profileData.personalLinks) {
for (let link of profileData.profesionalLinks) {
const withUrl = {...link};
withUrl.iconUrl = Astro.resolve(`../icons/${link.icon}.svg`);
withUrl.iconUrl = `/icons/${link.icon}.svg`;
profesionalLinks.push(withUrl);
}
@@ -85,7 +85,8 @@ for (let link of profileData.profesionalLinks) {
alt="Rafael González"
>
<h1 class="font-mono font-bold underline underline-offset-8 uppercase text-4xl my-4 tracking-wide dark:text-white">{profileName}</h1>
<p class="font-mono text-l mt-4 mx-auto w-11/12 max-w-5xl tracking-wide dark:text-white">{profileData.description}</p>
<p class="font-mono text-l my-4 sm:mt-4 sm:mb-0 mx-auto w-11/12 max-w-5xl tracking-wide dark:text-white">{profileData.description}</p>
<a href="/main.vcf" target="_blank" rel="noopener" class="md:invisible"><button class="mt-4 p-4 bg-black text-white dark:text-black dark:bg-white border-2 border-black rounded-md font-bold uppercase tracking-wide">Agregar a Contactos</button></a>
</header>
<main>
<h2 class="font-mono font-bold uppercase text-xl my-14 mx-auto tracking-wide w-11/12 max-w-5xl dark:text-white">Personal Links</h2>