@RayaneBengaoui
Posted
Hello Jen,
Congrats for completing this challenge ! π
Your link doesn't work because it's https://focused-panini-ea6dd0.netlify.app/plan
instead of https://focused-panini-ea6dd0.netlify.app
. It's because React Router is not correctly loaded. You are hosting on Netlify so you can specify a redirect file to handle this, I've done that on my last challenge so you can check. However, I suggest you to read this article (https://ui.dev/react-router-cannot-get-url-refresh/) which explains it very well !
I don't have much experience in React to give you advice on the structure, but looking at your code I'm also doing more or less the same. On React official documentation (https://reactjs.org/docs/faq-structure.html) they don't have a strong opinion on that point, but their article could give you ideas.
Overall, well done for the challenge it looks good and a really like the smooth scrolling, happy coding ! π
@En-Jen
Posted
@RayaneBengaoui I think you must have seen my solution immediately after I submitted it. I realized right after submitting it that the link wasn't working and it was because I had copy and pasted the wrong URL when I submitted my solution. I'm impressed that you diagnosed that so quickly! Luckily I was able to just edit the link to the solution.
That's good to know that the React docs themselves state that they don't have a strong opinion on file structure. Thanks for your feedback!!
I've never seen your solutions on FM before but I just checked out your latest solution after you referenced it and wow, it looks amazing!! It looks like I could learn a few things from studying your code. Happy coding to you too!! π
@RayaneBengaoui
Posted
@En-Jen Haha I find myself having trouble also with all those URLs π
I'm also a beginner with React, just to warn you that my code is far from being clean. However, I'll be more than happy if you could get something out of it ! I have also a lot to learn from you on the accessibility part.
Thank you for your nice comment and good luck on the next one ! π
@En-Jen
Posted
@RayaneBengaoui I hadn't had any exposure to Framer Motion before I saw your solution so I learned a lot about animation from your project. I really love the page transitions you included in your last solution so I'll admit that I shamelessly borrowed them and added them to this coffeeroasters solution of mine along with another Framer Motion animation that I came up with myself π€ Glad you were able to learn some things about accessibility from this project!
@RayaneBengaoui
Posted
@En-Jen So cool ! It looks very nice. I can see that you are already experimenting with the bubbles "scaling" on the plan page !