diff --git a/src/api/routes/quests/controller.ts b/src/api/routes/quests/controller.ts index 57de8be..6e93a8b 100644 --- a/src/api/routes/quests/controller.ts +++ b/src/api/routes/quests/controller.ts @@ -8,6 +8,7 @@ import { ImageType } from '../image/controller'; import { StoryType } from '../stories/controller'; const imageRootDir = 'static/images/quests/'; +const galleryRootDir = 'static/images/gallery/'; const egerFeedbackImage = path.join(imageRootDir, 'stories/eger/desktop/feedback.png'); const egerGalleryImage = path.join(imageRootDir, 'stories/eger/desktop/gallery.png'); @@ -67,6 +68,12 @@ const multPlotTreeDesktopImage = path.join(imageRootDir, '/stories/mult/desktop/ const multPlotStarMobileImage = path.join(imageRootDir, '/stories/mult/mobile/plot/star.png'); +const gallery1Image = path.join(galleryRootDir, '/1.png'); +const gallery2Image = path.join(galleryRootDir, '/2.png'); +const gallery3Image = path.join(galleryRootDir, '/3.png'); +const gallery4Image = path.join(galleryRootDir, '/4.png'); +const gallery5Image = path.join(galleryRootDir, '/5.png'); + const feedbacks = [ { author: 'Ульяна Троценко', @@ -95,6 +102,23 @@ const feedbacks = [ + 'снова на другой. Ребята актеры отличные. Советую', }, ]; +const gallery: ImageType[] = [ + { + src: gallery1Image, + }, + { + src: gallery2Image, + }, + { + src: gallery3Image, + }, + { + src: gallery4Image, + }, + { + src: gallery5Image, + }, +]; export type QuestItemType = { age: { @@ -272,6 +296,9 @@ const egerStories: StoryType[] = [ src: egerGalleryMobileImage, }, modal: { + content: { + gallery, + }, type: 'gallery', }, title: 'Фотографии\\n и видео', @@ -464,6 +491,9 @@ const faraonStories: StoryType[] = [ src: faraonGalleryMobileImage, }, modal: { + content: { + gallery, + }, type: 'gallery', }, title: 'Фотографии\\n и видео', @@ -675,6 +705,9 @@ const multStories: StoryType[] = [ src: multGalleryMobileImage, }, modal: { + content: { + gallery, + }, type: 'gallery', }, title: 'Фотографии\\n и видео', diff --git a/src/api/routes/stories/controller.ts b/src/api/routes/stories/controller.ts index 395cbc1..4600f51 100644 --- a/src/api/routes/stories/controller.ts +++ b/src/api/routes/stories/controller.ts @@ -7,6 +7,7 @@ import { PAGE_LINK } from '../../../constants'; import { ImageType } from '../image/controller'; const imageRootDir = 'static/images/stories/'; +const galleryRootDir = 'static/images/gallery/'; const faqImage = path.join(imageRootDir, 'birthday/faq.png'); const faqMobileImage = path.join(imageRootDir, 'birthday/faq_mobile.png'); @@ -17,6 +18,13 @@ const photoMobileImage = path.join(imageRootDir, 'birthday/photo_mobile.png'); const example = path.join(imageRootDir, 'example.png'); const example2 = path.join(imageRootDir, 'example2.jpg'); + +const gallery1Image = path.join(galleryRootDir, '/1.png'); +const gallery2Image = path.join(galleryRootDir, '/2.png'); +const gallery3Image = path.join(galleryRootDir, '/3.png'); +const gallery4Image = path.join(galleryRootDir, '/4.png'); +const gallery5Image = path.join(galleryRootDir, '/5.png'); + type FeedbackType = { author: string; from: string; @@ -28,7 +36,9 @@ type FeedbackType = { export type StoryFeedbackModalType = { feedbacks: FeedbackType[]; }; -export type StoryGalleryModalType = {}; +export type StoryGalleryModalType = { + gallery: ImageType[]; +}; export type StoryInfoModalType = {}; export type StoryQuestPlotModalType = { background: { @@ -96,6 +106,23 @@ const feedbacks = [ + 'снова на другой. Ребята актеры отличные. Советую', }, ]; +const gallery: ImageType[] = [ + { + src: gallery1Image, + }, + { + src: gallery2Image, + }, + { + src: gallery3Image, + }, + { + src: gallery4Image, + }, + { + src: gallery5Image, + }, +]; const birthdayPageStories: StoryType[] = [ { @@ -142,6 +169,9 @@ const birthdayPageStories: StoryType[] = [ src: photoMobileImage, }, modal: { + content: { + gallery, + }, type: 'gallery', }, title: 'Фотографии\n и видео', @@ -192,6 +222,9 @@ const graduationPageStories: StoryType[] = [ src: photoMobileImage, }, modal: { + content: { + gallery, + }, type: 'gallery', }, title: 'Фотографии\n и видео', @@ -242,6 +275,9 @@ const outdoorsPageStories: StoryType[] = [ src: photoMobileImage, }, modal: { + content: { + gallery, + }, type: 'gallery', }, title: 'Фотографии\n и видео', diff --git a/static/images/gallery/1.png b/static/images/gallery/1.png new file mode 100644 index 0000000..40f49b8 Binary files /dev/null and b/static/images/gallery/1.png differ diff --git a/static/images/gallery/2.png b/static/images/gallery/2.png new file mode 100644 index 0000000..0d13472 Binary files /dev/null and b/static/images/gallery/2.png differ diff --git a/static/images/gallery/3.png b/static/images/gallery/3.png new file mode 100644 index 0000000..84efc80 Binary files /dev/null and b/static/images/gallery/3.png differ diff --git a/static/images/gallery/4.png b/static/images/gallery/4.png new file mode 100644 index 0000000..c1db108 Binary files /dev/null and b/static/images/gallery/4.png differ diff --git a/static/images/gallery/5.png b/static/images/gallery/5.png new file mode 100644 index 0000000..51447a4 Binary files /dev/null and b/static/images/gallery/5.png differ