-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Aboutuspage
- Loading branch information
Showing
15 changed files
with
1,195 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: 🐞 Bug | ||
description: Report an issue to help us improve the project. | ||
title: "[BUG] <write a small description here>" | ||
labels: ["bug", "goal: fix", "priority: medium"] | ||
assignees: [] | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: Briefly describe the issue, what you tried, and what didn't work. | ||
placeholder: "Describe the issue in detail..." | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps-to-reproduce | ||
attributes: | ||
label: Steps to Reproduce | ||
description: Provide steps to reproduce the issue. | ||
placeholder: "1. Go to...\n2. Click on...\n3. See error..." | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected Behavior | ||
description: Describe what you expected to happen. | ||
placeholder: "What should have happened?" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: actual-behavior | ||
attributes: | ||
label: Actual Behavior | ||
description: Describe what actually happened. | ||
placeholder: "What actually happened?" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additional-info | ||
attributes: | ||
label: Additional Information | ||
description: Any other details or information about the bug. | ||
placeholder: "Any other details..." | ||
validations: | ||
required: false | ||
- type: dropdown | ||
id: browser | ||
attributes: | ||
label: Browser | ||
multiple: true | ||
options: | ||
- Firefox | ||
- Chrome | ||
- Safari | ||
- Microsoft Edge | ||
- Other | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: no-duplicate-issues | ||
attributes: | ||
label: Checklist | ||
options: | ||
- label: "I have checked the existing [issues](https://github.com/GarimaSingh0109/WasteManagment/issues)." | ||
required: true | ||
- label: "I have read the [Code Of Conduct](https://github.com/GarimaSingh0109/WasteManagment?tab=coc-ov-file)" | ||
required: true | ||
- label: "The changes don't break the code" | ||
required: true | ||
- label: "Please attach screenshots and videos of the development work once done" | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "Documentation 📋" | ||
description: "Use this form to present your suggestions on how to improve our documentation" | ||
title: "[DOCS] <write your suggestion here>" | ||
labels: ["documentation", "goal: enhancement"] | ||
|
||
body: | ||
- type: textarea | ||
id: docs_description | ||
attributes: | ||
label: "Issue Description" | ||
description: "Please provide a brief summary of the documentation issue you are experiencing or would like to address." | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: screenshots_examples_docs | ||
attributes: | ||
label: "Screenshots or Examples (if applicable)" | ||
description: "Please include relevant screenshots or examples to help illustrate the problem." | ||
|
||
- type: textarea | ||
id: proposed_solution_docs | ||
attributes: | ||
label: "Proposed Solution (optional)" | ||
description: "If you have a proposed solution for the documentation issue, please provide it here. This can be helpful for speeding up the resolution process." | ||
|
||
- type: checkboxes | ||
id: terms_checklist_docs | ||
attributes: | ||
label: "Checklist" | ||
description: "By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/GarimaSingh0109/WasteManagment?tab=coc-ov-file)" | ||
options: | ||
- label: "I have checked the existing [issues](https://github.com/GarimaSingh0109/WasteManagment/issues)." | ||
required: true | ||
- label: "The changes don't break the code." | ||
required: true | ||
- label: "Please attach the screenshots and video of the development work once it is done." | ||
required: true | ||
|
||
- type: textarea | ||
id: additional_comments | ||
attributes: | ||
label: "Additional Comments (optional)" | ||
description: "Any additional comments or information you would like to provide." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Feature Request 💡 | ||
description: Have any new idea or new feature for WasteManagement? Please suggest! | ||
title: "[Feature] <write a small description here>" | ||
labels: ["enhancement", "goal: addition", "priority: high"] | ||
assignees: [] | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of the feature or alternative solutions you've considered. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: motivation | ||
attributes: | ||
label: Motivation | ||
description: Explain why this feature would be useful and how it benefits the project. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: Screenshots | ||
description: Please add screenshots if applicable. | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: additional_context | ||
attributes: | ||
label: Additional Context | ||
description: Add any other context or screenshots about the feature request here. | ||
validations: | ||
required: false | ||
- type: checkboxes | ||
id: checklist | ||
attributes: | ||
label: Checklist | ||
options: | ||
- label: "I have checked the existing [issues](https://github.com/GarimaSingh0109/WasteManagment/issues)." | ||
required: true | ||
- label: "I have read the [Code Of Conduct](https://github.com/GarimaSingh0109/WasteManagment?tab=coc-ov-file)." | ||
required: true | ||
- label: "The changes don't break the code." | ||
required: true | ||
- label: "I will attach screenshots and videos of the development work once it is done." | ||
required: true | ||
- type: dropdown | ||
id: priority | ||
attributes: | ||
label: Priority | ||
description: Select the priority level for this feature request. | ||
options: | ||
- "Low" | ||
- "Medium" | ||
- "High" | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!-- Thank you for sending a pull request :heart: --> | ||
|
||
## Issues Identification | ||
|
||
Closes: #(issue number) | ||
|
||
## Description | ||
|
||
### Summary | ||
Provide a brief description of what this pull request does and why it is needed. | ||
|
||
### Details | ||
Include any detailed information about the changes in this pull request. | ||
|
||
## Types of Changes | ||
|
||
_Please check the boxes that apply_ | ||
|
||
- [ ] Bugfix (non-breaking change that fixes an issue) | ||
- [ ] New feature (non-breaking change that adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] Documentation update (Documentation content changed) | ||
- [ ] Other (please describe): | ||
|
||
## Checklist | ||
|
||
_Please check the boxes that apply_ | ||
|
||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] My changes generate no new warnings | ||
- [ ] My changes do not break the current system and pass all existing test cases | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] New and existing unit tests pass locally with my changes | ||
- [ ] Any dependent changes have been merged and published in downstream modules | ||
|
||
## Screenshots | ||
|
||
If applicable, please attach screenshots of the changes made to the user interface. | ||
|
||
## Additional Information | ||
|
||
Please provide any other information that is relevant to this pull request. | ||
|
||
<!-- We're looking forward to merging your contribution!! --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Greetings 🐦🔥 | ||
on: [pull_request_target, issues] | ||
|
||
jobs: | ||
greeting: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/first-interaction@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-message: "Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible." | ||
pr-message: "Thank you, ${{ github.actor }}, for creating this pull request and contributing to WasteManagement! 💗\n\n The maintainers will review this Pull Request and provide feedback as soon as possible! 😇\nWe appreciate your patience and contribution, Keep up the great work! 😀" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
body { | ||
font-family: Arial, sans-serif; | ||
background-color: #EDF6F9; | ||
color: #333; | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
.container { | ||
max-width: 600px; | ||
margin: auto; | ||
padding: 20px; | ||
border: 1px solid #006D77; | ||
border-radius: 10px; | ||
background-color: #FFDDD2; | ||
} | ||
|
||
label { | ||
display: block; | ||
margin: 10px 0 5px; | ||
} | ||
|
||
input { | ||
width: 100%; | ||
padding: 8px; | ||
margin-bottom: 15px; | ||
border: 1px solid #006D77; | ||
border-radius: 5px; | ||
} | ||
|
||
button { | ||
padding: 10px 15px; | ||
background-color: #006D77; | ||
color: white; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
} | ||
|
||
button:hover { | ||
background-color: #004c54; | ||
} | ||
|
||
.result, .tips { | ||
margin-top: 20px; | ||
font-weight: bold; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
document.getElementById('footprintForm').addEventListener('submit', function(event) { | ||
event.preventDefault(); | ||
|
||
const wasteAmount = parseFloat(document.getElementById('wasteAmount').value); | ||
const recycledAmount = parseFloat(document.getElementById('recycledAmount').value); | ||
|
||
// Calculate carbon footprint based on a simple formula | ||
const carbonFootprint = (wasteAmount - recycledAmount) * 0.5; // Example factor | ||
const resultDiv = document.getElementById('result'); | ||
resultDiv.innerHTML = `Your estimated carbon footprint is ${carbonFootprint.toFixed(2)} kg CO₂/week.`; | ||
|
||
// Provide tips based on waste habits | ||
const tipsDiv = document.getElementById('tips'); | ||
tipsDiv.innerHTML = generateTips(carbonFootprint); | ||
}); | ||
|
||
function generateTips(footprint) { | ||
if (footprint < 5) { | ||
return "Great job! Keep up the eco-friendly habits!"; | ||
} else if (footprint < 10) { | ||
return "Consider reducing your waste by composting and recycling more."; | ||
} else { | ||
return "Try to minimize single-use plastics and opt for reusable items."; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule WasteManagment
added at
6be9c8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Carbon Footprint Calculator</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Carbon Footprint Calculator</h1> | ||
<form id="footprintForm"> | ||
<label for="wasteAmount">Waste Amount (kg per week):</label> | ||
<input type="number" id="wasteAmount" required> | ||
|
||
<label for="recycledAmount">Recycled Waste (kg per week):</label> | ||
<input type="number" id="recycledAmount" required> | ||
|
||
<button type="submit">Calculate</button> | ||
</form> | ||
|
||
<div id="result" class="result"></div> | ||
<div id="tips" class="tips"></div> | ||
</div> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.