Content
Define Your Services
All services live in one file. Each entry becomes a detail page and can appear on the home page when featured is true (up to 3 recommended).
Open the file
Edit src/config/services.ts. Do not hardcode service names inside page components — they read from this list.
Key fields
- slugEn / slugTr — URL path, e.g. /services/service-one and /tr/hizmetler/hizmet-bir
- titleEn / titleTr, descriptionEn / descriptionTr — Card and listing text
- introEn / introTr — Longer text on the service detail page
- featured: true — Shows on home (max 3)
- image, imageDetail, images[] — Paths under public/ with imageAlt in EN and TR
Example entry
{
id: "service-1",
slugEn: "dental-implants",
slugTr: "dis-implanti",
titleEn: "Dental Implants",
titleTr: "Diş İmplantı",
descriptionEn: "Permanent tooth replacement.",
descriptionTr: "Kalıcı diş restorasyonu.",
introEn: "Full intro paragraph for the detail page…",
introTr: "Detay sayfası için tam giriş paragrafı…",
icon: "star",
featured: true,
image: "/services/implants-card.webp",
imageDetail: "/services/implants-hero.webp",
imageAlt: { en: "Dental implant model", tr: "Diş implantı modeli" },
}
After saving
Refresh the browser. Check /services/ (or /tr/hizmetler/), each detail URL, and the home page featured block.