Skip to content

sazzad4677/Interactive-comments-section

Repository files navigation

Frontend Mentor - Interactive comments section solution

This is a solution to the Interactive comments section challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Create, Read, Update, and Delete comments and replies
  • Upvote and downvote comments
  • On the top, users can see the most voted comments.
  • localStorage to save the current state in the browser that persists when the browser is refreshed.
  • Timestamps and dynamically track the time since the comment or reply was posted.

Screenshots

Desktop View

desktop view

Mobile View

Mobile view

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS Flexbox
  • Mobile-first workflow
  • React - JS library
  • Tailwind CSS - Utility-first CSS framework

What I learned

  • I was able to reinforce my knowledge of flexbox and obtain a better understanding of how it works.
  • I learned how to utilize a custom hook to prevent duplicating code.
  • I learned how to calculate timestamps and dynamically track the time.
  • I learned how to work with nested structures.

Author