Skip to content

Conversation

@AnastasiiaKonovalenko
Copy link

Copy link

@vkryvytskyi vkryvytskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошее начало, продолжай!

Comment on lines 27 to 33
<RestaurantCard
categories={categories}
heroImageUrl={heroImageUrl}
title={title}
uuid={uuid}
etaRange={etaRange.text}
/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key?

@@ -1 +1,286 @@
.restaurant_card {
width: 100%;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

навіщо дефолтні стилі вказуєш?

display: inline-block;
font-size: 14px;
line-height: 24px;
margin-top: 7px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

виглядає дивно 7 пікселік, чому не 8?

margin: 0;
}

.non-active {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.is-disabled

Comment on lines +47 to +64
{width > 400 ? (
<>
<h3 className="card__title">{dish.title}</h3>
<p className="card__description">
{
// eslint-disable-next-line no-nested-ternary
dish.description !== null
? (dish.title.length < 30 || width > 900
? dish.description.slice(0, 50)
: dish.description.slice(0, 20)
) : ''
}
</p>
</>
) : (
<>

{dish.title.length <= 30
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

це прямо супер дивно. Тут краще просто вішатиякісь класи. Я особливо не вникаю що робить цей код, але загалом виглядає дивною Певен звичайним класом вирішується

src={dish.imageUrl !== null && dish.imageUrl !== ''
? `${dish.imageUrl}`
// eslint-disable-next-line max-len
: `https://thecustompackagingboxes.com/wp-content/uploads/2014/09/Chinese_food_boxes_3-compressed.jpg`}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в константу винеси

Comment on lines +37 to +58
<ul className="footer__about">
<li className="footer__item">
<a className="link" href="/#">
About UberEats
</a>
</li>
<li className="footer__item">
<a className="link" href="/#">
Read our blog
</a>
</li>
<li className="footer__item">
<a className="link" href="/#">
Sign up to deliver
</a>
</li>
<li className="footer__item">
<a className="link" href="/#">
Add your restaurant
</a>
</li>
</ul>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

це не nav?


return (
<>
{ width < 1279 ? (
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

і знову тут кондішинал. Рендери все і ховай класами. Це буде більш безболісно для браузера. По можливості уникай ресайзу і вирішуй це через media query

default: return state;
}
};

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

розбивай ред'юсер

Comment on lines +1 to +8
$ceilWidthFullHD: 348px;
$ceilWidthIPad: 340px;
$ceilWidthIPhone2_1: 280px;
$columnGap: 20px;

$max-widthFullHd: 1979px;
$max-widthIMac: 1279px;
$max-widthIPad: 767px;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

більше змінних немає? transition durations, colors

padding: 0;
}

link {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link? що це за тег, він ж тільки в head юзається

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants