feat(app): small modal fixed
This commit is contained in:
parent
823163d07d
commit
181156c92e
@ -17,7 +17,10 @@ const photoImage = path.join(imageRootDir, 'birthday/photo.png');
|
|||||||
const photoMobileImage = path.join(imageRootDir, 'birthday/photo_mobile.png');
|
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.png');
|
||||||
|
const example3 = path.join(imageRootDir, 'example3.png');
|
||||||
|
const example4 = path.join(imageRootDir, 'example4.png');
|
||||||
|
const example5 = path.join(imageRootDir, 'example5.png');
|
||||||
|
|
||||||
const gallery1Image = path.join(galleryRootDir, '/1.png');
|
const gallery1Image = path.join(galleryRootDir, '/1.png');
|
||||||
const gallery2Image = path.join(galleryRootDir, '/2.png');
|
const gallery2Image = path.join(galleryRootDir, '/2.png');
|
||||||
@ -31,7 +34,7 @@ type FeedbackType = {
|
|||||||
author: string;
|
author: string;
|
||||||
from: string;
|
from: string;
|
||||||
id: string;
|
id: string;
|
||||||
rate: 1 | 2 | 3 | 4 | 5;
|
rate: number;
|
||||||
text: string;
|
text: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -49,7 +52,15 @@ export type StoryFeedbackModalType = {
|
|||||||
export type StoryGalleryModalType = {
|
export type StoryGalleryModalType = {
|
||||||
gallery: ImageType[];
|
gallery: ImageType[];
|
||||||
};
|
};
|
||||||
export type StoryInfoModalType = {};
|
export type StoryInfoModalType = {
|
||||||
|
button: {
|
||||||
|
link: string;
|
||||||
|
text: string;
|
||||||
|
};
|
||||||
|
image: ImageType;
|
||||||
|
text: string;
|
||||||
|
title: string;
|
||||||
|
};
|
||||||
export type StoryQuestPlotModalType = {
|
export type StoryQuestPlotModalType = {
|
||||||
background: {
|
background: {
|
||||||
color: string;
|
color: string;
|
||||||
@ -89,7 +100,7 @@ export type StoryType = {
|
|||||||
content?: StoryModalContent;
|
content?: StoryModalContent;
|
||||||
type: StoryModalType;
|
type: StoryModalType;
|
||||||
};
|
};
|
||||||
title?: string;
|
title: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const feedbacks = [
|
const feedbacks = [
|
||||||
@ -159,15 +170,15 @@ const birthdayPageStories: StoryType[] = [
|
|||||||
alt: 'example',
|
alt: 'example',
|
||||||
src: faqStoryImage,
|
src: faqStoryImage,
|
||||||
},
|
},
|
||||||
text: 'А здесь будет текст, но пока оставлю здесь\\n'
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
+ 'текст-рыбу, сорри\\n'
|
+ 'текст-рыбу, сорри'
|
||||||
+ '\\n'
|
+ '\\n\\n'
|
||||||
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
+ 'adipiscing elit, sed do eiusmod tempor incididunt\\n'
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
+ 'ut labore et dolore magna aliqua\\n'
|
+ 'ut labore et dolore magna aliqua'
|
||||||
+ '\\n'
|
+ '\\n\\n'
|
||||||
+ 'Ut enim ad minim veniam, quis nostrud exercitation\\n'
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
+ 'ullamco laboris nisi ut aliquip ex ea commodo\\n'
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
+ 'consequat',
|
+ 'consequat',
|
||||||
},
|
},
|
||||||
type: 'faq',
|
type: 'faq',
|
||||||
@ -232,15 +243,15 @@ const graduationPageStories: StoryType[] = [
|
|||||||
alt: 'example',
|
alt: 'example',
|
||||||
src: faqStoryImage,
|
src: faqStoryImage,
|
||||||
},
|
},
|
||||||
text: 'А здесь будет текст, но пока оставлю здесь\\n'
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
+ 'текст-рыбу, сорри\\n'
|
+ 'текст-рыбу, сорри'
|
||||||
+ '\\n'
|
+ '\\n\\n'
|
||||||
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
+ 'adipiscing elit, sed do eiusmod tempor incididunt\\n'
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
+ 'ut labore et dolore magna aliqua\\n'
|
+ 'ut labore et dolore magna aliqua'
|
||||||
+ '\\n'
|
+ '\\n\\n'
|
||||||
+ 'Ut enim ad minim veniam, quis nostrud exercitation\\n'
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
+ 'ullamco laboris nisi ut aliquip ex ea commodo\\n'
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
+ 'consequat',
|
+ 'consequat',
|
||||||
},
|
},
|
||||||
type: 'faq',
|
type: 'faq',
|
||||||
@ -305,15 +316,15 @@ const outdoorsPageStories: StoryType[] = [
|
|||||||
alt: 'example',
|
alt: 'example',
|
||||||
src: faqStoryImage,
|
src: faqStoryImage,
|
||||||
},
|
},
|
||||||
text: 'А здесь будет текст, но пока оставлю здесь\\n'
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
+ 'текст-рыбу, сорри\\n'
|
+ 'текст-рыбу, сорри'
|
||||||
+ '\\n'
|
+ '\\n\\n'
|
||||||
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
+ 'adipiscing elit, sed do eiusmod tempor incididunt\\n'
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
+ 'ut labore et dolore magna aliqua\\n'
|
+ 'ut labore et dolore magna aliqua'
|
||||||
+ '\\n'
|
+ '\\n\\n'
|
||||||
+ 'Ut enim ad minim veniam, quis nostrud exercitation\\n'
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
+ 'ullamco laboris nisi ut aliquip ex ea commodo\\n'
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
+ 'consequat',
|
+ 'consequat',
|
||||||
},
|
},
|
||||||
type: 'faq',
|
type: 'faq',
|
||||||
@ -370,6 +381,27 @@ const homePageStories: StoryType[] = [
|
|||||||
src: example,
|
src: example,
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
content: {
|
||||||
|
button: {
|
||||||
|
link: PAGE_LINK.HOME,
|
||||||
|
text: 'И кнопка ещё будет',
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
alt: 'example',
|
||||||
|
src: faqStoryImage,
|
||||||
|
},
|
||||||
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
|
+ 'текст-рыбу, сорри'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
|
+ 'ut labore et dolore magna aliqua'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
|
+ 'consequat',
|
||||||
|
title: 'Это будет заголовок истории',
|
||||||
|
},
|
||||||
type: 'info',
|
type: 'info',
|
||||||
},
|
},
|
||||||
title: 'Рекомендации\\n по квестам',
|
title: 'Рекомендации\\n по квестам',
|
||||||
@ -385,6 +417,27 @@ const homePageStories: StoryType[] = [
|
|||||||
src: example2,
|
src: example2,
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
content: {
|
||||||
|
button: {
|
||||||
|
link: PAGE_LINK.HOME,
|
||||||
|
text: 'И кнопка ещё будет',
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
alt: 'example',
|
||||||
|
src: faqStoryImage,
|
||||||
|
},
|
||||||
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
|
+ 'текст-рыбу, сорри'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
|
+ 'ut labore et dolore magna aliqua'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
|
+ 'consequat',
|
||||||
|
title: 'Это будет заголовок истории',
|
||||||
|
},
|
||||||
type: 'info',
|
type: 'info',
|
||||||
},
|
},
|
||||||
title: 'День Рождения\\n в Arkids парке',
|
title: 'День Рождения\\n в Arkids парке',
|
||||||
@ -393,13 +446,34 @@ const homePageStories: StoryType[] = [
|
|||||||
id: uuid(),
|
id: uuid(),
|
||||||
img: {
|
img: {
|
||||||
alt: 'Новые программы для праздника',
|
alt: 'Новые программы для праздника',
|
||||||
src: example,
|
src: example3,
|
||||||
},
|
},
|
||||||
imgMobile: {
|
imgMobile: {
|
||||||
alt: 'Новые программы для праздника',
|
alt: 'Новые программы для праздника',
|
||||||
src: example,
|
src: example,
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
content: {
|
||||||
|
button: {
|
||||||
|
link: PAGE_LINK.HOME,
|
||||||
|
text: 'И кнопка ещё будет',
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
alt: 'example',
|
||||||
|
src: faqStoryImage,
|
||||||
|
},
|
||||||
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
|
+ 'текст-рыбу, сорри'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
|
+ 'ut labore et dolore magna aliqua'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
|
+ 'consequat',
|
||||||
|
title: 'Это будет заголовок истории',
|
||||||
|
},
|
||||||
type: 'info',
|
type: 'info',
|
||||||
},
|
},
|
||||||
title: 'Новые программы\\n для праздника',
|
title: 'Новые программы\\n для праздника',
|
||||||
@ -408,13 +482,34 @@ const homePageStories: StoryType[] = [
|
|||||||
id: uuid(),
|
id: uuid(),
|
||||||
img: {
|
img: {
|
||||||
alt: 'Рекомендации по квестам',
|
alt: 'Рекомендации по квестам',
|
||||||
src: example,
|
src: example4,
|
||||||
},
|
},
|
||||||
imgMobile: {
|
imgMobile: {
|
||||||
alt: 'Рекомендации по квестам',
|
alt: 'Рекомендации по квестам',
|
||||||
src: example,
|
src: example,
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
content: {
|
||||||
|
button: {
|
||||||
|
link: PAGE_LINK.HOME,
|
||||||
|
text: 'И кнопка ещё будет',
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
alt: 'example',
|
||||||
|
src: faqStoryImage,
|
||||||
|
},
|
||||||
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
|
+ 'текст-рыбу, сорри'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
|
+ 'ut labore et dolore magna aliqua'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
|
+ 'consequat',
|
||||||
|
title: 'Это будет заголовок истории',
|
||||||
|
},
|
||||||
type: 'info',
|
type: 'info',
|
||||||
},
|
},
|
||||||
title: 'Рекомендации\\n по квестам',
|
title: 'Рекомендации\\n по квестам',
|
||||||
@ -423,13 +518,34 @@ const homePageStories: StoryType[] = [
|
|||||||
id: uuid(),
|
id: uuid(),
|
||||||
img: {
|
img: {
|
||||||
alt: 'День Рождения в Arkids парке',
|
alt: 'День Рождения в Arkids парке',
|
||||||
src: example2,
|
src: example5,
|
||||||
},
|
},
|
||||||
imgMobile: {
|
imgMobile: {
|
||||||
alt: 'День Рождения в Arkids парке',
|
alt: 'День Рождения в Arkids парке',
|
||||||
src: example2,
|
src: example2,
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
content: {
|
||||||
|
button: {
|
||||||
|
link: PAGE_LINK.HOME,
|
||||||
|
text: 'И кнопка ещё будет',
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
alt: 'example',
|
||||||
|
src: faqStoryImage,
|
||||||
|
},
|
||||||
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
|
+ 'текст-рыбу, сорри'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
|
+ 'ut labore et dolore magna aliqua'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
|
+ 'consequat',
|
||||||
|
title: 'Это будет заголовок истории',
|
||||||
|
},
|
||||||
type: 'info',
|
type: 'info',
|
||||||
},
|
},
|
||||||
title: 'День Рождения\\n в Arkids парке',
|
title: 'День Рождения\\n в Arkids парке',
|
||||||
@ -445,6 +561,27 @@ const homePageStories: StoryType[] = [
|
|||||||
src: example,
|
src: example,
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
content: {
|
||||||
|
button: {
|
||||||
|
link: PAGE_LINK.HOME,
|
||||||
|
text: 'И кнопка ещё будет',
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
alt: 'example',
|
||||||
|
src: faqStoryImage,
|
||||||
|
},
|
||||||
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
|
+ 'текст-рыбу, сорри'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
|
+ 'ut labore et dolore magna aliqua'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
|
+ 'consequat',
|
||||||
|
title: 'Это будет заголовок истории',
|
||||||
|
},
|
||||||
type: 'info',
|
type: 'info',
|
||||||
},
|
},
|
||||||
title: 'Новые программы\\n для праздника',
|
title: 'Новые программы\\n для праздника',
|
||||||
@ -453,13 +590,34 @@ const homePageStories: StoryType[] = [
|
|||||||
id: uuid(),
|
id: uuid(),
|
||||||
img: {
|
img: {
|
||||||
alt: 'Новые программы для праздника',
|
alt: 'Новые программы для праздника',
|
||||||
src: example,
|
src: example2,
|
||||||
},
|
},
|
||||||
imgMobile: {
|
imgMobile: {
|
||||||
alt: 'Новые программы для праздника',
|
alt: 'Новые программы для праздника',
|
||||||
src: example,
|
src: example,
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
|
content: {
|
||||||
|
button: {
|
||||||
|
link: PAGE_LINK.HOME,
|
||||||
|
text: 'И кнопка ещё будет',
|
||||||
|
},
|
||||||
|
image: {
|
||||||
|
alt: 'example',
|
||||||
|
src: faqStoryImage,
|
||||||
|
},
|
||||||
|
text: 'А здесь будет текст, но пока оставлю здесь'
|
||||||
|
+ 'текст-рыбу, сорри'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Lorem ipsum dolor sit amet, consectetur\\n'
|
||||||
|
+ 'adipiscing elit, sed do eiusmod tempor incididunt'
|
||||||
|
+ 'ut labore et dolore magna aliqua'
|
||||||
|
+ '\\n\\n'
|
||||||
|
+ 'Ut enim ad minim veniam, quis nostrud exercitation'
|
||||||
|
+ 'ullamco laboris nisi ut aliquip ex ea commodo'
|
||||||
|
+ 'consequat',
|
||||||
|
title: 'Это будет заголовок истории',
|
||||||
|
},
|
||||||
type: 'info',
|
type: 'info',
|
||||||
},
|
},
|
||||||
title: 'Новые программы\\n для праздника',
|
title: 'Новые программы\\n для праздника',
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 159 KiB |
BIN
static/images/stories/example2.png
Normal file
BIN
static/images/stories/example2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 199 KiB |
BIN
static/images/stories/example3.png
Normal file
BIN
static/images/stories/example3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 241 KiB |
BIN
static/images/stories/example4.png
Normal file
BIN
static/images/stories/example4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 197 KiB |
BIN
static/images/stories/example5.png
Normal file
BIN
static/images/stories/example5.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 274 KiB |
Loading…
x
Reference in New Issue
Block a user