This is a simple web-based Comment and Reply System built using Vanilla JavaScript, HTML, and CSS. It allows users to post a comment and reply to existing comments in a nested, interactive format.
π Project Structure
π¦ comment-reply-system
βββ comment.html // Main HTML structure
βββ comment.css // Styling for form, buttons, and layout
βββ comment.js // Logic to handle comments and nested replies
π Features
- π¬ Post a new comment
- β©οΈ Reply to any comment (unlimited nesting)
- β¨ Smooth UI interactions using CSS transitions
- π± Responsive and minimalist design
π οΈ Technologies Used
- HTML5 β Markup
- CSS3 β Styling and layout
- JavaScript (ES6) β DOM manipulation & interactivity
π§ How It Works
- Users type in the textarea and click βcommentβ to add a top-level comment.
- Each comment includes a hidden reply input and a βreplyβ button.
- Hovering over a comment reveals its reply section.
- Replies can be nested infinitely by replying to replies.
- Each reply follows the same interaction pattern, enabling threaded discussions.
πΈ Screenshots
https://github.com/user-attachments/assets/5de82b78-529a-4add-9d1c-324e4c6eef75
π§ͺ How to Run
- Clone or download this repository.
- Open the comment.html file in a browser.
- Start commenting and replying interactively.
π Notes
- No backend: All data is stored in memory and lost on page refresh.
- No framework: Pure HTML/CSS/JS without libraries or frameworks.