fix: add privacy-policy

This commit is contained in:
2025-12-04 09:54:35 +03:00
parent c4d19a453d
commit d6d7f5548d
12 changed files with 667 additions and 27 deletions

View File

@@ -1,6 +1,12 @@
export const CONTACTS = {
EMAIL: 'spo-71@yandex.ru',
COMPANY: '«ООО ДИТРАСО»',
WEB: 'ocenka-sochi.ru',
PHONE: '+79002413434',
EMAIL: 'spo-71@yandex.ru',
ADDRESS: 'г. Сочи, Навагинская д. 9д, оф. 35',
TELEGRAM: 'https://telegram.me/ditraso',
WHATSAPP: 'https://api.whatsapp.com/send?phone=79002413434',
YOUTUBE: 'https://www.youtube.com/',
RUTUBE: 'https://rutube.ru/',
TEXT: 'Консультация по обращению с сайта ocenka-sochi.ru',
} as const;

View File

@@ -0,0 +1,10 @@
export function phoneBeautify(phone: string): string {
const cleaned = phone.replace(/[^\d+]/g, '');
const match = cleaned.match(/^\+?7(\d{3})(\d{3})(\d{2})(\d{2})$/);
if (!match) return phone;
const [, code, part1, part2, part3] = match;
return `+7 (${code}) ${part1}-${part2}-${part3}`;
}