import React from 'react'; import PageHeader from '../components/PageHeader'; import { SERVICES } from '../constants'; import { ArrowRight } from 'lucide-react'; import { Link, useLocation } from 'react-router-dom'; const ServicesPage: React.FC = () => { const location = useLocation(); const isEnglish = location.pathname.startsWith('/en'); const prefix = isEnglish ? '/en' : ''; const pageTitle = isEnglish ? 'Our services' : 'Наши услуги'; const pageDescription = isEnglish ? 'A full range of engineering and construction services – from surveys to turnkey delivery.' : 'Полный спектр инженерных и строительных работ любой сложности. От изысканий до сдачи объекта под ключ.'; // Отфильтровываем технические задания и строительство из основных услуг const mainServices = SERVICES.filter( service => service.title !== 'Технические задания' && service.title !== 'Строительство' ); const technicalTasksService = SERVICES.find(service => service.title === 'Технические задания'); return (
{/* Блок с техническими заданиями */} {technicalTasksService && (

{isEnglish ? 'Technical assignment templates' : 'Образцы технических заданий'}

{isEnglish ? 'Ready-made templates and examples of technical assignments for different types of engineering work. The documents are available for download and can be adapted to your project.' : 'Готовые шаблоны и примеры технических заданий для различных видов инженерных работ. Документы доступны для скачивания и могут быть адаптированы под ваш проект.'}

{isEnglish ? 'View templates' : 'Посмотреть образцы'}
)}
{mainServices.map((service, idx) => { const title = isEnglish ? (() => { switch (service.title) { case 'Инженерные изыскания': return 'Engineering surveys'; case 'Проектирование': return 'Design'; case 'Обследование грунтов': return 'Soil investigation'; case 'Обследование здания': return 'Building survey'; case 'Землестроительный и Кадастровые работы': return 'Land management and cadastral works'; default: return service.title; } })() : service.title; const description = isEnglish ? (() => { switch (service.title) { case 'Инженерные изыскания': return 'Comprehensive investigation of construction site conditions: engineering-geodetic, geological, hydrometeorological and environmental surveys.'; case 'Проектирование': return 'Development of design and working documentation for civil and industrial facilities, including architectural and structural solutions.'; case 'Обследование грунтов': return 'Laboratory and field testing of soils. Determination of physical and mechanical properties for designing foundations and subgrades.'; case 'Обследование здания': return 'Technical inspection of buildings and structures. Assessment of load-bearing structures, detection of defects and development of strengthening recommendations.'; case 'Землестроительный и Кадастровые работы': return 'Land surveying, preparation of technical plans and inspection reports, registration of real estate in the state cadastre.'; default: return service.description; } })() : service.description; return (
{title}

{title}

{description}

{service.title === 'Инженерные изыскания' && ( {isEnglish ? 'Learn more' : 'Подробнее'} )} {service.title === 'Проектирование' && ( {isEnglish ? 'Learn more' : 'Подробнее'} )} {service.title === 'Обследование грунтов' && ( {isEnglish ? 'Learn more' : 'Подробнее'} )} {service.title === 'Обследование здания' && ( {isEnglish ? 'Learn more' : 'Подробнее'} )} {service.title === 'Землестроительный и Кадастровые работы' && ( {isEnglish ? 'Learn more' : 'Подробнее'} )} {isEnglish ? 'Request this service' : 'Заказать услугу'}
)})}
); }; export default ServicesPage;