{"id":31766284,"url":"https://github.com/ayokanmi-adejola/interactive-comments-section","last_synced_at":"2025-10-10T00:30:51.917Z","repository":{"id":307187047,"uuid":"1027865149","full_name":"Ayokanmi-Adejola/Interactive-Comments-Section","owner":"Ayokanmi-Adejola","description":"A fully responsive and feature-rich comment system built as a Frontend Mentor challenge solution. Featuring real-time CRUD operations, upvote/downvote functionality, nested comment threading, user authentication simulation, and persistent data storage using localStorage. Built using HTML5, CSS3 , Vanilla JavaScript (ES6+), localStorage API ","archived":false,"fork":false,"pushed_at":"2025-07-29T21:15:47.000Z","size":366,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-30T00:00:36.912Z","etag":null,"topics":["css3","flexbox-layout","html5","localstorage-api","mobile-first-workflow","vanilla-js"],"latest_commit_sha":null,"homepage":"https://interactive-comments-section-mauve-eta.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ayokanmi-Adejola.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-28T16:44:03.000Z","updated_at":"2025-09-15T13:29:11.000Z","dependencies_parsed_at":"2025-07-29T23:51:51.980Z","dependency_job_id":"9e931594-06d1-403f-9526-2da237806f28","html_url":"https://github.com/Ayokanmi-Adejola/Interactive-Comments-Section","commit_stats":null,"previous_names":["ayokanmi-adejola/interactive-comments-section"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ayokanmi-Adejola/Interactive-Comments-Section","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FInteractive-Comments-Section","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FInteractive-Comments-Section/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FInteractive-Comments-Section/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FInteractive-Comments-Section/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ayokanmi-Adejola","download_url":"https://codeload.github.com/Ayokanmi-Adejola/Interactive-Comments-Section/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayokanmi-Adejola%2FInteractive-Comments-Section/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002364,"owners_count":26083356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css3","flexbox-layout","html5","localstorage-api","mobile-first-workflow","vanilla-js"],"created_at":"2025-10-10T00:30:13.762Z","updated_at":"2025-10-10T00:30:51.912Z","avatar_url":"https://github.com/Ayokanmi-Adejola.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interactive Comments Section\n\nA fully responsive and interactive comments system built with vanilla JavaScript, featuring real-time CRUD operations, voting functionality, and persistent data storage\n\n![Interactive Comments Section Preview](preview.jpg)\n\n\n\n## 🎯 Overview\n\nThis project is a solution to the [Interactive Comments Section challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/interactive-comments-section-iG1RugEG9). The challenge focuses on building a dynamic comment system that allows users to create, read, update, and delete comments and replies with a modern, responsive interface.\n\n### The Challenge\n\nUsers should be able to:\n\n- ✅ View the optimal layout for the app on any device screen size\n- ✅ See hover states for all interactive elements\n- ✅ Create, read, update, and delete comments and replies\n- ✅ Upvote and downvote comments with real-time score updates\n- ✅ Reply to comments with nested threading\n- ✅ Edit their own comments with inline editing\n- ✅ Delete comments with confirmation modal\n- ✅ Persist data using localStorage (bonus feature)\n- ✅ Responsive design for mobile and desktop\n\n## ✨ Features\n\n### Core Functionality\n- **Full CRUD Operations**: Create, read, update, and delete comments and replies\n- **Real-time Voting System**: Upvote and downvote with instant score updates\n- **Nested Comment Threading**: Reply to comments with proper nesting\n- **User Authentication Simulation**: Distinguish between current user and others\n- **Confirmation Modals**: Safe deletion with user confirmation\n\n### Technical Features\n- **Responsive Design**: Mobile-first approach with seamless desktop scaling\n- **Data Persistence**: localStorage integration for data retention\n- **Accessibility**: Keyboard navigation and focus management\n- **Performance Optimized**: Efficient DOM manipulation and event handling\n- **Clean Architecture**: Modular JavaScript with separation of concerns\n\n### UI/UX Features\n- **Smooth Animations**: Hover effects and transitions\n- **Interactive Elements**: Visual feedback for all user actions\n- **Modern Design**: Clean, professional interface following design specifications\n- **Cross-browser Compatibility**: Works across all modern browsers\n\n## 🛠 Technologies Used\n\n- **HTML5**: Semantic markup and accessibility features\n- **CSS3**:\n  - Custom properties (CSS variables)\n  - Flexbox and CSS Grid\n  - Mobile-first responsive design\n  - Smooth transitions and animations\n- **Vanilla JavaScript (ES6+)**:\n  - DOM manipulation\n  - Event delegation\n  - localStorage API\n  - Modular functions\n  - Arrow functions and template literals\n\n## 📦 Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/Ayokanmi-Adejola/interactive-comments-section.git\n   cd interactive-comments-section\n   ```\n\n2. **Open the project**\n   ```bash\n   # Option 1: Open directly in browser\n   open index.html\n\n   # Option 2: Use a local server (recommended)\n   npx http-server\n   # or\n   python -m http.server 8000\n   ```\n\n3. **View in browser**\n   - Navigate to `http://localhost:8000` (if using local server)\n   - Or open `index.html` directly in your browser\n\n## 🎮 Usage\n\n### Adding Comments\n1. Type your comment in the textarea at the bottom\n2. Click the \"SEND\" button\n3. Your comment appears at the top of the list\n\n### Voting on Comments\n- Click the **+** button to upvote\n- Click the **-** button to downvote\n- Scores update in real-time\n\n### Replying to Comments\n1. Click the \"Reply\" button on any comment\n2. Type your reply in the form that appears\n3. Click \"REPLY\" to submit\n\n### Editing Comments\n1. Click \"Edit\" on your own comments (marked with \"you\" badge)\n2. Modify the text in the inline editor\n3. Click \"UPDATE\" to save changes\n\n### Deleting Comments\n1. Click \"Delete\" on your own comments\n2. Confirm deletion in the modal that appears\n3. Comment is permanently removed\n\n## 📁 Project Structure\n\n```\ninteractive-comments-section/\n├── index.html              # Main HTML file\n├── style.css              # Complete CSS styling\n├── script-clean.js        # Main JavaScript functionality\n├── data.json             # Initial comment data\n├── images/               # Assets and avatars\n│   ├── avatars/         # User avatar images\n│   └── *.svg           # Icon files\n├── design/              # Design reference files\n└── README.md           # Project documentation\n```\n\n## 🧠 Key Learnings\n\n### JavaScript Concepts Mastered\n- **DOM Manipulation**: Efficient element creation and management\n- **Event Handling**: Delegation and dynamic event binding\n- **Data Management**: localStorage integration and state management\n- **Modular Programming**: Clean, reusable function architecture\n\n### CSS Techniques Applied\n- **CSS Custom Properties**: Maintainable design system\n- **Responsive Design**: Mobile-first methodology\n- **Flexbox \u0026 Grid**: Modern layout techniques\n- **Accessibility**: Focus states and keyboard navigation\n\n### Problem-Solving Highlights\n- Implemented nested comment threading with proper data structure\n- Created smooth user experience with real-time updates\n- Solved data persistence challenges with localStorage\n- Optimized performance with efficient rendering strategies\n\n## 🚀 Future Enhancements\n\n- [ ] **Backend Integration**: Connect to a real database\n- [ ] **User Authentication**: Implement proper user login system\n- [ ] **Real-time Updates**: WebSocket integration for live comments\n- [ ] **Rich Text Editor**: Markdown support and formatting options\n- [ ] **Image Uploads**: Allow users to attach images to comments\n- [ ] **Notification System**: Alert users of replies and mentions\n- [ ] **Comment Search**: Search and filter functionality\n- [ ] **Moderation Tools**: Admin controls for content management\n\n\n\n## 👨‍💻 Author\n\n\n- Frontend Mentor: [@Ayokanmi-Adejola](https://www.frontendmentor.io/profile/Ayokanmi-Adejola)\n\n## 🙏 Acknowledgments\n\n- [Frontend Mentor](https://www.frontendmentor.io) for providing the design challenge\n- The Frontend Mentor community for inspiration and feedback\n- [Google Fonts](https://fonts.google.com) for the Rubik font family# Interactive-Comments-Section\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayokanmi-adejola%2Finteractive-comments-section","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayokanmi-adejola%2Finteractive-comments-section","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayokanmi-adejola%2Finteractive-comments-section/lists"}