Files
Alma-vid/src/config/contacts.js
Madara0330E 4adbf791ea Centralize and update contact information across app
Introduced a centralized contacts configuration in src/config/contacts.js, added a useContacts hook, and a reusable ContactInfo component. Updated Header, Footer, Home, Office, Services, About, Objects, and Apartament pages to use the new contact data source. Added documentation in CONTACTS_CONFIG.md and included the AlmaVid logo asset.
2025-07-16 23:16:00 +05:00

71 lines
1.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export const CONTACTS = {
phone: {
display: "8(351)217-00-74",
link: "tel:+73512170074",
},
email: {
display: "sdelka.74@yandex.ru",
link: "mailto:sdelka.74@yandex.ru",
},
address: {
main: {
street: "ул. Комаровского, 4А, офис 210",
city: "Челябинск",
postalCode: "454052",
full: "ул. Комаровского, 4А, офис 210, Челябинск, 454052",
},
office: {
street: "Ленина, д. 60 В, оф. 701",
city: "Челябинск",
description: "Вход в офис со двора",
full: "Ленина, д. 60 В, оф. 701, Челябинск",
},
},
coordinates: [55.242355, 61.37697],
social: {
vk: {
url: "https://vk.com/almavid_74",
name: "ВКонтакте",
},
telegram: {
url: "https://t.me/almavid_74",
name: "Telegram",
},
instagram: {
url: "https://instagram.com/almavid_74",
name: "Instagram",
},
},
companyName: "Агентство недвижимости АЛМА-ВИД",
companyNameShort: "АЛМА-ВИД",
workingHours: "Пн-Пт: 9:00-18:00, Сб: 10:00-16:00",
getBalloonContent: () => {
return `
<div>
<strong>${CONTACTS.companyName}</strong><br/>
Адрес: ${CONTACTS.address.main.street}<br/>
${CONTACTS.address.main.city}, ${CONTACTS.address.main.postalCode}<br/>
Тел: ${CONTACTS.phone.display}
</div>
`;
},
};
export const API_CONFIG = {
baseURL: "https://almavid.ngr1.ru",
endpoints: {
feedback: "/api/feedback/send",
rental: "/api/rental/send",
},
getFullURL: (endpoint) => {
return `${API_CONFIG.baseURL}${endpoint}`;
},
};