Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All comments

  • @MohammedBentalb

    Submitted

    well... This is my first NextJs project ever, I admit that I haven't leveraged all its good features, yet it was quite fun.

    Difficulties:

    • images: if you try the live demo you can see that the images are losing quality once they got optimized with <Image/> component (if you got a good resource hope you drop it here)

    • Suspense: for some reason suspense had a weird response when I tried to use it and it gave me a hard time although I use it often in React.

    • Hydration: it's just annoying once in a while I get a hydration error and keep debugging until I realize it's just a random extension causing it.

    • Components: I forgot not to add margins/paddings to components, the thing that made it a bit hard to maintain the same sizes as shown in the designs.

    • Mongoose: I found it hard to know how to establish a single connection in the entire app and make use of it unlike using Mongodb

    Things I should have considered:

    • Drawing a workflow Schema: once I got the project; I started building it without even considering having spare time to classify the components ( Client / Server ), what strategy for acquiring data to go for (use Mongoose directly / use API routes i end up using both :) ) especially once many events happened and entrapped the journey.
    • Starting with something easier: this is a fairly easy project, but I made it harder by not considering my lack of knowledge of the framework and its catches especially when it comes to Nextauth, (it's a disaster, manually using JWT/node would have been easier).

    In case you have a good info/advice /resource I would be grateful to see it

    P
    Jens 610

    @Jenskiii

    Posted

    It's a nice website, I love the loading elements. and the login screen is a good add-on

    feedback 1: I don't know if it's on purpose or if you forgot but the price of the products doesn't add up in the cart if you increase the amount with the counter,

    feedback: 2 product counters on product pages are default 0, it is a better user experience to have this on 1

    Keep up the good work!

    Marked as helpful

    0
  • P
    Jens 610

    @Jenskiii

    Posted

    there are a couple of lines that are declared double in your code:

    p{ font-size: 15px; } .qrCode_instructions { font-size: 1rem; } since you only have 1 <p> you give it first the size of 15px and then of 1 rem

    *{ margin: 0; padding: 0; }

    p,h1{ margin: 0; } with this one, you already gave everything a margin of 0 with the * tag so the p,h1 is not necessary since you haven't adjusted the margin before that

    0
  • ahlam 30

    @Ahlam-alsaffarini

    Submitted

    all feedback is welcome uwu !

    P
    Jens 610

    @Jenskiii

    Posted

    plus: the animations are nice, the page looks good, and everything works as intended

    improvements: some comments in the code are always nice, and the breakpoints don't really match the wanted sizes of the project

    1