mirror of
https://github.com/danilt2000/Alma-vid.git
synced 2025-12-08 19:29:26 +02:00
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.
71 lines
1.7 KiB
JavaScript
71 lines
1.7 KiB
JavaScript
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}`;
|
||
},
|
||
};
|