feat(app): add feedback modal

This commit is contained in:
Sergey Krylov 2023-06-29 08:00:12 +03:00
parent b9e01a913e
commit f6e2e6a3b7
2 changed files with 86 additions and 1 deletions

View File

@ -67,6 +67,35 @@ const multPlotTreeDesktopImage = path.join(imageRootDir, '/stories/mult/desktop/
const multPlotStarMobileImage = path.join(imageRootDir, '/stories/mult/mobile/plot/star.png'); 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 = { export type QuestItemType = {
age: { age: {
styles?: object; styles?: object;
@ -225,6 +254,9 @@ const egerStories: StoryType[] = [
src: egerFeedbackMobileImage, src: egerFeedbackMobileImage,
}, },
modal: { modal: {
content: {
feedbacks,
},
type: 'feedback', type: 'feedback',
}, },
title: 'Отзывы\\n наших клиентов', title: 'Отзывы\\n наших клиентов',
@ -414,6 +446,9 @@ const faraonStories: StoryType[] = [
src: faraonFeedbackMobileImage, src: faraonFeedbackMobileImage,
}, },
modal: { modal: {
content: {
feedbacks,
},
type: 'feedback', type: 'feedback',
}, },
title: 'Отзывы\\n наших клиентов', title: 'Отзывы\\n наших клиентов',
@ -622,6 +657,9 @@ const multStories: StoryType[] = [
src: multFeedbackMobileImage, src: multFeedbackMobileImage,
}, },
modal: { modal: {
content: {
feedbacks,
},
type: 'feedback', type: 'feedback',
}, },
title: 'Отзывы\\n наших клиентов', title: 'Отзывы\\n наших клиентов',

View File

@ -17,8 +17,17 @@ const photoMobileImage = path.join(imageRootDir, 'birthday/photo_mobile.png');
const example = path.join(imageRootDir, 'example.png'); const example = path.join(imageRootDir, 'example.png');
const example2 = path.join(imageRootDir, 'example2.jpg'); 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 StoryGalleryModalType = {};
export type StoryInfoModalType = {}; export type StoryInfoModalType = {};
export type StoryQuestPlotModalType = { export type StoryQuestPlotModalType = {
@ -59,6 +68,35 @@ export type StoryType = {
title?: string; 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[] = [ const birthdayPageStories: StoryType[] = [
{ {
id: uuid(), id: uuid(),
@ -86,6 +124,9 @@ const birthdayPageStories: StoryType[] = [
src: feedbackMobileImage, src: feedbackMobileImage,
}, },
modal: { modal: {
content: {
feedbacks,
},
type: 'feedback', type: 'feedback',
}, },
title: 'Отзывы\\n наших клиентов', title: 'Отзывы\\n наших клиентов',
@ -133,6 +174,9 @@ const graduationPageStories: StoryType[] = [
src: feedbackMobileImage, src: feedbackMobileImage,
}, },
modal: { modal: {
content: {
feedbacks,
},
type: 'feedback', type: 'feedback',
}, },
title: 'Отзывы\\n наших клиентов', title: 'Отзывы\\n наших клиентов',
@ -180,6 +224,9 @@ const outdoorsPageStories: StoryType[] = [
src: feedbackMobileImage, src: feedbackMobileImage,
}, },
modal: { modal: {
content: {
feedbacks,
},
type: 'feedback', type: 'feedback',
}, },
title: 'Отзывы\\n наших клиентов', title: 'Отзывы\\n наших клиентов',