refactor(outdoors): make pixel perfect

This commit is contained in:
Sergey Krylov 2023-08-31 22:29:10 +03:00
parent 406697efba
commit d66690cffa

View File

@ -3,7 +3,7 @@ import * as path from 'path';
import { Request, Response } from 'express';
import { v4 as uuid } from 'uuid';
import { PAGE_LINK } from '../../../constants';
import { COLORS, ColorVariant, PAGE_LINK } from '../../../constants';
import { ImageType } from '../image/controller';
const imageRootDir = 'static/images/stories/';
@ -179,6 +179,14 @@ const birthdayPageStories: StoryType[] = [
{
card: {
content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: {
alt: 'Ответы на вопросы',
mobileSrc: faqMobileImage,
@ -217,6 +225,14 @@ const birthdayPageStories: StoryType[] = [
{
card: {
content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: {
alt: 'Отзывы наших клиентов',
mobileSrc: feedbackMobileImage,
@ -238,6 +254,14 @@ const birthdayPageStories: StoryType[] = [
{
card: {
content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: {
alt: 'Фотографии и видео',
mobileSrc: photoMobileImage,
@ -261,6 +285,14 @@ const graduationPageStories: StoryType[] = [
{
card: {
content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: {
alt: 'Ответы на вопросы',
mobileSrc: faqMobileImage,
@ -320,13 +352,21 @@ const graduationPageStories: StoryType[] = [
{
card: {
content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: {
alt: 'Фотографии и видео',
mobileSrc: photo2MobileImage,
src: photo2Image,
},
size: { height: 240, width: 380 },
title: 'Фотографии\n и видео',
title: 'Фотографии\\n и видео',
},
type: 'card',
},
@ -343,6 +383,14 @@ const outdoorsPageStories: StoryType[] = [
{
card: {
content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: {
alt: 'Ответы на вопросы',
mobileSrc: faqMobileImage,
@ -381,6 +429,14 @@ const outdoorsPageStories: StoryType[] = [
{
card: {
content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: {
alt: 'Отзывы наших клиентов',
mobileSrc: feedbackMobileImage,
@ -402,13 +458,21 @@ const outdoorsPageStories: StoryType[] = [
{
card: {
content: {
border: {
inner: {
color: 'transparent',
},
outer: {
color: COLORS[ColorVariant.WHITE],
},
},
image: {
alt: 'Фотографии и видео',
mobileSrc: photo2MobileImage,
src: photo2Image,
},
size: { height: 240, width: 380 },
title: 'Фотографии\n и видео',
title: 'Фотографии\\n и видео',
},
type: 'card',
},