diff --git a/components/home-hero.tsx b/components/home-hero.tsx index f72b05b..422ba37 100644 --- a/components/home-hero.tsx +++ b/components/home-hero.tsx @@ -63,8 +63,12 @@ export function HomeHero({ news }: HomeHeroProps) { Avsever - - {t("role")} + + {t.rich("role", { + strong: (chunks) => ( + {chunks} + ), + })} 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/reference-cards.tsx b/components/reference-cards.tsx index 07556c4..33a1b59 100644 --- a/components/reference-cards.tsx +++ b/components/reference-cards.tsx @@ -12,25 +12,22 @@ type ReferenceCardsProps = { export function ReferenceCards({ className, cardClassName, lineClamp }: ReferenceCardsProps) { const locale = useLocale(); + const hoverClassName = + "transition-colors duration-200 group-hover:border-red-600/40 group-hover:bg-muted/30 group-hover:shadow-sm"; return (
{REFERENCES.map((item) => { const quoteText = getLocalizedValue(item.quote, locale); - const quoteContent = lineClamp ? ( - {quoteText} - ) : ( - quoteText - ); const card = ( ); @@ -47,7 +44,7 @@ export function ReferenceCards({ className, cardClassName, lineClamp }: Referenc target="_blank" rel="noreferrer" aria-label={`${item.author} bağlantısı`} - className="block h-full transition-transform hover:scale-[1.02]" + className="group block h-full" > {card} diff --git a/components/references-detail-content.tsx b/components/references-detail-content.tsx index c9f0379..385b0c8 100644 --- a/components/references-detail-content.tsx +++ b/components/references-detail-content.tsx @@ -6,7 +6,7 @@ export function ReferencesDetailContent() { const t = useTranslations("About"); return ( -
+
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 ( full-stack products, shape experiences with AI systems, and explain technology-design-software through practical content.", "sections": { "recentPosts": "Recent Posts", "references": "References", diff --git a/messages/tr.json b/messages/tr.json index 966d188..f97b7f7 100644 --- a/messages/tr.json +++ b/messages/tr.json @@ -14,7 +14,7 @@ "resume": "Özgeçmiş" }, "Home": { - "role": "Teknolojiyi merak eden bir genç. Yazılım geliştirme, yapay zeka ve teknoloji dünyasındaki gelişmeleri takip ediyor.", + "role": "Full-stack ürünler geliştiriyor, yapay zeka sistemleriyle deneyimler kuruyor ve teknoloji-tasarım-yazılımı uygulanabilir içeriklerle anlatıyorum.", "sections": { "recentPosts": "Son Yazılar", "references": "Referanslar", diff --git a/middleware.ts b/middleware.ts index 7a5bd15..c400a88 100644 --- a/middleware.ts +++ b/middleware.ts @@ -4,6 +4,6 @@ import {routing} from "./i18n/routing"; export default createMiddleware(routing); export const config = { - // Match only internationalized pathnames - matcher: ["/", "/(tr|en)/:path*", "/((?!_next|_vercel|.*\\..*).*)"] + // Match pages, but skip API/internal/static files like `/tr/resume.pdf`. + matcher: ["/((?!api|trpc|_next|_vercel|.*\\..*).*)"], }; diff --git a/public/en/resume.pdf b/public/en/resume.pdf new file mode 100644 index 0000000..2a21121 Binary files /dev/null and b/public/en/resume.pdf differ diff --git a/public/resume-en.pdf b/public/resume-en.pdf deleted file mode 100644 index 21832c8..0000000 Binary files a/public/resume-en.pdf and /dev/null differ diff --git a/public/resume-tr.pdf b/public/resume-tr.pdf deleted file mode 100644 index 3e07ecc..0000000 Binary files a/public/resume-tr.pdf and /dev/null differ diff --git a/public/tr/resume.pdf b/public/tr/resume.pdf new file mode 100644 index 0000000..c7d5fc1 Binary files /dev/null and b/public/tr/resume.pdf differ