--- import { Icon } from "astro-icon/components"; import ImageWrapper from "@/components/common/ImageWrapper.astro"; import { profileConfig } from "@/config/profileConfig"; import { url } from "@/utils/url-utils"; ---
{profileConfig.name}
{profileConfig.bio}
{profileConfig.links.length > 1 && profileConfig.links.map(item => { const showName = item.showName; const className = showName ? "btn-regular rounded-lg h-10 gap-2 px-3 font-bold active:scale-95" : "btn-regular rounded-lg h-10 w-10 active:scale-90"; if (item.url.startsWith("mailto:")) { const encodedEmail = Buffer.from(item.url.replace("mailto:", "")).toString("base64"); return {showName && item.name} } else { return {showName && item.name} } } )} {profileConfig.links.length == 1 && (function(item){ if (item.url.startsWith("mailto:")) { const encodedEmail = Buffer.from(item.url.replace("mailto:", "")).toString("base64"); return {item.name} } else { return {item.name} } })(profileConfig.links[0])}