Skip to content

refactor: Fetch Program Data from JSON instead of Hardcoding [ SWOC ] #64

@trivedikavya

Description

@trivedikavya

Description:
Currently, the Open Source Programs (SWOC, GSSoC, etc.) are hardcoded into the HTML structure in index.html. The project structure suggests using data/programs.json, which would make updating programs easier.

Suggested Change:

  • Create/Populate data/programs.json with the program details (Name, Description, Badge).
  • Write a JavaScript function in js/main.js to fetch this JSON data.
  • Dynamically generate and insert the HTML cards into the .card-container.

Benefits:
Makes the code cleaner and allows non-developers to update program data easily by just editing the JSON file.

Contribution:
@sayeeg-11 I am eager to work on this! Please assign it to me.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions