From eaac0f977e70cabb9f633d376fa74ff1f57901f8 Mon Sep 17 00:00:00 2001 From: Poyraz <78071274+poyrazavsever@users.noreply.github.com> Date: Tue, 30 Jun 2026 12:53:42 +0300 Subject: [PATCH] feat: implement dynamic resume links and add English and Turkish resume PDFs --- components/links-content.tsx | 5 +++-- components/site-navbar.tsx | 4 ++-- lib/links.ts | 4 ++++ public/{resume-en.pdf => en/resume.pdf} | Bin public/{resume-tr.pdf => tr/resume.pdf} | Bin 5 files changed, 9 insertions(+), 4 deletions(-) rename public/{resume-en.pdf => en/resume.pdf} (100%) rename public/{resume-tr.pdf => tr/resume.pdf} (100%) diff --git a/components/links-content.tsx b/components/links-content.tsx index 3917507..ef8ecdf 100644 --- a/components/links-content.tsx +++ b/components/links-content.tsx @@ -14,6 +14,7 @@ import { } from "poyraz-ui/atoms"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "poyraz-ui/molecules"; import { + getResumeHref, LINK_DIRECTORY, LINK_DIRECTORY_CATEGORIES, SOCIAL_LINKS, @@ -158,7 +159,7 @@ export function LinksContent() {
{TOP_ICON_LINKS.map((item) => { - const href = item.id === "cv" ? `/resume-${locale}.pdf` : item.href; + const href = item.id === "cv" ? getResumeHref(locale) : item.href; return ( {filteredItems.map((item) => { - const href = item.id === "cv" ? `/resume-${locale}.pdf` : item.href; + const href = item.id === "cv" ? getResumeHref(locale) : item.href; const isStaticOrExternal = item.external || item.id === "rss" || item.id === "cv" || href.endsWith(".xml") || href.endsWith(".pdf"); const CardContent = ( diff --git a/components/site-navbar.tsx b/components/site-navbar.tsx index eb19e3f..d3be3a2 100644 --- a/components/site-navbar.tsx +++ b/components/site-navbar.tsx @@ -26,7 +26,7 @@ import { SheetTrigger, } from "poyraz-ui/molecules"; import { useKeyboardShortcutLabel } from "@/lib/use-keyboard-shortcut-label"; -import { NAV_LINKS, SOCIAL_LINKS, TOP_ICON_LINKS } from "@/lib/links"; +import { getResumeHref, NAV_LINKS, SOCIAL_LINKS, TOP_ICON_LINKS } from "@/lib/links"; const SearchCommand = dynamic( () => import("@/components/search-command").then((mod) => mod.SearchCommand), @@ -58,7 +58,7 @@ export function SiteNavbar() {
{TOP_ICON_LINKS.map((item) => { - const href = item.id === "cv" ? `/resume-${locale}.pdf` : item.href; + const href = item.id === "cv" ? getResumeHref(locale) : item.href; return (