The GDSC Digital Badge Generator is a web-based tool that allows users to create personalized digital badges by uploading their photo, sharing their name, and providing their GitHub username. Once the information is added, the badge can be generated and downloaded, including the GDd PCE logo.
This repository is open to all kinds of contributions under the Hacktoberfest guidelines. Whether you're fixing bugs, adding new features, or improving documentation, your contributions are welcome!
Before contributing, please ensure you've read and understood the contributing guidelines.
- Fork the repository to your GitHub account.
- Create a new branch for the feature or bug you're working on.
- Make your changes and commit them with clear messages.
- Submit a pull request (PR) for review.
- Wait for a maintainer to assign you an issue or approve your PR.
- Upload a Photo: Users can upload their photo, which will be displayed on the badge.
- Enter Name: Provide your name, which will be displayed prominently on the badge.
- Enter GitHub Username: Enter your GitHub username to be shown on the badge.
- Generate the Badge: Once all inputs are added, generate the badge with a click.
- Download the Badge: After generating, users can download the badge as an image.
We are using html2canvas
to allow users to download the badge as an image. html2canvas
is a JavaScript library that takes screenshots of webpages or parts of webpages, which is useful for generating the badge image.
-
Install
html2canvas
using npm:npm install html2canvas
-
Clone the repository:
git clone https://github.com/gdgpce/digital-badge-generator.git cd digital-badge-generator
-
Open the
index.html
file in any browser to view the Digital Badge Generator. -
Add your code for image uploading, name and GitHub username customization, and badge generation as specified in the comments within
main.js
.
This project includes a GitHub corner to easily access the repository. To add the GitHub corner to your project, visit the GitHub Corners website and follow the instructions.
digital-badge-generator/
├── assets/
│ └── logo.png # GDSC logo that appears on badges
├── style.css # Styles for the page
├── index.html # Main HTML file for the badge generator
├── main.js # JavaScript logic for the badge generation
├── README.md # Project documentation
└── CONTRIBUTING.md # steps to contribute file
This project includes a GitHub corner where users can access the repository easily. To add the GitHub corner to your project, visit the GitHub Corners website and follow the instructions.
Below are the reference images for the UI of the badge generator and the badge itself:
-
HTML/CSS/JavaScript Contributions:
- Add new features or improve the styling in the
index.html
andstyles.css
files. - Add image upload or customization logic inside
main.js
.
- Add new features or improve the styling in the
-
Bug Fixes:
- Report bugs via the GitHub Issues tab.
- Fix bugs by submitting a pull request after discussing with maintainers.
- New Badge Templates: Allow users to select from multiple badge designs.
- Live Preview: Implement a live preview feature before downloading the badge.
- Animations: Add animations to the badge generation process for better user interaction.
Participate in Hacktoberfest by contributing to this project! Make sure the repositories are marked under hacktoberfest label .Contributions must be made between October 1st and October 31st to count toward Hacktoberfest.
Happy coding!