Skip to content

Hardcoded Content and Lack of Component Scalability #19

@codeCraft-Ritik

Description

@codeCraft-Ritik

Summary:

The "Courses" and "Categories" sections are currently hardcoded in HTML, making the project difficult to maintain or scale as a real-world educational platform.

Detailed Description :

The Problem: Every time a new course is added, the developer must manually copy-paste large blocks of HTML. This is prone to errors (like broken tags) and makes it impossible to connect this frontend to a real database or API in the future.

Proposed Solution :

  • Refactor the course/category data into a JSON object or a JavaScript array.
  • Use a simple JavaScript forEach loop to dynamically render the cards into the DOM.
  • Create a single "Card Template" that can be reused across the site.

Impact : This transforms the project from a "static landing page" into a dynamic frontend architecture. It makes the code much cleaner (DRY - Don't Repeat Yourself) and prepares the project for integration with a backend (Node.js/Firebase).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions