-
Notifications
You must be signed in to change notification settings - Fork 78
cards for all sizes, header only fullHD & IMac, without footer #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
cards for all sizes, header only fullHD & IMac, without footer #48
Conversation
vkryvytskyi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хорошее начало, продолжай!
| <RestaurantCard | ||
| categories={categories} | ||
| heroImageUrl={heroImageUrl} | ||
| title={title} | ||
| uuid={uuid} | ||
| etaRange={etaRange.text} | ||
| /> |
There was a problem hiding this comment.
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%; | |||
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.is-disabled
| {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 |
There was a problem hiding this comment.
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`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в константу винеси
| <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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
це не nav?
|
|
||
| return ( | ||
| <> | ||
| { width < 1279 ? ( |
There was a problem hiding this comment.
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; | ||
| } | ||
| }; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
розбивай ред'юсер
| $ceilWidthFullHD: 348px; | ||
| $ceilWidthIPad: 340px; | ||
| $ceilWidthIPhone2_1: 280px; | ||
| $columnGap: 20px; | ||
|
|
||
| $max-widthFullHd: 1979px; | ||
| $max-widthIMac: 1279px; | ||
| $max-widthIPad: 767px; |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link? що це за тег, він ж тільки в head юзається
https://anastasiiakonovalenko.github.io/react_uber-eats/