Corrected icons links

This commit is contained in:
Rafael González committed 2022-01-19 16:35:47 -06:00
1 parent 94149e8478
commit 0612858f6f
13 files changed
+20 -5

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+12
View File
@@ -0,0 +1,12 @@
BEGIN:VCARD
VERSION:3.0
FN;CHARSET=UTF-8:Rafael González
N;CHARSET=UTF-8:González;Rafael;;;
EMAIL;CHARSET=UTF-8;type=HOME,INTERNET:rraaffaarafa@gmail.com
EMAIL;CHARSET=UTF-8;type=WORK,INTERNET:rafa@acromati.co
TEL;TYPE=CELL:+525512952572
TEL;TYPE=WORK,VOICE:+525621092388
TITLE;CHARSET=UTF-8:CEO
ORG;CHARSET=UTF-8:Acromático Development
REV:2022-01-19T21:39:40.022Z
END:VCARD
+4 -2
View File
@@ -2,6 +2,8 @@
export let perLink; export let perLink;
export let profileName; export let profileName;
console.log(perLink)
function handleClick(event){ function handleClick(event){
gtag('event', 'view_item', { gtag('event', 'view_item', {
'event_category' : 'Links', 'event_category' : 'Links',
@@ -10,8 +12,8 @@
} }
</script> </script>
<div class="p-2"> <div class="p-2" on:click={handleClick}>
<a class="w-full flex flex-col justify-center items-center" href={perLink.url} target="_blank" rel="noopener" on:click={handleClick}> <a class="w-full flex flex-col justify-center items-center" href={perLink.url} target="_blank" rel="noopener" >
<img <img
loading="lazy" loading="lazy"
class="w-1/2 dark:invert" class="w-1/2 dark:invert"
+4 -3
View File
@@ -10,7 +10,7 @@ const profesionalLinks = [];
for (let link of profileData.personalLinks) { for (let link of profileData.personalLinks) {
const withUrl = {...link}; const withUrl = {...link};
withUrl.iconUrl = Astro.resolve(`../icons/${link.icon}.svg`); withUrl.iconUrl = `/icons/${link.icon}.svg`;
personalLinks.push(withUrl); personalLinks.push(withUrl);
} }
@@ -18,7 +18,7 @@ for (let link of profileData.personalLinks) {
for (let link of profileData.profesionalLinks) { for (let link of profileData.profesionalLinks) {
const withUrl = {...link}; const withUrl = {...link};
withUrl.iconUrl = Astro.resolve(`../icons/${link.icon}.svg`); withUrl.iconUrl = `/icons/${link.icon}.svg`;
profesionalLinks.push(withUrl); profesionalLinks.push(withUrl);
} }
@@ -85,7 +85,8 @@ for (let link of profileData.profesionalLinks) {
alt="Rafael González" 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> <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> </header>
<main> <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> <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>