Skip to content

Commit

Permalink
Changes for contributors information
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairyagothi committed Oct 2, 2024
1 parent 7e1a601 commit b25a7bd
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 13 deletions.
15 changes: 15 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"projectName": "StationGuide",
"projectOwner": "Dhairya Gothi",
"repoType": "github",
"repoHost": "https://station-guide.vercel.app/",
"files": [
"README.md"
],
"imageSize": 30,
"commit": true,
"commitConvention": "gitmoji",
"contributors": [],
"contributorsPerLine": 7,
"linkToUsage": true
}
Empty file.
22 changes: 22 additions & 0 deletions .github/workflows/all-contributors-auto-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto Add Contributor with All Contributors Bot

on:
pull_request:
types: [closed]

jobs:
add-contributor:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Create a Comment to Add Contributor
run: |
PR_AUTHOR=$(jq -r '.pull_request.user.login' < ${GITHUB_EVENT_PATH})
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-X POST \
-d '{"body":"@all-contributors please add @'"$PR_AUTHOR"' for code"}' \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
1 change: 1 addition & 0 deletions .github/workflows/autocomment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
{
"body": "🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to Station Guide. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀"
}
EOF
)
RESPONSE=$(curl -s -o response.json -w "%{http_code}" \
Expand Down
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# STATION GUIDE : YOUR PLATFORM GUIDE
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-0-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

<a href="[https://github.com/Dhairyagoth](https://github.com/dhairyagothi)i"><img src="https://readme-typing-svg.demolab.com?font=Fira+Code&pause=1000&color=DEF72C&random=false&center=false &width=1000&lines=Station Saarthi %2C+Your+Platform+Guide" alt="Typing SVG" /></a>
welcome to repository of Station Guide
Expand Down Expand Up @@ -90,10 +96,19 @@ StationGuide/
├── using.md # This file
└── ... # Other project configuration files (e.g., .gitignore)
```
## Contributors ✨

Thanks to everyone who has contributed to this project!

<a href="https://github.com/dhairyagothi/StationGuide/graphs/contributors">
<img src="https://contrib.rocks/image?repo=dhairyagothi/StationGuide" alt="Contributors" />
</a>


## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
16 changes: 8 additions & 8 deletions frontend/src/Pages/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ const Register = () => {

return (
<div className="flex flex-col items-center justify-center min-h-screen bg-gray-100">
<h2 className="text-3xl font-bold mb-6">Register New User</h2>
<form onSubmit={handleRegister} className="bg-white p-6 rounded-lg shadow-md w-full max-w-sm">
<h2 className="mb-6 text-3xl font-bold">Register New User</h2>
<form onSubmit={handleRegister} className="w-full max-w-sm p-6 bg-white rounded-lg shadow-md">

{/* Name Input */}
<div className="mb-4">
<label className="block text-gray-700 font-bold mb-2" htmlFor="name">Name</label>
<label className="block mb-2 font-bold text-gray-700" htmlFor="name">Name</label>
<input
type="text"
id="name"
Expand All @@ -31,7 +31,7 @@ const Register = () => {

{/* Phone Number Input */}
<div className="mb-4">
<label className="block text-gray-700 font-bold mb-2" htmlFor="phoneNumber">Phone Number</label>
<label className="block mb-2 font-bold text-gray-700" htmlFor="phoneNumber">Phone Number</label>
<input
type="tel"
id="phoneNumber"
Expand All @@ -45,7 +45,7 @@ const Register = () => {

{/* Email Input */}
<div className="mb-4">
<label className="block text-gray-700 font-bold mb-2" htmlFor="email">Email</label>
<label className="block mb-2 font-bold text-gray-700" htmlFor="email">Email</label>
<input
type="email"
id="email"
Expand All @@ -59,7 +59,7 @@ const Register = () => {

{/* Password Input */}
<div className="mb-6">
<label className="block text-gray-700 font-bold mb-2" htmlFor="password">Password</label>
<label className="block mb-2 font-bold text-gray-700" htmlFor="password">Password</label>
<input
type="password"
id="password"
Expand All @@ -74,15 +74,15 @@ const Register = () => {
{/* Register Button */}
<button
type="submit"
className="w-full bg-blue-500 text-white py-2 rounded-lg font-semibold hover:bg-green-600 transition-colors"
className="w-full py-2 font-semibold text-white transition-colors bg-blue-500 rounded-lg hover:bg-blue-600"
>
Register
</button>
</form>
{/* Already have an account link */}
<p className="mt-4">
<span className="text-gray-600">Already have an account? </span>
<a href="/login" className="text-blue-500 font-semibold hover:underline transition duration-300 ease-in-out transform hover:scale-105">
<a href="/login" className="font-semibold text-blue-500 transition duration-300 ease-in-out transform hover:underline hover:scale-105">
Log in
</a>
</p>
Expand Down

0 comments on commit b25a7bd

Please sign in to comment.