Skip to content
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

Phone catalog app #216

Open
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

ValeraViachalo
Copy link

@TarasHoliuk
Copy link

There is an empty screen:

image

If you have problems with deploying feel free to ask in the chat

Copy link

@TarasHoliuk TarasHoliuk left a comment

Choose a reason for hiding this comment

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

Please, re-request review when the task will be done. Do not close your PR. If you have any questions it's better to ask them in the chat 🙂

@ValeraViachalo ValeraViachalo changed the title doesnt show anything Phone catalog app Sep 12, 2023
@TarasHoliuk
Copy link

Let's fix a few minor UI issues

  1. Placeholder is not aligned here:

image

  1. There should be cursor pointer:

image
image

  1. Fix the footer layout, and open external links (GH, Instagram in new tabs, RIGHTS link shouldn't lead to 404 page):

image

  1. Align slider:

Screenshot from 2023-09-14 18-28-56

Copy link

@TarasHoliuk TarasHoliuk left a comment

Choose a reason for hiding this comment

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

For sure, very good job 👍

Let's add a few minor improvements

BTW: do not forget re-deploy app after any changes (I still can't see the favicon)

import { Product } from '../types/Product';

export const productFilter = (products: Product[], query: string) => {
const preparedQuery = query.toLowerCase().trim();

Choose a reason for hiding this comment

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

not sure we have to trim here - it's a search query, not input that will be part of some entity you create, etc. For example query Hi will still match the word Himars which might a bit unexpectedly

export const productFilter = (products: Product[], query: string) => {
const preparedQuery = query.toLowerCase().trim();

const productsIncludeQuery = products.filter(product => {

Choose a reason for hiding this comment

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

Suggested change
const productsIncludeQuery = products.filter(product => {
return products.filter(product => {

in such cases you may immediately return - FYI

]);
};

const quantityCart = (productId: string, action: Action) => {

Choose a reason for hiding this comment

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

let's rename it - sounds like a variable that stores amount (quantity) of products in the cart


import './PhonePage.scss';

export const PhonePage = () => {

Choose a reason for hiding this comment

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

PhonesPage - it renders the list of Phones not one item

The same below - ProductsPage

Copy link

@IvanFesenko IvanFesenko left a comment

Choose a reason for hiding this comment

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

Check this case, + add some trastion for hover effect
https://github.com/mate-academy/react_phone-catalog/assets/61904995/9596c369-0541-4e4b-b3eb-8c68e847b667

Bottom border invisible on hover
https://github.com/mate-academy/react_phone-catalog/assets/61904995/88f523cd-bfcd-4264-a61f-68b41f487e9c

add cursor: pointer to all elements user can click

fix indents in footer
2023-09-15_15h38_20

@ValeraViachalo
Copy link
Author

i dont know how but in deploy transform doesn`t smooth

20230917133319.mp4

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

  • Also set cursor: pointer for all interactive elements.
    For example
    chrome-capture-2023-8-17

  • fix footer from prev comments.
    footer

  • for portfolio project very important to make responsive all pages.
    Screenshot from 2023-09-17 16-47-30

@@ -0,0 +1,43 @@
@mixin hover($property, $toValue) {
transition: #{$property}, $effect-duration;

Choose a reason for hiding this comment

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

Suggested change
transition: #{$property}, $effect-duration;
transition: #{$property}, $effect-duration ease;

something went wrong with transition.
try to set ease function.

devtools in demo-link
Screenshot from 2023-09-17 16-38-31
and after change transition property
Screenshot from 2023-09-17 16-39-56
chrome-capture-2023-8-17 (1)

also can be problem with css imports. try to import without ./ in glonal-imports.

@ValeraViachalo
Copy link
Author

I`ll do a responsive all pages after another problems have been solved

Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

still can reproduce it, try to re-deploy your work
image

@ValeraViachalo
Copy link
Author

Dont know how to solve that proplem
image

@ValeraViachalo
Copy link
Author

also cant create normal that swipers
image

Im trying to do how I found in docs but its not working(
image

Copy link

@maxim2310 maxim2310 left a comment

Choose a reason for hiding this comment

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

it must help but with swiper need to read documentation and stackoverflow
image

@ValeraViachalo
Copy link
Author

ValeraViachalo commented Sep 21, 2023

There is only one problem with jumping, and I have no idea how to fix it
image

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

Almost done.
Found a few moments for improvement

  • check transition in all elements. for example
    chrome-capture-2023-8-21 (1)

  • check styles for dropdown option
    chrome-capture-2023-8-21

  • center content horizontally for tablet/mobile view. check all pages and different widths
    Screenshot from 2023-09-21 13-03-19

  • home page approximately 708px width. no visible right border
    Screenshot from 2023-09-21 13-01-10

  • phone details page. make spaces between images as in design.
    Screenshot from 2023-09-21 13-03-48

I haven't noticed some jumping on details page - but if you have questions about it, please ask in fe_chat

@ValeraViachalo
Copy link
Author

  • home page approximately 708px width. no visible right border
    Screenshot from 2023-09-21 13-01-10

its swiper issue. Dont know how to solve that

Copy link

@sTorba24 sTorba24 left a comment

Choose a reason for hiding this comment

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

Swiper is cropped for some reason :(
image

fix it please

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link

@maxim2310 maxim2310 left a comment

Choose a reason for hiding this comment

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

  1. need to add cursor pointer and padding for better clickable
    image
  2. make it more readability, make font not bold and a bit smaller and check that it placed by center
    image

rest looks good

@ValeraViachalo
Copy link
Author

20231010114016.mp4

problem with sort per page

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.

8 participants