fix(home): fix homepage

This commit is contained in:
Sergey Krylov 2023-08-10 23:09:12 +03:00
parent 0fc37cfb21
commit 9c3a287c50
11 changed files with 26 additions and 4 deletions

View File

@ -223,6 +223,10 @@ const homeItems: StatisticsItem[] = [
}, },
mobileSrc: PinataMobileImg, mobileSrc: PinataMobileImg,
mobileWidth: 128, mobileWidth: 128,
position: {
right: 0,
top: -14,
},
src: PinataDesktopImg, src: PinataDesktopImg,
width: 123, width: 123,
}, },
@ -246,8 +250,8 @@ const homeItems: StatisticsItem[] = [
mobileSrc: StarMobileImg, mobileSrc: StarMobileImg,
mobileWidth: 112, mobileWidth: 112,
position: { position: {
right: 35, right: 28,
top: 15, top: 11,
}, },
src: StarDesktopImg, src: StarDesktopImg,
width: 66, width: 66,
@ -272,8 +276,8 @@ const homeItems: StatisticsItem[] = [
mobileSrc: LikeMobileImg, mobileSrc: LikeMobileImg,
mobileWidth: 87, mobileWidth: 87,
position: { position: {
right: 5, right: -2,
top: 15, top: 13,
}, },
src: LikeDesktopImg, src: LikeDesktopImg,
width: 76, width: 76,
@ -296,6 +300,10 @@ const homeItems: StatisticsItem[] = [
top: -29, top: -29,
}, },
mobileWidth: 131, mobileWidth: 131,
position: {
right: 20,
top: -5,
},
src: CupMobileImg, src: CupMobileImg,
width: 101, width: 101,
}, },

View File

@ -23,6 +23,11 @@ const example2 = path.join(imageRootDir, 'example2.png');
const example3 = path.join(imageRootDir, 'example3.png'); const example3 = path.join(imageRootDir, 'example3.png');
const example4 = path.join(imageRootDir, 'example4.png'); const example4 = path.join(imageRootDir, 'example4.png');
const example5 = path.join(imageRootDir, 'example5.png'); const example5 = path.join(imageRootDir, 'example5.png');
const exampleMobile = path.join(imageRootDir, 'exampleMobile.png');
const example2Mobile = path.join(imageRootDir, 'example2Mobile.png');
const example3Mobile = path.join(imageRootDir, 'example3Mobile.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');
@ -424,6 +429,7 @@ const homePageStories: StoryType[] = [
content: { content: {
image: { image: {
alt: 'Рекомендации по квестам', alt: 'Рекомендации по квестам',
mobileSrc: exampleMobile,
src: example, src: example,
}, },
title: 'Рекомендации\\n по квестам', title: 'Рекомендации\\n по квестам',
@ -462,6 +468,8 @@ const homePageStories: StoryType[] = [
image: { image: {
alt: 'fenek', alt: 'fenek',
height: 218, height: 218,
mobileHeight: 133,
mobileWidth: 110,
src: HomePageVulpesImg, src: HomePageVulpesImg,
width: 180, width: 180,
}, },
@ -476,6 +484,7 @@ const homePageStories: StoryType[] = [
content: { content: {
image: { image: {
alt: 'День Рождения в Аркидс парке', alt: 'День Рождения в Аркидс парке',
mobileSrc: example2Mobile,
src: example2, src: example2,
}, },
title: 'День Рождения\\n в Аркидс парке', title: 'День Рождения\\n в Аркидс парке',
@ -514,6 +523,7 @@ const homePageStories: StoryType[] = [
image: { image: {
alt: 'Новые программы для праздника', alt: 'Новые программы для праздника',
src: example3, src: example3,
mobileSrc: example3Mobile,
}, },
title: 'Новые программы\\n для праздника', title: 'Новые программы\\n для праздника',
}, },
@ -550,6 +560,7 @@ const homePageStories: StoryType[] = [
content: { content: {
image: { image: {
alt: 'Рекомендации по квестам', alt: 'Рекомендации по квестам',
mobileSrc: example4Mobile,
src: example4, src: example4,
}, },
title: 'Рекомендации\\n по квестам', title: 'Рекомендации\\n по квестам',
@ -587,6 +598,7 @@ const homePageStories: StoryType[] = [
content: { content: {
image: { image: {
alt: 'День Рождения в Аркидс парке', alt: 'День Рождения в Аркидс парке',
mobileSrc: example3Mobile,
src: example5, src: example5,
}, },
title: 'День Рождения\\n в Аркидс парке', title: 'День Рождения\\n в Аркидс парке',
@ -624,6 +636,7 @@ const homePageStories: StoryType[] = [
content: { content: {
image: { image: {
alt: 'Новые программы для праздника', alt: 'Новые программы для праздника',
mobileSrc: exampleMobile,
src: example, src: example,
}, },
title: 'Новые программы\\n для праздника', title: 'Новые программы\\n для праздника',
@ -661,6 +674,7 @@ const homePageStories: StoryType[] = [
content: { content: {
image: { image: {
alt: 'Новые программы для праздника', alt: 'Новые программы для праздника',
mobileSrc: example2Mobile,
src: example2, src: example2,
}, },
title: 'Новые программы\\n для праздника', title: 'Новые программы\\n для праздника',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB