@@ -9,10 +9,11 @@ definePageMeta({
99 index: 0 ,
1010});
1111
12- const { activity , fetchActivity } = useActivity ();
12+ const { location, residency, nowPlaying , fetchActivity } = useActivity ();
1313const { codeLang, allCodeLangs } = useCodeLang ();
1414
1515const { data : posts } = await useDevLogs ();
16+ const showEmail = ref (false );
1617
1718const postDateFormatter = new Intl .DateTimeFormat (" en-US" , {
1819 month: " short" ,
@@ -22,6 +23,8 @@ const postDateFormatter = new Intl.DateTimeFormat("en-US", {
2223
2324onMounted (() => {
2425 if (import .meta .browser ) {
26+ // only show on mounted.
27+ showEmail .value = true ;
2528 fetchActivity ();
2629 }
2730});
@@ -39,27 +42,29 @@ onMounted(() => {
3942 <p class =" mb-1" >Mobile & Web Developer</p >
4043 <p class =" text-neutral-300" >
4144 <span class =" text-white inline-block mr-1 size-[1em]" v-html =" PhMapPinSVG" ></span >
42- <span >Irvine, CA </span >
45+ <span >{{ [residency.city, residency.state].join(", ") }} </span >
4346 </p >
44- <p v-if =" !!activity?. location?.city || !!activity?.location?.state || (!!activity?.location?.region && activity.location.residency?.city !== activity.location.city && activity.location.residency?.state != activity.location.state) " class =" text-neutral-300" >
47+ <p v-if =" location" class =" text-neutral-300" >
4548 <span class =" text-white inline-block mr-1 size-[1em] -scale-x-100 animate-pulse" v-html =" PhNavigationArrowSVG" ></span >
4649 <span >Currently in </span >
47- <span class =" font-bold italic text-white" >{{ [activity. location.city || "", activity. location.state || "", activity. location.region || ""].filter((s) => !!s).join(", ") }}</span >
50+ <span class =" font-bold italic text-white" >{{ [location.city || "", location.state || "", location.region || ""].filter((s) => !!s).join(", ") }}</span >
4851 </p >
49- <p v-if =" activity?. nowPlaying" class =" text-neutral-300" >
52+ <p v-if =" nowPlaying" class =" text-neutral-300" >
5053 <span class =" text-white inline-block mr-1 size-[1em] animate-pulse" v-html =" PhWaveFormSVG" ></span >
5154 <span >Listening to </span >
52- <span class =" font-bold italic text-white" >{{ [activity. nowPlaying.title, activity. nowPlaying.artist || ""].join(" — ") }}</span >
55+ <span class =" font-bold italic text-white" >{{ [nowPlaying.title, nowPlaying.artist || ""].join(" — ") }}</span >
5356 </p >
5457 <p class =" pt-3 pb-5" :class =" codeLang.id !== 'md' ? 'text-neutral-300' : ''" >{{ codeLang.id !== "md" ? "// " : "" }}I'm a passionate software developer who builds applications using Swift and modern web technologies.</p >
5558 <div class =" flex flex-row flex-wrap gap-2 text-sm text-white" >
5659 <NuxtLink external to="/ebs-resume.pdf " class="border border-border px-3 py-2">
5760 <code v-if =" codeLang.id == 'md'" >[resume](ebs-resume.pdf)</code >
5861 <code v-else >user.resume() <span class =" text-neutral-500" >// ebs-resume.pdf</span ></code >
5962 </NuxtLink >
60- <NuxtLink to="mailto:me @erikb .dev " class="border border-border px-3 py-2 bg-white text-black">
61- <code v-if =" codeLang.id == 'md'" >[email](me@erikb.dev)</code >
62- <code v-else >user.email() <span class =" text-neutral-700" >// me@erikb.dev</span ></code >
63+ <NuxtLink :to =" ` mailto:${showEmail ? ' me@erikb.dev' : ' ' } ` " class="border border-border px-3 py-2 bg-white text-black">
64+ <code v-if =" codeLang.id == 'md'" >[email]{{ showEmail ? "(me@erikb.dev)" : "" }}</code >
65+ <code v-else
66+ >user.email() <span class =" text-neutral-700" >{{ showEmail ? "// me@erikb.dev" : "" }}</span ></code
67+ >
6368 </NuxtLink >
6469 <NuxtLink to="https://github.com /erikbdev" class="border border-border px-3 py-2 bg-white text-black">
6570 <code v-if =" codeLang.id == 'md'" >[github](/erikbdev)</code >
0 commit comments