~~ Feedback Please ☕👌🏻
Alex McGonagle
@thevolcanomanishereAll comments
- @GugaS1lvaSubmitted about 2 years ago@thevolcanomanisherePosted about 2 years ago
Hi Gustavo,
Great work. The design is on-point. For your Javascript, I have some suggestions: https://github.com/GugaS1lva/Fr.Mentor-11--Advice_Generator-App/blob/main/pages/index.js
You should create a single function that wraps the fetch call, so that you are not writing out the same function multiple times. This is called DRY (dont repeat yourself). Maybe a "getAdvice" function. On line, 45, you can then reuse this function instead of writing it out again. It is also good practice not to write out new functions inside of your component. You should always write your functions above your components. This helps to organise things a little easier.
You don't need 2 different useStates. You can use a single useState like const [data, setData] = useState("Loading..."); You then have access to the id and advice either by creating a simple selector or de-structuring the object. You can put data.slip into advice, then you can access with data.id and data.advice. :)
0 - @Aysha-pySubmitted over 2 years ago
Kindly look through my project. Feedback and corrections is highly appreciated
@thevolcanomanisherePosted over 2 years agoGreat work so far :) You just need to correctly import the font and to use object-fit: contain so that your images don't resize within their container. https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
0 - @arlagonixSubmitted over 2 years ago@thevolcanomanisherePosted over 2 years ago
I love this. The transparent card, hover effects, and wave effect look amazing.
1 - @nirajbagdiSubmitted over 2 years ago
Bugs and Feedbacks would be appreciated 😊.
@thevolcanomanisherePosted over 2 years agoQuick one, change your main div to <main> to fix your accessibility issues
0 - @AYoNiEzSubmitted over 2 years ago@thevolcanomanisherePosted over 2 years ago
You can quickly fix your 'landmark' issue by setting the main <div> that surrounds your project to <main>
Marked as helpful0 - @dennebSubmitted over 2 years ago
Hello! I've been learning react and I hope someone can give some feedback about my folder structure and if the code is easy to read/understand or not. I want to improve my skills so all kind of feedback is welcome!
I wanted to include switching pages/tabs animations but I realized I don't know how to do that haha so I'll learn about it and I hope I'll be able to include animations in future challenges
@thevolcanomanisherePosted over 2 years agoYou did a really great job on this project. I had a quick look at your folder structure and nothing jumped out as wrong! You have a well defined folder structure with things in their logical place.
For the background on your nav -> Add blur + opacity and it will match the reference design much closer.
Marked as helpful0 - @riccardofanoSubmitted over 2 years ago
I had some trouble understanding why my reducers were being called multiple times or not called at all, thankfully I figured out it was due to my functions not being pure and react 18 calling them twice in development mode and I was able to fix that issue.
I feel like my styles / utility classes were starting to become a mess near the end of project, I just started experimenting with Cube CSS, I'd appreciate it if someone could provide some feedback on the topic.
@thevolcanomanisherePosted over 2 years agoTry out Tailwind :) You can write your utility classes directly on each component!
Marked as helpful0 - @wyliemickelsonSubmitted over 2 years ago
I have a decent programming background in Ruby, which is a backend language, but this is my first time doing much of anything on the frontend with Javascript. Because of that, the js file is very unorganized and mostly just spaghetti code at this point. However, with my limited javascript knowledge going into this I'm quite happy that I got most of the responsive functionality working properly. My next projects I'll work on creating a more readable and organized js file base.
@thevolcanomanisherePosted over 2 years agoLooks good WYLIEMICKELSON’S! I would suggest looking at React + Tailwind to make your life much easier. React means that you can write HTML like code in your Javascript so you can avoid all those 'document.getBlahBlah'. Much less to keep track off. Tailwind lets you write CSS helpers directly on the components that you create and greatly simplifies styling.
0 - @MikiW03Submitted over 2 years ago
Any suggestions are welcome
@thevolcanomanisherePosted over 2 years agoLooks good! I noticed you haven't yet implemented the mobile view yet. Your current desktop design just needs the body font changed to grey, and maybe reduce the font weight a little too. Then your design will be far more similar to the reference.
Marked as helpful0 - @ChiamakaUISubmitted over 2 years ago@thevolcanomanisherePosted over 2 years ago
Great work! You are nearly there. Change the weight of the font + the color to grey and your design will be much closer to the reference. Also, change the border color of the textarea to grey.
0 - @EbunskiSubmitted over 2 years ago
Been a long time here, over 7months!
I need reviews and comments. Would go a long way.
@thevolcanomanisherePosted over 2 years agoLooks great! You just need to add a border radius to the 'you' with the blue background. Also your font has very tight kerning. Check it out here -> https://developer.mozilla.org/en-US/docs/Web/CSS/font-kerning
Check out tailwind for CSS. You will move 5x quicker and can write your css on the components directly
Marked as helpful0