diff --git a/app/[lang]/blog/[slug]/page.tsx b/app/[lang]/blog/[slug]/page.tsx index fd13698..6fedb82 100644 --- a/app/[lang]/blog/[slug]/page.tsx +++ b/app/[lang]/blog/[slug]/page.tsx @@ -65,6 +65,9 @@ export async function generateMetadata({ return { title: `${content.title} | Ayris Tech`, description: content.excerpt, + alternates: { + canonical: `/${lang}/blog/${slug}`, + }, }; } diff --git a/app/[lang]/blog/page.tsx b/app/[lang]/blog/page.tsx index ed5e06a..144552f 100644 --- a/app/[lang]/blog/page.tsx +++ b/app/[lang]/blog/page.tsx @@ -9,6 +9,9 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc return { title: dict.meta.blog.title, description: dict.meta.blog.desc, + alternates: { + canonical: `/${lang}/blog`, + }, }; } diff --git a/app/[lang]/contact/page.tsx b/app/[lang]/contact/page.tsx index 15b7a07..7a2ccbe 100644 --- a/app/[lang]/contact/page.tsx +++ b/app/[lang]/contact/page.tsx @@ -8,6 +8,9 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc return { title: dict.meta.contact.title, description: dict.meta.contact.desc, + alternates: { + canonical: `/${lang}/contact`, + }, }; } diff --git a/app/[lang]/expertise/[slug]/page.tsx b/app/[lang]/expertise/[slug]/page.tsx index cefd883..a75d0db 100644 --- a/app/[lang]/expertise/[slug]/page.tsx +++ b/app/[lang]/expertise/[slug]/page.tsx @@ -19,6 +19,9 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc return { title: `${titleStr} | ${dict.nav.brandName}`, description: `${titleStr} - ${dict.work.desc}`, + alternates: { + canonical: `/${lang}/expertise/${slug}`, + }, }; } diff --git a/app/[lang]/faq/page.tsx b/app/[lang]/faq/page.tsx index 0234a33..a3900c0 100644 --- a/app/[lang]/faq/page.tsx +++ b/app/[lang]/faq/page.tsx @@ -8,6 +8,9 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc return { title: dict.meta.faq.title, description: dict.meta.faq.desc, + alternates: { + canonical: `/${lang}/faq`, + }, }; } diff --git a/app/[lang]/layout.tsx b/app/[lang]/layout.tsx index 9fa1805..30595d9 100644 --- a/app/[lang]/layout.tsx +++ b/app/[lang]/layout.tsx @@ -55,7 +55,6 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc images: ['/og-image.jpg'], }, alternates: { - canonical: '/', languages: { 'en': '/en', 'tr': '/tr', diff --git a/app/[lang]/page.tsx b/app/[lang]/page.tsx index bcc3fb9..90fa216 100644 --- a/app/[lang]/page.tsx +++ b/app/[lang]/page.tsx @@ -8,6 +8,9 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc return { title: dict.meta.home.title, description: dict.meta.home.desc, + alternates: { + canonical: `/${lang}`, + }, }; } diff --git a/app/[lang]/process/page.tsx b/app/[lang]/process/page.tsx index d48ef35..28eb63a 100644 --- a/app/[lang]/process/page.tsx +++ b/app/[lang]/process/page.tsx @@ -8,6 +8,9 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc return { title: dict.meta.process.title, description: dict.meta.process.desc, + alternates: { + canonical: `/${lang}/process`, + }, }; } diff --git a/app/[lang]/services/page.tsx b/app/[lang]/services/page.tsx index 89bef04..57bb98b 100644 --- a/app/[lang]/services/page.tsx +++ b/app/[lang]/services/page.tsx @@ -8,6 +8,9 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc return { title: dict.meta.services.title, description: dict.meta.services.desc, + alternates: { + canonical: `/${lang}/services`, + }, }; } diff --git a/app/[lang]/work/[slug]/page.tsx b/app/[lang]/work/[slug]/page.tsx index 95aac5d..2dc02a0 100644 --- a/app/[lang]/work/[slug]/page.tsx +++ b/app/[lang]/work/[slug]/page.tsx @@ -39,6 +39,9 @@ export async function generateMetadata({ return { title: `${project.title} — ${dict.nav.brandName}${dict.nav.brandSub}`, description: project.desc, + alternates: { + canonical: `/${lang}/work/${slug}`, + }, }; } diff --git a/app/[lang]/work/page.tsx b/app/[lang]/work/page.tsx index 858ac98..6491094 100644 --- a/app/[lang]/work/page.tsx +++ b/app/[lang]/work/page.tsx @@ -9,6 +9,9 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc return { title: dict.meta.work.title, description: dict.meta.work.desc, + alternates: { + canonical: `/${lang}/work`, + }, }; } diff --git a/components/BlogClient.tsx b/components/BlogClient.tsx index 284e4d6..14dc0a0 100644 --- a/components/BlogClient.tsx +++ b/components/BlogClient.tsx @@ -164,6 +164,7 @@ export default function BlogClient({ diff --git a/components/ContactClient.tsx b/components/ContactClient.tsx index 33908c8..2a92cc4 100644 --- a/components/ContactClient.tsx +++ b/components/ContactClient.tsx @@ -109,8 +109,8 @@ export default function ContactClient({ lang, dict }: { lang: Locale; dict: any className="w-full bg-transparent border-b border-[#C8C2B8] focus:border-[#0A0A0A] outline-none py-3 text-sm text-[#0A0A0A] placeholder-[#C8C2B8] transition-colors" /> - {dict.contact.formTrack} - setFormState({ ...formState, service: e.target.value })} + {dict.contact.formTrack} + setFormState({ ...formState, service: e.target.value })} className="w-full bg-transparent border-b border-[#C8C2B8] focus:border-[#0A0A0A] outline-none py-3 text-sm text-[#0A0A0A] transition-colors cursor-pointer"> {dict.services.items.ai.title} {dict.services.items.blockchain.title} diff --git a/components/HomeClientBelowFold.tsx b/components/HomeClientBelowFold.tsx index 7d609a0..6b5d6d5 100644 --- a/components/HomeClientBelowFold.tsx +++ b/components/HomeClientBelowFold.tsx @@ -510,6 +510,7 @@ export default function HomeClientBelowFold({ lang, dict }: { lang: Locale; dict @@ -622,13 +623,14 @@ export default function HomeClientBelowFold({ lang, dict }: { lang: Locale; dict { label: dict.contact.formTrack, type: "select", options: ["$5k – $20k", "$20k – $50k", "$50k – $100k", "$100k+"] }, ].map((field, fi) => ( - {field.label} + {field.label} {field.type === "select" ? ( - + {field.options?.map(opt => {opt})} ) : (