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

Solution to task #487

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

Solution to task #487

wants to merge 13 commits into from

Conversation

Karanelus
Copy link

@Karanelus Karanelus commented Aug 20, 2024

@Karanelus
Copy link
Author

Problem with Brand new slider: It's have overflow hidden, but size of page is increased and looks so wide

Copy link

@Zibi95 Zibi95 left a comment

Choose a reason for hiding this comment

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

Did you deployed after recent changes? For me it looks like that right now
image

All i can say right now that nav is working and looks ok and banner slider logic is fine. Good job.

@Karanelus
Copy link
Author

Did you deployed after recent changes? For me it looks like that right now image

All i can say right now that nav is working and looks ok and banner slider logic is fine. Good job.

Banner must looks like that, but the rest of the app are not loaded (local host showing all fine)
Send you a video with my problem

2024-08-21.20-06-22.mp4

@Karanelus
Copy link
Author

Karanelus commented Aug 21, 2024

<section className="w-full overflow-hidden"> <section style={{ width: ${newProducts.length * (276 + 16) - 16}px, }} className="grid grid-flow-col gap-8" > {newProducts.map((phone) => ( <ProductCardProduct key={phone.id} product={phone} /> ))} </section> </section>

Something wrong here, and i can't handle it rn(

@Karanelus Karanelus requested a review from Zibi95 August 21, 2024 19:14
Copy link

@Zibi95 Zibi95 left a comment

Choose a reason for hiding this comment

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

If I could just have it in the demo i could do more inspection on that. What i would try first is to setup overflow-x: hidden on the body.

@Karanelus
Copy link
Author

If I could just have it in the demo i could do more inspection on that. What i would try first is to setup overflow-x: hidden on the body.

Was done earlier, it's only block scrolling to section ('cos it is wide and placed far away from left side of the page).

@Karanelus
Copy link
Author

Need a help with Home Banner part. It change size of page (not as much as slider earlier, but inflict the navigation)

src/index.css Outdated
Comment on lines 32 to 36
#root {
min-height: 100dvh;
display: grid;
grid-template-rows: auto 1fr auto;
}

Choose a reason for hiding this comment

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

I think problem lies not with banner but with this grid. You can try to fix it or completely delete it and then adjust the rest

Copy link
Author

Choose a reason for hiding this comment

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

Grid was not a problem, but solution =) It fix my layout in good way and stopped change page wigth

Copy link

@Zibi95 Zibi95 left a comment

Choose a reason for hiding this comment

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

Hey.
Home view problems

  • adjust sizes of banner images for lower resolutions (look on mockup)
  • contrast here is bad
    {552DCA85-A2C9-4D7E-A7BC-8ADBB2D595D9}
  • add swipe so we can change images of banner on mobile
  • back to top button sends me to 404 page
  • this title on mobile should be centered
    {E876D56A-A766-487F-8947-1DB386D69951}
  • There is no slider for Hot prices section
    {6CB374EA-06EA-4932-92F3-606D08C243E5}
  • when page is loading there is layout shift on this section - add some loading spinner and add some height so we won't see the shift
    {4FDF5FA1-C3C3-49A6-9FA6-4DC6D738683C}
    Cumulative Layout Shift (CLS) its one of core web vitals (https://www.4spacje.pl/article/core-web-vitals-co-to-jest here is the link to article about that topic)

@Karanelus Karanelus requested a review from Zibi95 November 3, 2024 23:17
Copy link

@Zibi95 Zibi95 left a comment

Choose a reason for hiding this comment

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

"Hey, I'm not sure what has been completed. From my previous to-do list, I think the contrast and scroll-to-top button have been fixed. Maybe request a review when you feel the Home page is completely done.

@Karanelus Karanelus requested a review from Zibi95 November 4, 2024 17:37
Comment on lines +185 to +194
switch (sortType) {
case "Newest":
return b.year - a.year;
case "Alphabet":
return a.name.localeCompare(b.name);
case "Expensive":
return b.fullPrice - a.fullPrice;
case "Cheaper":
return a.fullPrice - b.fullPrice;
}

Choose a reason for hiding this comment

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

sort is not working cos sortType has additional quotation marks. These extra quotes prevent sortType from matching any of the expected values. if you replace them by e.g sortType.replace(/^['"]|['"]$/g, ''), sorting will work properly ;)

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