Week 7 - Happy Thoughts by Daniel #442
Conversation
JosefinRobertsson
left a comment
There was a problem hiding this comment.
Good naming of classnames and functions. Any deviations from the specified styling was deliberate choices you made so all good there. Code is orderly and easy to follow. You might want to add a little snippet to clear the textarea after posting. Keep up the good work!
| <p>x{thought.hearts}</p> | ||
| </div> | ||
| <div className="time"> | ||
| <p>{moment(thought.createdAt).fromNow()}</p> |
There was a problem hiding this comment.
I got posted "in a few seconds" when I posted a thought, so this way of handling the post time seems to have some vulnerabilities. Unless you made some sort of time machine, which is awesome, and in that case: carry on
| </label> | ||
| <button | ||
| type="submit" | ||
| disabled={newPost.length < 5 || newPost.length > 140} |
There was a problem hiding this comment.
Smart way of handling the allowed input length!
| display: flex; | ||
| flex-wrap: wrap; | ||
| border: 2px solid black; | ||
| box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75); |
There was a problem hiding this comment.
The softened box-shadow looks nice
JosefinRobertsson
left a comment
There was a problem hiding this comment.
Good naming of classnames and functions. Any deviations from the specified styling was deliberate choices you made so all good there. Code is orderly and easy to follow. You might want to add a little snippet to clear the textarea after posting. Keep up the good work!
https://technigo-happy-thoughts-app.netlify.app/