diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..09827eb --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,76 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at . All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..2031a55 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,122 @@ +# Contribution + If this is your first time to open source contribution in python So that I have created this repo for all the you to start contributing. + +# How to contribute? + +## Steps: + - Star the Repo 🌟 + + - Go to [issues](https://github.com/PragatiVerma18/Snippet-Share/issues) & select one upon which you want to work! + + - Fork the [repository](https://github.com/PragatiVerma18/Snippet-Share) + + - Clone the fork [repo](https://github.com//Snippet-Share) + - git clone https://https://github.com//Snippet-Share + + - Create new branch + - git checkout -b + + - Add code/scripts related to your respective issues. + - git add + + - Add a commit message ! + - git commit -a -m "" + - Push changes + - git push origin + + + - Push changes + - git push -u origin + + - Create pull requests + - [Try to Mention the related issue for your PR] + + +When contributing to this repository, please first discuss the change you wish to make via issue, +email, or any other method with the owners of this repository before making a change. + +Please note we have a code of conduct, please follow it in all your interactions with the project. + +## Pull Request Process + +1. Ensure any install or build dependencies are removed before the end of the layer when doing a + build. +2. Update the README.md with details of changes to the interface, this includes new environment + variables, exposed ports, useful file locations and container parameters. +3. Increase the version numbers in any examples files and the README.md to the new version that this + Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/). +4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you + do not have permission to do that, you may request the second reviewer to merge it for you. + +## Code of Conduct + +### Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +nationality, personal appearance, race, religion, or sexual identity and +orientation. + +### Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or +advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +### Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +### Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +### Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project maintainer. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + + + +### Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at [http://contributor-covenant.org/version/1/4][version] + +[homepage]: http://contributor-covenant.org +[version]: http://contributor-covenant.org/version/1/4/ diff --git a/README.md b/README.md index 5354561..970745d 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ Student Code-in is a global program that helps students grow with β€œOPEN SOURCE > **NOTE:** All the contributions to be counted under Student Code-In should be made to the `sci` branch. -
+
scodein -
+
- ### NWoC NJACK WINTER OF CODE @@ -69,6 +69,10 @@ cd Snippet-Share/snippet_share_project ``` pip install -r requirements.txt ``` +- Copy example.env to .env and set the values accordingly +``` +cp example.env .env +``` - Make migrations using ``` python manage.py makemigrations @@ -137,24 +141,7 @@ python manage.py runserver ## Contributors ✨ -Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): - - - - - - - - - - - - - -

Pragati Verma

πŸ’»

Manshi Todi

πŸ’»

Divy1998

πŸ’»

Abhishek Srivastava

πŸ’»

Akshat Khanna

πŸ’»

Aditya Tomar

πŸ’»
- - - - - -This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! + + + + diff --git a/snippet_share_project/accounts/templates/accounts/signup.html b/snippet_share_project/accounts/templates/accounts/signup.html index 3b86ee1..97f2b27 100644 --- a/snippet_share_project/accounts/templates/accounts/signup.html +++ b/snippet_share_project/accounts/templates/accounts/signup.html @@ -50,7 +50,8 @@ {% csrf_token %}

- + + @@ -91,4 +92,4 @@

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/snippet_share_project/example.env b/snippet_share_project/example.env new file mode 100644 index 0000000..37b400b --- /dev/null +++ b/snippet_share_project/example.env @@ -0,0 +1,3 @@ +DEBUG=false +SECRET_key=2&g68z@0fnz2+5=q5wb9vcdtv$ribu9b0_g*m=o$9zi9=h%^n4 +ALLOWED_HOST=localhost diff --git a/snippet_share_project/requirements.txt b/snippet_share_project/requirements.txt index b131978..7d043a8 100644 --- a/snippet_share_project/requirements.txt +++ b/snippet_share_project/requirements.txt @@ -3,3 +3,4 @@ Django==3.0.7 django-crispy-forms==1.9.0 pytz==2019.3 sqlparse==0.3.1 +python-dotenv==0.15.0 \ No newline at end of file diff --git a/snippet_share_project/snip_app/static/css/base.css b/snippet_share_project/snip_app/static/css/base.css new file mode 100644 index 0000000..c8e8aa8 --- /dev/null +++ b/snippet_share_project/snip_app/static/css/base.css @@ -0,0 +1,10 @@ +.searchform input{ + margin: 10px !important; + padding: 10px 10px; + border: 1px solid #ccc; + border-radius: 10px; +} + +.asteriskField { + display: none; +} \ No newline at end of file diff --git a/snippet_share_project/snip_app/static/css/index.css b/snippet_share_project/snip_app/static/css/index.css new file mode 100644 index 0000000..01f17a1 --- /dev/null +++ b/snippet_share_project/snip_app/static/css/index.css @@ -0,0 +1,31 @@ +.snipform{ + border-radius: 10px; + background-color: #f2f2f2; + padding: 40px; +} + + +.snipform input{ + margin: 15px !important; + padding: 10px 5px; + border: 2px solid #ccc; + border-radius: 4px; +} + +.snipform textarea { + width: 100%; + height: 150px; + padding: 12px 20px; + box-sizing: border-box; + border: 2px solid #ccc; + border-radius: 4px; + background-color: #ffffff; + resize:vertical; + overflow:auto; +} + +.snipform select { + padding: 16px 20px; + border: 2px solid #ccc; + border-radius: 4px; +} \ No newline at end of file diff --git a/snippet_share_project/snip_app/templates/base.html b/snippet_share_project/snip_app/templates/base.html index f3a748e..ebc5753 100644 --- a/snippet_share_project/snip_app/templates/base.html +++ b/snippet_share_project/snip_app/templates/base.html @@ -12,6 +12,8 @@ type="image/x-icon"> + + @@ -84,7 +86,14 @@

SnipBoard

-