Frontend Snippets is your go-to collection of bite-sized, ready-to-use code morsels for web development.
The collaborative nature of our open-source platform invites developers to contribute their own creations, fostering a dynamic library that caters to diverse needs.
Explore a variety of cool buttons, cards, navbars, and more submitted by contributors like you.
Wanna contribute to Frontend Snippets!! Here are the steps you should go through..
Step 1: 🍴 Fork the Repository
- Go to the repository on GitHub.
- Click on the "Fork" button in the top right corner of the page.
Step 2: 📥 Clone Your Forked Repository
- Open your forked repository on GitHub.
- Click on the "Code" button and copy the repository URL.
- Open your terminal and run the following command: git clone paste-your-repository-url-here
Step 3: 🌿 Create a Branch
- Change into the repository directory using: cd your-repository-name
- Create a new branch with a meaningful name: git checkout -b feature-name
Step 4: 🎨 Add Your Snippet
- Go to the repository and find the folder called library.
- Add a folder and name it with your snippet (e.g., my-awesome-navbar).
- Inside the folder, include index.html, style.css, and main.js (if needed).
- Include a readme.md describing the component, attach a screenshot, and include your name (compulsory).
Step 5: 📄 Update Documentation
- Go back and find the docs.html page.
- Add your component name and your name to the list. (This helps the list keep growing.)
Step 6: 💾 Commit and Push Changes
- Save your changes and stage them: git add .
- Commit the changes: git commit -m "Add my awesome snippet"
- Push the changes to your forked repository: git push origin feature-name
Step 7: 🚀 Create a Pull Request
-
Go to your forked repository on GitHub.
-
Click on the "New pull request" button.
-
Set the base repository to the original repository.
-
Set the base and compare branches accordingly.
-
Click "Create pull request."
-
Add a title and description for your pull request, then click "Create pull request."