From ea534ba9cd9ce4785cbea6fe7cd41b56cbc99f02 Mon Sep 17 00:00:00 2001 From: Arnav-Garg-008 Date: Thu, 17 Oct 2024 19:31:23 +0530 Subject: [PATCH] Add files via upload --- open-source-arcade/Contributors.md | 53 ++++++++++++++ open-source-arcade/LICENSE | 21 ++++++ open-source-arcade/README.md | 113 +++++++++++++++++++++++++++++ open-source-arcade/index.html | 41 +++++++++++ open-source-arcade/src/script.js | 50 +++++++++++++ open-source-arcade/src/styles.css | 61 ++++++++++++++++ 6 files changed, 339 insertions(+) create mode 100644 open-source-arcade/Contributors.md create mode 100644 open-source-arcade/LICENSE create mode 100644 open-source-arcade/README.md create mode 100644 open-source-arcade/index.html create mode 100644 open-source-arcade/src/script.js create mode 100644 open-source-arcade/src/styles.css diff --git a/open-source-arcade/Contributors.md b/open-source-arcade/Contributors.md new file mode 100644 index 0000000..265049b --- /dev/null +++ b/open-source-arcade/Contributors.md @@ -0,0 +1,53 @@ +Information Management Group +Angel Sharma +
+Cherish Puniani +
+Arnav Garg +Akhil Punia +Noble Mittal +Suyash Rahul +Bhoomi Bonal +Ujjwal Arya +Somil Jain +Dhruv Saxena +Nikhil Nagar +LU_1F3R +Bhuro + +Mohit Agarwal +Sourav + +Anshika Arora + +Dhairya Singhal +Arnav Gupta + +Aditya Karwa +Dhruv Pankaj + +Tanmay Sharma +Shashank Shekhar +Yash Hirani +Aditya Ranjan +Shantanu Singh +Divyansh Agarwal +kavya rajput +Devansh Pandey +Sanjeet Manna + +Hardik Narang +Vaishnavi Kolgane +Jasleen Kaur +Vatsal Agarwal +Basde Papa +Divij Rawal +Utsah +Krishna Awasthi +Pranav Konidena +Abhay Pratap Choudhary +Prachi Bhagat +Archit Modi +Lakshita +Saurabh Rana + diff --git a/open-source-arcade/LICENSE b/open-source-arcade/LICENSE new file mode 100644 index 0000000..8442679 --- /dev/null +++ b/open-source-arcade/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Information Management Group + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/open-source-arcade/README.md b/open-source-arcade/README.md new file mode 100644 index 0000000..3d167c7 --- /dev/null +++ b/open-source-arcade/README.md @@ -0,0 +1,113 @@ +# First Open Source Contribution + +This project aims to simplify and guide the way beginners make their first contribution. If you are looking to make your first contribution, follow the steps below. + +fork this repository + +#### If you don't have git on your machine, [install it](https://docs.github.com/en/get-started/quickstart/set-up-git). + +## Fork this repository + +Fork this repository by clicking on the fork button on the top of this page. +This will create a copy of this repository in your account. + +## Clone the repository + +clone this repository + +Now clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click on the code button and then click the _copy to clipboard_ icon. + +Open a terminal and run the following git command: + +```bash +git clone URL_COPIED +``` + +where `URL_COPIED` is the url to this repository (your fork of this project). See the previous steps to obtain the url. + +copy URL to clipboard + +For example: + +```bash +git clone https://github.com/YOUR_USERNAME/open-source-arcade.git +``` + +where `YOUR_USERNAME` is your GitHub username. Here you're copying the contents of the open-source-arcade repository on GitHub to your computer. + +## Create a branch + +Change to the repository directory on your computer (if you are not already there): + +```bash +cd open-source-arcade +``` + +Now create a branch using the `git checkout` command: + +```bash +git checkout -b your-new-branch-name +``` + +For example: + +```bash +git checkout -b add-inforamtion-management-group +``` + +## Make necessary changes and commit those changes + +Now open `Contributors.md` file in a text editor, add your name to it. Don't add it at the beginning or end of the file. Put it anywhere in between. Now, save the file. + +git status + +If you go to the project directory and execute the command `git status`, you'll see there are changes. + +Add those changes to the branch you just created using the `git add` command: + +```bash +git add Contributors.md +``` + +Now commit those changes using the `git commit` command: + +```bash +git commit -m "Add your-name to Contributors list" +``` + +replacing `your-name` with your name. + +## Push changes to GitHub + +Push your changes using the command `git push`: + +```bash +git push -u origin your-branch-name +``` + +replacing `your-branch-name` with the name of the branch you created earlier. + +
+ If you get any errors while pushing, click here: + +- ### Authentication Error +
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
+  remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
+  fatal: Authentication failed for 'https://github.com//first-contributions.git/'
+ Go to [GitHub's tutorial](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account) on generating and configuring an SSH key to your account. + +
+ +## Submit your changes for review + +If you go to your repository on GitHub, you'll see a `Compare & pull request` button. Click on that button. + +create a pull request + +Now submit the pull request. + +submit pull request + +Soon we'll be merging all your changes into the main branch of this project. You will get a notification email once the changes have been merged. + +Congrats! You just completed the standard _fork -> clone -> edit -> pull request_ workflow that you'll often encounter as a contributor! diff --git a/open-source-arcade/index.html b/open-source-arcade/index.html new file mode 100644 index 0000000..44850cc --- /dev/null +++ b/open-source-arcade/index.html @@ -0,0 +1,41 @@ + + + + + + Open Source Arcade + + + + + + + +
+

Hello Contributors!

+ + + + + +
+
+ + + + + diff --git a/open-source-arcade/src/script.js b/open-source-arcade/src/script.js new file mode 100644 index 0000000..daab92b --- /dev/null +++ b/open-source-arcade/src/script.js @@ -0,0 +1,50 @@ +fetch("https://imgiitroorkee.github.io/open-source-arcade/Contributors.md") + .then((response) => response.text()) + .then((data) => { + // Parse the data and create contributor cards + const contributors = data.split("\n").filter((line) => line.trim() !== "") + + const contributorList = document.getElementById("contributorList") + contributors.forEach((contributor) => { + const [name] = contributor.split(",") + + // Fetch a random avatar from the Multiavatar API + fetch("https://robohash.org/" + encodeURIComponent(name + ".png")) + .then((response) => response.blob()) + .then((blob) => { + const avatarURL = URL.createObjectURL(blob) + + const card = document.createElement("div") + card.className = "contributor-card" + + const avatarImg = document.createElement("img") + avatarImg.src = avatarURL + avatarImg.alt = "Avatar" + avatarImg.className = "contributor-avatar" + + const nameSpan = document.createElement("span") + nameSpan.textContent = name + + card.appendChild(avatarImg) + card.appendChild(nameSpan) + + contributorList.appendChild(card) + }) + .catch((error) => console.error("Error fetching avatar:", error)) + }) + }) + .catch((error) => console.error("Error fetching data:", error)) + +function filterContributors() { + const searchInput = document.getElementById("searchInput").value.toLowerCase() + const contributorCards = document.querySelectorAll(".contributor-card") + + contributorCards.forEach((card) => { + const name = card.querySelector("span").textContent.toLowerCase() + if (name.includes(searchInput)) { + card.style.display = "flex" + } else { + card.style.display = "none" + } + }) +} diff --git a/open-source-arcade/src/styles.css b/open-source-arcade/src/styles.css new file mode 100644 index 0000000..bb995c1 --- /dev/null +++ b/open-source-arcade/src/styles.css @@ -0,0 +1,61 @@ +body { + font-family: Arial, sans-serif; + margin: 20px; + background: #141414; +} + +h1 { + text-align: center; + color: #333; +} + +.text-center{ + color: #fff; +} + +.form-control{ + margin: auto; + width: 80%; +} + +.content { + max-width: 800px; + margin: 20px auto; + padding: 20px; + border: 1px solid #ddd; + border-radius: 8px; + background-color: #f9f9f9; +} + +.search-bar { + margin-bottom: 20px; + text-align: center; +} + +.contributor-list { + display: flex; + flex-wrap: wrap; + justify-content: space-evenly; +} + +.contributor-card { + /* border: 1px solid #ddd; */ + border-radius: 8px; + margin: 10px; + padding: 16px; + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + background:#222222; + color: #f9f9f9; + box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); + +} + +.contributor-avatar { + width: 100px; + height: 100px; + border-radius: 50%; + margin-bottom: 10px; +}