import { notFound } from 'next/navigation'; import { MDXRemote } from 'next-mdx-remote/rsc'; import { Section, Container, Heading, Badge } from '@/components/ui'; import { getTranslations } from 'next-intl/server'; import { Metadata } from 'next'; interface PageProps { params: { locale: string; slug: string; }; } export async function generateMetadata({ params: { locale, slug } }: PageProps): Promise { const { getPageBySlug } = await import('@/lib/pages'); const pageData = await getPageBySlug(slug, locale); if (!pageData) return {}; return { title: pageData.frontmatter.title, description: pageData.frontmatter.excerpt || '', alternates: { canonical: `/${locale}/${slug}`, languages: { 'de': `/de/${slug}`, 'en': `/en/${slug}`, 'x-default': `/en/${slug}`, }, }, openGraph: { title: `${pageData.frontmatter.title} | KLZ Cables`, description: pageData.frontmatter.excerpt || '', url: `https://klz-cables.com/${locale}/${slug}`, }, twitter: { card: 'summary_large_image', title: `${pageData.frontmatter.title} | KLZ Cables`, description: pageData.frontmatter.excerpt || '', }, }; } export default async function StandardPage({ params: { locale, slug } }: PageProps) { const { getPageBySlug } = await import('@/lib/pages'); const pageData = await getPageBySlug(slug, locale); const t = await getTranslations('StandardPage'); if (!pageData) { notFound(); } return (
{/* Hero Section */}
{t('badge')} {pageData.frontmatter.title}
{/* Sticky Narrative Sidebar - Mobile Optimized */}
{/* Mobile-only chip/stepper feel */}
{t('overview')} {t('details')} {t('support')}

{t('quickNavigation')}

{t('needHelp')}

{t('supportTeamAvailable')}

{t('contactUs')}
{/* Main Content */}
); }