This commit is contained in:
2026-02-04 18:00:06 +04:00
parent 763ecd1273
commit 4a5fd2fb62
5 changed files with 35 additions and 8 deletions

View File

@@ -41,13 +41,21 @@ const id = `profile-${side}`;
<div class="text-center text-neutral-400 mb-2.5 transition">{profileConfig.bio}</div>
<div class="flex gap-2 justify-center mb-1">
{profileConfig.links.length > 1 && profileConfig.links.map(item =>
<a rel="me" aria-label={item.name} href={item.url} target="_blank" class="btn-regular rounded-lg h-10 w-10 active:scale-90">
<Icon name={item.icon} class="text-[1.5rem]"></Icon>
<a rel="me" aria-label={item.name} href={item.url} target="_blank" class="btn-regular rounded-lg h-10 w-10 active:scale-90 flex items-center justify-center">
{item.rawIcon ? (
<span class="text-[1.5rem] [&>svg]:w-full [&>svg]:h-full [&>svg]:block" set:html={item.rawIcon}></span>
) : (
<Icon name={item.icon} class="text-[1.5rem]"></Icon>
)}
</a>
)}
{profileConfig.links.length == 1 && <a rel="me" aria-label={profileConfig.links[0].name} href={profileConfig.links[0].url} target="_blank"
class="btn-regular rounded-lg h-10 gap-2 px-3 font-bold active:scale-95">
<Icon name={profileConfig.links[0].icon} class="text-[1.5rem]"></Icon>
class="btn-regular rounded-lg h-10 gap-2 px-3 font-bold active:scale-95 flex items-center">
{profileConfig.links[0].rawIcon ? (
<span class="text-[1.5rem] [&>svg]:w-full [&>svg]:h-full [&>svg]:block" set:html={profileConfig.links[0].rawIcon}></span>
) : (
<Icon name={profileConfig.links[0].icon} class="text-[1.5rem]"></Icon>
)}
{profileConfig.links[0].name}
</a>}
</div>