Kuyu temel

const { locale, pageData , siteId} = Astro.props;

const [siteConfig, uiData, services, categories] = await Promise.all([

getSiteConfig(locale, siteId),

getI18n(locale, siteId),

getServices(locale, siteId),

getServiceCategories(locale, siteId)

]);

const t = (key: string, fallback: string = '') => uiData[key] || fallback;

const brand = siteConfig?.brand;

// --- KATEGORİ VE SEO VERİLERİ ---

const visibleCategories = categories?.filter((cat: any) => cat.show_in_filter !== false) || [];

const showFilter = siteConfig?.showFilter_services !== false;

const metaTitle = pageData?.seo?.metaTitle || siteConfig?.site_title || "Services";

const metaDescription = pageData?.seo?.metaDescription || siteConfig?.seo?.metaDescription || "";

const localizedLinks = generateLocalizedLinks(pageData);

// --- HERO VERİLERİ ---

const pageTitle = pageData?.title || t('our_services', 'Our Services');

const pageSubtitle = pageData?.subtitle || t('services_subtitle', 'What We Do');

const heroContent = pageData?.hero_content || "";

// Renk Yönetimi

const themeColors = {

backgroundColor: resolveConfig(pageData?.background_color, siteConfig?.primary_color, '#000'),

accentColor: resolveConfig(pageData?.accent_color, siteConfig?.secondary_color, '#fff'),

textColor: '#fff'