Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Molza01 authored Oct 30, 2024
2 parents 4a02b37 + 211040f commit af76361
Show file tree
Hide file tree
Showing 6 changed files with 674 additions and 453 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/auto-comment-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Issue Opened and Closed Comment

on:
issues:
types: [opened, closed]

jobs:
comment-on-issue:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Comment on Issue Opened
if: ${{ github.event.action == 'opened' }}
uses: actions-ecosystem/action-create-comment@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
issue_number: ${{ github.event.issue.number }}
body: |
Thanks for opening this issue! We appreciate your contribution. Please make sure you’ve provided all the necessary details and screenshots, and don't forget to follow our [Guidelines](https://github.com/OWNER/REPO/CONTRIBUTING.md) and Code of Conduct. Happy coding! 🚀
- name: Comment on Issue Closed
if: ${{ github.event.action == 'closed' }}
uses: actions-ecosystem/action-create-comment@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
issue_number: ${{ github.event.issue.number }}
body: |
This issue has been successfully closed. Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀
22 changes: 22 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Auto-label Issues and Pull Requests

on:
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
add-labels:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Add Labels to Issue or Pull Request
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: "gssoc-ext, hacktoberfest-accepted"
issue_number: ${{ github.event.issue.number || github.event.pull_request.number }}
146 changes: 65 additions & 81 deletions Feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,111 +20,95 @@
z-index: 99999999;
transition: transform 0.1s ease-out;
}
</style>

/* Back to Home button */
.home-button {
position: fixed;
top: 20px;
left: 20px;
padding: 10px 20px;
background-color: #f89d63;
color: white;
border: none;
border-radius: 5px;
font-size: 1em;
font-family: Arial, sans-serif;
cursor: pointer;
z-index: 1000;
text-decoration: none;
display: inline-block;
transition: background-color 0.3s ease;
}

.home-button:hover {
background-color: #d1525c;
}

/* Feedback Form styles */
.feedback-container {
margin-top: 60px; /* Avoid overlap with the home button */
}
</style>
</head>
<body>
<!-- Back to Home Button -->
<a href="index.html" class="home-button">Back to Home</a>

<!-- Circles -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<!-- Other circles... -->

<div class="feedback-container">
<h2>We Value Your Feedback</h2>
<form id="feedbackForm">
<!-- Form elements -->
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>

<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>

<label for="rating">Rating:</label>
<div class="star-rating">
<input type="radio" name="rating" id="star5" value="5"><label for="star5"></label>
<input type="radio" name="rating" id="star4" value="4"><label for="star4"></label>
<input type="radio" name="rating" id="star3" value="3"><label for="star3"></label>
<input type="radio" name="rating" id="star2" value="2"><label for="star2"></label>
<input type="radio" name="rating" id="star1" value="1"><label for="star1"></label>
<!-- Other star inputs... -->
</div>

<label for="feedback">Feedback:</label>
<textarea id="feedback" name="feedback" rows="4" placeholder="Write your feedback here..." required></textarea>

<button type="submit">Submit Feedback</button>
</form>
<p id="thankyouMessage" class="thankyou-message"></p>
</div>

<script src="script1.js"></script>
<script>
// Coordinates for the cursor
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");

// Colors for the circles
const colors = [
"#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d",
"#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d",
"#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060",
"#680060", "#60005f", "#48005f", "#3d005e"
];

// Assign colors and initial position to each circle
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});

// Update the coordinates when the mouse moves
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});

// Animation function to move the circles
function animateCircles() {
let x = coords.x;
let y = coords.y;

<script>
// JavaScript for animated circles
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
const colors = ["#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d", "#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d", "#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060", "#680060", "#60005f", "#48005f", "#3d005e"];
circles.forEach(function (circle, index) {
// Update the position and scale of each circle
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;

circle.x = x;
circle.y = y;

// Get the next circle in the sequence
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});

// Repeat the animation
requestAnimationFrame(animateCircles);
}

// Start the animation
animateCircles();
</script>
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
</script>
</body>

</html>
</html>
Loading

0 comments on commit af76361

Please sign in to comment.