refactor(quest): make pixel perfect quests single pages

This commit is contained in:
Sergey Krylov 2023-08-26 19:42:19 +03:00
parent 5277af0b46
commit cdc04c8df9
56 changed files with 92 additions and 46 deletions

View File

@ -425,6 +425,14 @@ const faraonStories: StoryType[] = [
{ {
card: { card: {
content: { content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: { image: {
alt: 'Сюжет', alt: 'Сюжет',
mobileSrc: faraonPlotMobileImage, mobileSrc: faraonPlotMobileImage,
@ -528,6 +536,14 @@ const faraonStories: StoryType[] = [
{ {
card: { card: {
content: { content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: { image: {
alt: 'Отзывы наших клиентов', alt: 'Отзывы наших клиентов',
mobileSrc: faraonFeedbackMobileImage, mobileSrc: faraonFeedbackMobileImage,
@ -549,6 +565,14 @@ const faraonStories: StoryType[] = [
{ {
card: { card: {
content: { content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: { image: {
alt: 'Фотографии и видео', alt: 'Фотографии и видео',
mobileSrc: faraonGalleryMobileImage, mobileSrc: faraonGalleryMobileImage,
@ -653,7 +677,7 @@ export const faraonQuest: QuestItemType = {
border: '3px #fff', border: '3px #fff',
color: 'linear-gradient(134.56deg, #FF5C00 11.78%, #FF3399 84.81%)', color: 'linear-gradient(134.56deg, #FF5C00 11.78%, #FF3399 84.81%)',
fontFamily: 'Angry', fontFamily: 'Angry',
fontSize: 56, fontSize: 120,
}, },
}, },
text: 'Фараон', text: 'Фараон',
@ -670,6 +694,14 @@ const multStories: StoryType[] = [
{ {
card: { card: {
content: { content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: { image: {
alt: 'Сюжет', alt: 'Сюжет',
mobileSrc: multPlotMobileImage, mobileSrc: multPlotMobileImage,
@ -773,6 +805,14 @@ const multStories: StoryType[] = [
{ {
card: { card: {
content: { content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: { image: {
alt: 'Отзывы наших клиентов', alt: 'Отзывы наших клиентов',
mobileSrc: multFeedbackMobileImage, mobileSrc: multFeedbackMobileImage,
@ -794,6 +834,14 @@ const multStories: StoryType[] = [
{ {
card: { card: {
content: { content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: { image: {
alt: 'Фотографии и видео', alt: 'Фотографии и видео',
mobileSrc: multGalleryMobileImage, mobileSrc: multGalleryMobileImage,
@ -877,13 +925,13 @@ export const multQuest: QuestItemType = {
border: '4px #fff', border: '4px #fff',
color: 'linear-gradient(134.56deg, #FFF500 11.78%, #FF3399 84.81%)', color: 'linear-gradient(134.56deg, #FFF500 11.78%, #FF3399 84.81%)',
fontFamily: 'Airfool', fontFamily: 'Airfool',
fontSize: 78, fontSize: 66,
}, },
styles: { styles: {
border: '4px #fff', border: '4px #fff',
color: 'linear-gradient(134.56deg, #FFF500 11.78%, #FF3399 84.81%)', color: 'linear-gradient(155deg, #FFF500 0%, #F39 100%)',
fontFamily: 'Airfool', fontFamily: 'Airfool',
fontSize: 78, fontSize: 140,
}, },
}, },

View File

@ -9,16 +9,16 @@ import { ImageType } from '../image/controller';
const imageRootDir = 'static/images/information/statistics'; const imageRootDir = 'static/images/information/statistics';
const DecorationDesktopImg = path.join(imageRootDir, 'desktop/decoration.png'); const DecorationDesktopImg = path.join(imageRootDir, 'desktop/decoration.png');
const DiplomaDesktopImg = path.join(imageRootDir, 'desktop/graduation/diploma.png'); const DiplomaDesktopImg = path.join(imageRootDir, 'desktop/diploma.png');
const KidsDesktopImg = path.join(imageRootDir, 'desktop/kids.png'); const KidsDesktopImg = path.join(imageRootDir, 'desktop/kids.png');
const LikeDesktopImg = path.join(imageRootDir, 'desktop/like.png'); const LikeDesktopImg = path.join(imageRootDir, 'desktop/like.png');
const StatDecorDesktopImg = path.join(imageRootDir, 'desktop/outdoors/decoration.png'); const DecorDesktopImg = path.join(imageRootDir, 'desktop/decoration2.png');
const StatScooterDesktopImg = path.join(imageRootDir, 'desktop/outdoors/scooter.png'); const ScooterDesktopImg = path.join(imageRootDir, 'desktop/scooter.png');
const PinataDesktopImg = path.join(imageRootDir, 'desktop/pinata.png'); const PinataDesktopImg = path.join(imageRootDir, 'desktop/pinata.png');
const ProgramsDesktopImg = path.join(imageRootDir, 'desktop/programms.png'); const ProgramsDesktopImg = path.join(imageRootDir, 'desktop/programms.png');
const BooksDesktopImg = path.join(imageRootDir, 'desktop/quests/eger/books.png'); const BooksDesktopImg = path.join(imageRootDir, 'desktop/books.png');
const KeysDesktopImg = path.join(imageRootDir, 'desktop/quests/eger/keys.png'); const KeysDesktopImg = path.join(imageRootDir, 'desktop/keys.png');
const MapDesktopImg = path.join(imageRootDir, 'desktop/quests/eger/map.png'); const MapDesktopImg = path.join(imageRootDir, 'desktop/map.png');
const RateDesktopImg = path.join(imageRootDir, 'desktop/rate.png'); const RateDesktopImg = path.join(imageRootDir, 'desktop/rate.png');
const StarDesktopImg = path.join(imageRootDir, 'desktop/star.png'); const StarDesktopImg = path.join(imageRootDir, 'desktop/star.png');
const MasterClassDecorImg = path.join(imageRootDir, 'desktop/master-classes/decoration.png'); const MasterClassDecorImg = path.join(imageRootDir, 'desktop/master-classes/decoration.png');
@ -27,19 +27,18 @@ const MasterClassMaterialsImg = path.join(imageRootDir, 'desktop/master-classes/
const CupMobileImg = path.join(imageRootDir, 'mobile/cup.png'); const CupMobileImg = path.join(imageRootDir, 'mobile/cup.png');
const DecorationMobileImg = path.join(imageRootDir, 'mobile/decoration.png'); const DecorationMobileImg = path.join(imageRootDir, 'mobile/decoration.png');
const DiplomaMobileImg = path.join(imageRootDir, 'mobile/graduation/diploma.png'); const DiplomaMobileImg = path.join(imageRootDir, 'mobile/diploma.png');
const GraduationKidsMobileImg = path.join(imageRootDir, 'mobile/graduation/kids.png'); const Kids3MobileImg = path.join(imageRootDir, 'mobile/kids3.png');
const GraduationRateMobileImg = path.join(imageRootDir, 'mobile/graduation/rate.png');
const KidsMobileImg = path.join(imageRootDir, 'mobile/kids.png');
const Kids2MobileImg = path.join(imageRootDir, 'mobile/kids2.png'); const Kids2MobileImg = path.join(imageRootDir, 'mobile/kids2.png');
const KidsMobileImg = path.join(imageRootDir, 'mobile/kids.png');
const LikeMobileImg = path.join(imageRootDir, 'mobile/like.png'); const LikeMobileImg = path.join(imageRootDir, 'mobile/like.png');
const StatDecorMobileImg = path.join(imageRootDir, 'mobile/outdoors/decoration.png'); const StatDecorMobileImg = path.join(imageRootDir, 'mobile/decoration2.png');
const StatScooterMobileImg = path.join(imageRootDir, 'mobile/outdoors/scooter.png'); const StatScooterMobileImg = path.join(imageRootDir, 'mobile/scooter.png');
const PinataMobileImg = path.join(imageRootDir, 'mobile/pinata.png'); const PinataMobileImg = path.join(imageRootDir, 'mobile/pinata.png');
const ProgramsMobileImg = path.join(imageRootDir, 'mobile/programms.png'); const ProgramsMobileImg = path.join(imageRootDir, 'mobile/programms.png');
const BooksMobileImg = path.join(imageRootDir, 'mobile/quests/eger/books.png'); const BooksMobileImg = path.join(imageRootDir, 'mobile/books.png');
const KeysMobileImg = path.join(imageRootDir, 'mobile/quests/eger/keys.png'); const KeysMobileImg = path.join(imageRootDir, 'mobile/keys.png');
const MapMobileImg = path.join(imageRootDir, 'mobile/quests/eger/map.png'); const MapMobileImg = path.join(imageRootDir, 'mobile/map.png');
const RateMobileImg = path.join(imageRootDir, 'mobile/rate.png'); const RateMobileImg = path.join(imageRootDir, 'mobile/rate.png');
const StarMobileImg = path.join(imageRootDir, 'mobile/star.png'); const StarMobileImg = path.join(imageRootDir, 'mobile/star.png');
const MasterClassDecorMobileImg = path.join(imageRootDir, 'mobile/master-classes/decoration.png'); const MasterClassDecorMobileImg = path.join(imageRootDir, 'mobile/master-classes/decoration.png');
@ -131,7 +130,7 @@ const birthdayItems: StatisticsItem[] = [
top: -20, top: -20,
}, },
mobileSrc: ProgramsMobileImg, mobileSrc: ProgramsMobileImg,
mobileWidth: 84, mobileWidth: 89,
position: { position: {
right: 0, right: 0,
top: 15, top: 15,
@ -182,7 +181,7 @@ const birthdayItems: StatisticsItem[] = [
right: 26, right: 26,
top: -10, top: -10,
}, },
mobileSrc: KidsMobileImg, mobileSrc: Kids3MobileImg,
mobileWidth: 108, mobileWidth: 108,
position: { position: {
right: -10, right: -10,
@ -337,7 +336,7 @@ const graduationItems: StatisticsItem[] = [
left: 12, left: 12,
top: -10, top: -10,
}, },
mobileSrc: GraduationRateMobileImg, mobileSrc: RateMobileImg,
mobileWidth: 106, mobileWidth: 106,
position: { position: {
right: 22, right: 22,
@ -415,13 +414,13 @@ const graduationItems: StatisticsItem[] = [
right: 10, right: 10,
top: -10, top: -10,
}, },
mobileSrc: GraduationKidsMobileImg, mobileSrc: Kids2MobileImg,
mobileWidth: 127, mobileWidth: 127,
position: { position: {
right: -10, right: -10,
top: 15, top: 15,
}, },
src: GraduationKidsMobileImg, src: Kids2MobileImg,
width: 138, width: 138,
}, },
size: { size: {
@ -473,19 +472,19 @@ const outdoorsItems: StatisticsItem[] = [
{ {
img: { img: {
alt: 'programs', alt: 'programs',
height: 98, height: 88,
mobileHeight: 116, mobileHeight: 114,
mobilePosition: { mobilePosition: {
right: 10, right: 10,
top: -10, top: -10,
}, },
mobileSrc: StatScooterMobileImg, mobileSrc: StatScooterMobileImg,
mobileWidth: 114, mobileWidth: 116,
position: { position: {
right: 22, right: 22,
top: 15, top: 15,
}, },
src: StatScooterDesktopImg, src: ScooterDesktopImg,
width: 94, width: 94,
}, },
size: { size: {
@ -511,7 +510,7 @@ const outdoorsItems: StatisticsItem[] = [
right: 35, right: 35,
top: 10, top: 10,
}, },
src: StatDecorDesktopImg, src: DecorDesktopImg,
width: 60, width: 60,
}, },
size: { size: {
@ -531,8 +530,8 @@ const outdoorsItems: StatisticsItem[] = [
left: 28, left: 28,
top: -10, top: -10,
}, },
mobileSrc: KidsMobileImg, mobileSrc: Kids3MobileImg,
mobileWidth: 106, mobileWidth: 108,
position: { position: {
right: -10, right: -10,
top: 15, top: 15,
@ -569,8 +568,8 @@ const egerQuestItems: StatisticsItem[] = [
right: 15, right: 15,
top: -20, top: -20,
}, },
mobileSrc: Kids2MobileImg, mobileSrc: KidsMobileImg,
mobileWidth: 106, mobileWidth: 105,
position: { position: {
right: 22, right: 22,
top: 20, top: 20,
@ -604,7 +603,7 @@ const egerQuestItems: StatisticsItem[] = [
top: 15, top: 15,
}, },
src: BooksDesktopImg, src: BooksDesktopImg,
width: 109, width: 108,
}, },
mobileOrder: 4, mobileOrder: 4,
order: 2, order: 2,
@ -632,7 +631,7 @@ const egerQuestItems: StatisticsItem[] = [
top: 10, top: 10,
}, },
src: MapDesktopImg, src: MapDesktopImg,
width: 69, width: 68,
}, },
mobileOrder: 3, mobileOrder: 3,
order: 3, order: 3,
@ -660,7 +659,7 @@ const egerQuestItems: StatisticsItem[] = [
top: 15, top: 15,
}, },
src: KeysDesktopImg, src: KeysDesktopImg,
width: 69, width: 68,
}, },
mobileOrder: 2, mobileOrder: 2,
order: 4, order: 4,
@ -693,7 +692,7 @@ const faraonQuestItems: StatisticsItem[] = [
right: 15, right: 15,
top: -20, top: -20,
}, },
mobileSrc: Kids2MobileImg, mobileSrc: KidsMobileImg,
mobileWidth: 105, mobileWidth: 105,
position: { position: {
right: 22, right: 22,
@ -728,7 +727,7 @@ const faraonQuestItems: StatisticsItem[] = [
top: 15, top: 15,
}, },
src: BooksDesktopImg, src: BooksDesktopImg,
width: 109, width: 108,
}, },
mobileOrder: 4, mobileOrder: 4,
order: 2, order: 2,
@ -756,7 +755,7 @@ const faraonQuestItems: StatisticsItem[] = [
top: 10, top: 10,
}, },
src: MapDesktopImg, src: MapDesktopImg,
width: 69, width: 68,
}, },
mobileOrder: 3, mobileOrder: 3,
order: 3, order: 3,
@ -784,7 +783,7 @@ const faraonQuestItems: StatisticsItem[] = [
top: 15, top: 15,
}, },
src: KeysDesktopImg, src: KeysDesktopImg,
width: 69, width: 68,
}, },
mobileOrder: 2, mobileOrder: 2,
order: 4, order: 4,
@ -817,7 +816,7 @@ const multQuestItems: StatisticsItem[] = [
right: 15, right: 15,
top: -20, top: -20,
}, },
mobileSrc: Kids2MobileImg, mobileSrc: KidsMobileImg,
mobileWidth: 105, mobileWidth: 105,
position: { position: {
right: 22, right: 22,
@ -840,7 +839,7 @@ const multQuestItems: StatisticsItem[] = [
img: { img: {
alt: 'programs', alt: 'programs',
height: 90, height: 90,
mobileHeight: 112, mobileHeight: 122,
mobilePosition: { mobilePosition: {
right: -20, right: -20,
top: 5, top: 5,
@ -852,7 +851,7 @@ const multQuestItems: StatisticsItem[] = [
top: 15, top: 15,
}, },
src: BooksDesktopImg, src: BooksDesktopImg,
width: 109, width: 108,
}, },
mobileOrder: 4, mobileOrder: 4,
order: 2, order: 2,
@ -880,7 +879,7 @@ const multQuestItems: StatisticsItem[] = [
top: 10, top: 10,
}, },
src: MapDesktopImg, src: MapDesktopImg,
width: 69, width: 68,
}, },
mobileOrder: 3, mobileOrder: 3,
order: 3, order: 3,
@ -908,7 +907,7 @@ const multQuestItems: StatisticsItem[] = [
top: 15, top: 15,
}, },
src: KeysDesktopImg, src: KeysDesktopImg,
width: 69, width: 68,
}, },
mobileOrder: 2, mobileOrder: 2,
order: 4, order: 4,

View File

@ -27,7 +27,6 @@ const exampleMobile = path.join(imageRootDir, 'exampleMobile.png');
const example2Mobile = path.join(imageRootDir, 'example2Mobile.png'); const example2Mobile = path.join(imageRootDir, 'example2Mobile.png');
const example3Mobile = path.join(imageRootDir, 'example3Mobile.png'); const example3Mobile = path.join(imageRootDir, 'example3Mobile.png');
const example4Mobile = path.join(imageRootDir, 'example4Mobile.png'); const example4Mobile = path.join(imageRootDir, 'example4Mobile.png');
const example5Mobile = path.join(imageRootDir, 'example5Mobile.png');
const HomePageVulpesImg = path.join(imageRootDir, 'vulpes/homepage.png'); const HomePageVulpesImg = path.join(imageRootDir, 'vulpes/homepage.png');

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 759 KiB

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 KiB

After

Width:  |  Height:  |  Size: 968 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 660 KiB

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 KiB

After

Width:  |  Height:  |  Size: 634 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 339 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 50 KiB