diff --git a/src/api/routes/quests/controller.ts b/src/api/routes/quests/controller.ts index dd53e0a..57de8be 100644 --- a/src/api/routes/quests/controller.ts +++ b/src/api/routes/quests/controller.ts @@ -67,6 +67,35 @@ const multPlotTreeDesktopImage = path.join(imageRootDir, '/stories/mult/desktop/ const multPlotStarMobileImage = path.join(imageRootDir, '/stories/mult/mobile/plot/star.png'); +const feedbacks = [ + { + author: 'Ульяна Троценко', + from: 'vk.com', + id: uuid(), + rate: 5, + text: 'Квест очень понравился. надо подумать головой , и кажется что когда квест\n' + + 'на логику будет не страшно . Как бы не так , если с актёром было страшновато .\n' + + '( правда наша команда очень сильно тупила) но было очень захватывающе\n' + + 'и интересно. Так что квест очень интересный 😍🔥', + }, + { + author: 'Никита Морозов', + from: 'vk.com', + id: uuid(), + rate: 4, + text: 'Побывал на квесте, очень круто! Хочу побывать на других! Посмотреть\n' + + 'на сколько они сложные и интересные)', + }, + { + author: 'irina eshenko', + from: 'yandex.ru', + id: uuid(), + rate: 3, + text: 'Детям очень понравилось на следующий день после посещения пошли\n' + + 'снова на другой. Ребята актеры отличные. Советую', + }, +]; + export type QuestItemType = { age: { styles?: object; @@ -225,6 +254,9 @@ const egerStories: StoryType[] = [ src: egerFeedbackMobileImage, }, modal: { + content: { + feedbacks, + }, type: 'feedback', }, title: 'Отзывы\\n наших клиентов', @@ -414,6 +446,9 @@ const faraonStories: StoryType[] = [ src: faraonFeedbackMobileImage, }, modal: { + content: { + feedbacks, + }, type: 'feedback', }, title: 'Отзывы\\n наших клиентов', @@ -622,6 +657,9 @@ const multStories: StoryType[] = [ src: multFeedbackMobileImage, }, modal: { + content: { + feedbacks, + }, type: 'feedback', }, title: 'Отзывы\\n наших клиентов', diff --git a/src/api/routes/stories/controller.ts b/src/api/routes/stories/controller.ts index ead30cf..395cbc1 100644 --- a/src/api/routes/stories/controller.ts +++ b/src/api/routes/stories/controller.ts @@ -17,8 +17,17 @@ const photoMobileImage = path.join(imageRootDir, 'birthday/photo_mobile.png'); const example = path.join(imageRootDir, 'example.png'); const example2 = path.join(imageRootDir, 'example2.jpg'); +type FeedbackType = { + author: string; + from: string; + id: string; + rate: 1 | 2 | 3 | 4 | 5; + text: string; +}; -export type StoryFeedbackModalType = {}; +export type StoryFeedbackModalType = { + feedbacks: FeedbackType[]; +}; export type StoryGalleryModalType = {}; export type StoryInfoModalType = {}; export type StoryQuestPlotModalType = { @@ -59,6 +68,35 @@ export type StoryType = { title?: string; }; +const feedbacks = [ + { + author: 'Ульяна Троценко', + from: 'vk.com', + id: uuid(), + rate: 5, + text: 'Квест очень понравился. надо подумать головой , и кажется что когда квест\n' + + 'на логику будет не страшно . Как бы не так , если с актёром было страшновато .\n' + + '( правда наша команда очень сильно тупила) но было очень захватывающе\n' + + 'и интересно. Так что квест очень интересный 😍🔥', + }, + { + author: 'Никита Морозов', + from: 'vk.com', + id: uuid(), + rate: 4, + text: 'Побывал на квесте, очень круто! Хочу побывать на других! Посмотреть\n' + + 'на сколько они сложные и интересные)', + }, + { + author: 'irina eshenko', + from: 'yandex.ru', + id: uuid(), + rate: 3, + text: 'Детям очень понравилось на следующий день после посещения пошли\n' + + 'снова на другой. Ребята актеры отличные. Советую', + }, +]; + const birthdayPageStories: StoryType[] = [ { id: uuid(), @@ -86,6 +124,9 @@ const birthdayPageStories: StoryType[] = [ src: feedbackMobileImage, }, modal: { + content: { + feedbacks, + }, type: 'feedback', }, title: 'Отзывы\\n наших клиентов', @@ -133,6 +174,9 @@ const graduationPageStories: StoryType[] = [ src: feedbackMobileImage, }, modal: { + content: { + feedbacks, + }, type: 'feedback', }, title: 'Отзывы\\n наших клиентов', @@ -180,6 +224,9 @@ const outdoorsPageStories: StoryType[] = [ src: feedbackMobileImage, }, modal: { + content: { + feedbacks, + }, type: 'feedback', }, title: 'Отзывы\\n наших клиентов',