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