+
@@ -507,7 +508,7 @@
const { sendMessageToTelegram } = useTelegram();
const showContactForm = ref(false)
const loading = ref(false)
-const toast = useToast()
+const toast = useToast()
const form = ref({
name: '',
email: '',
@@ -521,7 +522,7 @@ const form = ref({
const formatTelegramMessage = (formData) => {
const roleLabels = {
'frontend': 'Frontend Developer',
- 'backend': 'Backend Developer',
+ 'backend': 'Backend Developer',
'analytics': 'Data Analyst',
'designer': 'Product Designer',
'sales': 'Sales & Strategy',
@@ -530,14 +531,14 @@ const formatTelegramMessage = (formData) => {
'smm': 'SMM Specialist',
'copywriter': 'Копирайтер',
'seo-copy': 'SEO + Копирайтинг',
- 'smm-copy': 'SMM + Копирайтинг',
+ 'smm-copy': 'SMM + Копирайтинг',
'smm-seo': 'SMM + SEO',
'digital-marketing': 'Digital Marketing (полный цикл)',
'other': 'Другое'
};
const roleName = roleLabels[formData.role] || formData.role;
-
+
return `🎯 Новая заявка в команду!
👤 Имя: ${formData.name}
@@ -559,7 +560,7 @@ const submitForm = async () => {
try {
// Форматируем сообщение для Telegram
const telegramMessage = formatTelegramMessage(form.value);
-
+
// Отправляем в Telegram
const { success, error } = await sendMessageToTelegram(telegramMessage);
@@ -575,23 +576,23 @@ const submitForm = async () => {
// Закрываем модальное окно
showContactForm.value = false
-
+
// Сбрасываем форму
- form.value = {
- name: '',
- email: '',
- role: '',
- message: '',
- portfolio: ''
+ form.value = {
+ name: '',
+ email: '',
+ role: '',
+ message: '',
+ portfolio: ''
}
-
+
} else {
throw new Error(error || 'Ошибка отправки в Telegram');
}
-
+
} catch (error) {
console.error('Ошибка отправки формы:', error)
-
+
// Показываем уведомление об ошибке
if (error.message.includes('Telegram') || error.message.includes('сети')) {
toast.add({
@@ -615,6 +616,25 @@ const submitForm = async () => {
}
}
+// Функция для прокрутки к вакансиям
+const scrollToVacancies = () => {
+ nextTick(() => {
+ const vacanciesSection = document.getElementById('vacancies');
+ if (vacanciesSection) {
+ vacanciesSection.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start'
+ });
+ }
+ });
+};
+
+
+// Функция для открытия формы
+const handleJoinTeam = () => {
+ showContactForm.value = true;
+};
+
// SEO мета-теги
useSeoMeta({
title: 'Присоединиться к команде - ЯЛ АРБА',
@@ -622,6 +642,8 @@ useSeoMeta({
ogTitle: 'Вакансии в стартап ЯЛ АРБА',
ogDescription: 'Ищем тимейтов для роста и прорыва. Создаем будущее вместе.'
})
+
+
\ No newline at end of file