This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { Icon } from "astro-icon/components";
|
||||
import Layout from "../layouts/Layout.astro";
|
||||
import ResumeSkills from "../components/ResumeSkills";
|
||||
import PdfDownloadButton from "../components/PdfDownloadButton";
|
||||
import ResumeDownloadButton from "../components/ResumeDownloadButton";
|
||||
import { siteConfig } from "../config/data";
|
||||
import "../styles/global.css";
|
||||
import * as TOML from "@iarna/toml";
|
||||
@@ -111,40 +111,24 @@ if (!data) {
|
||||
)
|
||||
}
|
||||
{
|
||||
data.basics.profiles.find((p) => p.network === "GitHub") && (
|
||||
<a
|
||||
href={
|
||||
data.basics.profiles.find(
|
||||
(p) => p.network === "GitHub",
|
||||
)!.url
|
||||
}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link link-hover inline-flex items-center gap-1 text-sm sm:text-base"
|
||||
>
|
||||
<Icon name="simple-icons:github" /> GitHub
|
||||
</a>
|
||||
)
|
||||
}
|
||||
{
|
||||
data.basics.profiles.find((p) => p.network === "LinkedIn") && (
|
||||
<a
|
||||
href={
|
||||
data.basics.profiles.find(
|
||||
(p) => p.network === "LinkedIn",
|
||||
)!.url
|
||||
}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link link-hover inline-flex items-center gap-1 text-sm sm:text-base"
|
||||
>
|
||||
<Icon name="simple-icons:linkedin" /> LinkedIn
|
||||
</a>
|
||||
)
|
||||
data.basics.profiles.map((profile) => {
|
||||
const iconName = `simple-icons:${profile.network.toLowerCase()}`;
|
||||
return (
|
||||
<a
|
||||
href={profile.url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link link-hover inline-flex items-center gap-1 text-sm sm:text-base"
|
||||
>
|
||||
<Icon name={iconName} />
|
||||
{profile.network}
|
||||
</a>
|
||||
);
|
||||
})
|
||||
}
|
||||
</div>
|
||||
|
||||
<PdfDownloadButton client:load />
|
||||
<ResumeDownloadButton client:load />
|
||||
|
||||
{
|
||||
data.summary && resumeConfig.sections.summary?.enabled && (
|
||||
@@ -159,40 +143,6 @@ if (!data) {
|
||||
)
|
||||
}
|
||||
|
||||
{
|
||||
data.basics.profiles &&
|
||||
data.basics.profiles.length > 0 &&
|
||||
resumeConfig.sections.profiles?.enabled && (
|
||||
<div class="card bg-base-200 shadow-xl mb-4 sm:mb-6">
|
||||
<div class="card-body p-4 sm:p-6 break-words">
|
||||
<h2 class="card-title text-xl sm:text-2xl">
|
||||
{resumeConfig.sections.profiles.title ||
|
||||
"Profiles"}
|
||||
</h2>
|
||||
<div class="flex flex-wrap gap-3 sm:gap-4">
|
||||
{data.basics.profiles.map((profile) => {
|
||||
// Use Simple Icons directly based on network name
|
||||
// Convert network name to lowercase and use simple-icons format
|
||||
const iconName = `simple-icons:${profile.network.toLowerCase()}`;
|
||||
|
||||
return (
|
||||
<a
|
||||
href={profile.url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link link-hover inline-flex items-center gap-1 text-sm sm:text-base"
|
||||
>
|
||||
<Icon name={iconName} />
|
||||
{profile.network}
|
||||
</a>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
{
|
||||
data.skills &&
|
||||
data.skills.length > 0 &&
|
||||
|
||||
Reference in New Issue
Block a user