Submitted
FAQ accordion
- HTML
- CSS
- JS
@Erleh
Submitted
Submitted
Submitted
What did you find difficult while building the project?
Submitted
What did you find difficult while building the project?
Setting up the server, I had a hard time deciding where I would have the inputted email checked. I ended up deciding to have it checked via the post body in my server.js and called for the page to be rendered based off the result.
I wondered if there were possibly a better and simpler way to do this in just the front end. But I also figured if this were fully setup, it would be safer to have the validation in the backend anyways, though having it both in the front and back would be best. So had I made a validator first in the front, it would probably have responded faster to the first checks if any.
Submitted
What did you find difficult while building the project?
I would say this difficulty is more aligned towards design, but I often find approaching the right amount of white space to add to components isolated on a page hard.
Do you have any questions about best practices?
There was not much to show for this project, but for css, would it be better to id my individual html elements and style them or would my current use of css selectors be the way to go when styling components child-ed to other elements. This would probably be more of a case dependent scenario but I'm just curious if there were a best practice to think of first in these cases.