From b698d60ec33035c3f992553f018564a367667419 Mon Sep 17 00:00:00 2001 From: kartikeyyy Date: Thu, 3 Oct 2024 17:06:57 +0530 Subject: [PATCH 1/6] Create CODE_OF_CONDUCT.md --- CODE_OF_CONDUCT.md | 96 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..49f2237 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,96 @@ +# myntra-clone Project Code of Conduct + +## Welcome + +Welcome to the **myntra-clone** repository! This project is dedicated to helping beginners contribute to open source, especially during gssoc and hacktoberfest. We welcome all pull requests, prioritize genuine contributions, and encourage good first issues. Our community is committed to fostering a respectful, inclusive, and harassment-free environment for all participants, whether they're new to open source or seasoned contributors. Let's work together to create a positive experience for all contributors during gssoc and hacktoberfest 2024. + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in **myntra-clone** a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. + +We pledge to act in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. Everyone is encouraged to contribute and collaborate in a safe and supportive environment, while also learning the value of open-source contributions. + +## Our Standards + +To ensure a positive experience for everyone involved in **myntra-clone**, all members must adhere to the following standards: + +### Positive Behavior: +- **Respect for New Contributors**: Welcome beginners with patience and encouragement as they make their first open-source contributions. +- **Constructive Feedback**: Offer feedback that is aimed at helping others improve and learn, rather than discouraging them. +- **Collaboration**: Be willing to work together and provide assistance to those who are new to Git, GitHub, and open-source development. +- **Inclusivity**: Ensure that discussions, pull requests, and comments are inclusive and make all participants feel welcome, regardless of experience. +- **Recognition**: Acknowledge and celebrate the efforts and contributions of all members, especially newcomers who are participating in gssoc and hacktoberfest for the first time. +- **Respect for gssoc and hacktoberfest Values**: Follow the gssoc and hacktoberfest guidelines, emphasizing genuine contributions and discouraging low-quality or spammy pull requests. + +### Unacceptable Behavior: +- **Harassment**: Any form of harassment, including derogatory comments, trolling, or personal attacks. +- **Discrimination**: Discriminatory remarks or behavior based on personal identity, beliefs, or background. +- **Low-Quality Contributions**: Deliberately making low-quality or spam pull requests to game the gssoc and hacktoberfest system. Contributions should add real value to the project. +- **Disrespectful Behavior**: Insults, inflammatory comments, or dismissive behavior towards other contributors, especially beginners. +- **Privacy Violations**: Sharing others’ private information without their consent. +- **Disruption**: Behavior that undermines the spirit of gssoc and hacktoberfest and disrupts the positive learning environment we strive to create. + +## Project Goals + +The **myntra-clone** project aims to provide an accessible platform where beginners can make meaningful contributions to open source, particularly during gssoc and hacktoberfest. The key goals include: + +- **Welcoming Pull Requests**: We welcome contributions in **Python** and **Java**, focusing on providing genuine value to the repository and encouraging good first issues. +- **Guiding Beginners**: This project helps new contributors learn the basics of Git, GitHub, and open-source collaboration. We are committed to guiding them throughout the gssoc and hacktoberfest experience. +- **Promoting Ethical Participation**: We promote the core values of gssoc and hacktoberfest by prioritizing genuine, well-thought-out contributions and discouraging spammy or low-effort pull requests. + +## Enforcement Responsibilities + +Community leaders and maintainers of **myntra-clone** are responsible for enforcing this Code of Conduct and ensuring that all participants adhere to its principles. Leaders are expected to: + +- Define the standards for acceptable behavior and clearly communicate them to all participants. +- Address any reported violations of the Code of Conduct in a timely and fair manner. +- Take appropriate actions to correct or remove any behaviors that violate the standards, including removal of inappropriate pull requests, comments, or issues. + +Leaders may also take disciplinary actions, including temporary or permanent bans from the project, for individuals who repeatedly violate the Code of Conduct. + +## Scope + +This Code of Conduct applies to all spaces managed by **myntra-clone**, including GitHub repositories, discussions, pull request reviews, and other communication platforms. It also applies when community members represent the project in public spaces, whether online or offline, particularly during gssoc and hacktoberfest events and interactions. + +## Reporting Violations + +In the absence of a designated support email, any behavior that violates this Code of Conduct should be reported directly through the GitHub repository's issues or discussions. Project maintainers will handle all reports with confidentiality and will investigate them promptly and fairly. + +If you witness or experience any unacceptable behavior, do not hesitate to reach out to the project maintainers. + +## Consequences of Unacceptable Behavior + +If a participant is found to have violated this Code of Conduct, the community leaders may take the following actions: + +1. **Correction**: A private discussion with the individual, clarifying the unacceptable behavior and offering guidance on how to improve. +2. **Warning**: A formal warning that outlines the unacceptable behavior and potential consequences for future violations. +3. **Temporary Suspension**: A temporary suspension from participation in the project or specific areas of the project. +4. **Permanent Ban**: Permanent exclusion from the project and all its spaces, including pull requests, issues, and community discussions. + +## Enforcement Guidelines + +Community leaders will follow these enforcement guidelines when determining the appropriate consequences for violations of this Code of Conduct: + +1. **Correction**: + - **Community Impact**: A minor violation that causes minimal disruption. + - **Consequence**: A private conversation to clarify the violation and offer guidance for improving behavior. + +2. **Warning**: + - **Community Impact**: A moderate violation that negatively affects other community members or the goals of gssoc and hacktoberfest. + - **Consequence**: A formal warning that outlines future expectations for behavior. + +3. **Temporary Suspension**: + - **Community Impact**: A significant violation that disrupts the project’s focus on genuine contributions and inclusion. + - **Consequence**: Temporary exclusion from the project with the possibility of reinstatement after a review. + +4. **Permanent Ban**: + - **Community Impact**: A severe or repeated violation that undermines the integrity of the community or the values of gssoc and hacktoberfest. + - **Consequence**: Permanent removal from the project and all community interactions. + +## Building a Positive Community + +At **myntra-clone**, we are committed to creating a community that is welcoming, inclusive, and supportive for all contributors. As part of gssoc and hacktoberfest, we want to ensure that everyone—regardless of their experience level—feels empowered to make valuable contributions to open source. By fostering a respectful and encouraging environment, we can make this project a space for learning, collaboration, and meaningful participation. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available [here](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html) From d18f9e2f0a6102523632cf2f04229b9094f169f8 Mon Sep 17 00:00:00 2001 From: kartikeyyy Date: Thu, 3 Oct 2024 17:16:49 +0530 Subject: [PATCH 2/6] create CONTRIBUTING.md --- CONTRIBUTING.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..f45ab3a --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,63 @@ +# Contributing to Myntra Clone + +Thank you for considering contributing to the Myntra Clone project! Your contributions help improve the project and enhance the community experience. + +## Table of Contents +- [Getting Started](#getting-started) +- [How to Contribute](#how-to-contribute) +- [Reporting Issues](#reporting-issues) +- [Code of Conduct](#code-of-conduct) +- [License](#license) + +## Getting Started + +1. **Fork the Repository**: Click the "Fork" button in the top right corner of the repository to create your own copy of the project. + +2. **Clone Your Fork**: Clone the repository to your local machine using the following command: +```bash + git clone https://github.com/your-username/myntra-clone.git +``` + +Replace your-username with your GitHub username. + +Create a Feature Branch: Navigate to the project directory and create a new branch for your feature or bug fix: + +```bash +cd myntra-clone +git checkout -b feature/your-feature-name +``` + +## How to Contribute + +* Make Your Changes: Implement your feature or fix a bug. Please ensure that your code adheres to the project's coding style. + +* Test Your Changes: Run the application and test your changes thoroughly to ensure they work as expected. + +* Commit Your Changes: Commit your changes with a descriptive message: + +```bash +git add . +git commit -m "Add a brief description of your changes" +``` + +* Push to Your Fork: Push your changes back to your fork: + +```bash +git push origin feature/your-feature-name +``` + +* Open a Pull Request: Go to the original repository, and you will see an option to create a pull request. Fill out the pull request template and submit it for review. + +## Reporting Issues + +If you encounter any issues or have suggestions for improvements, please open an issue in the GitHub repository. Provide as much detail as possible to help us understand the problem. + +## Code of Conduct + +Please adhere to the project's Code of Conduct to ensure a welcoming and inclusive environment for all contributors. + +## License + +By contributing to this project, you agree that your contributions will be licensed under the project's LICENSE file. + +Thank you for contributing to Myntra Clone! \ No newline at end of file From ec4a706cd38c98bb73e9c88e4da88db01d82e0ef Mon Sep 17 00:00:00 2001 From: Nayan Mahera Date: Fri, 4 Oct 2024 11:49:09 +0530 Subject: [PATCH 3/6] make navbar responsive and make links work --- client/src/App.css | 238 ++++++++++++++++++++----------- client/src/components/Header.jsx | 148 +++++++++++++------ client/src/components/Search.jsx | 29 ++-- client/src/components/User.jsx | 47 +++--- client/src/main.jsx | 55 ++++--- client/src/pages/Beauty.jsx | 7 + client/src/pages/HomeAndLive.jsx | 7 + client/src/pages/Kids.jsx | 7 + client/src/pages/Men.jsx | 7 + client/src/pages/Studio.jsx | 7 + client/src/pages/Women.jsx | 7 + 11 files changed, 386 insertions(+), 173 deletions(-) create mode 100644 client/src/pages/Beauty.jsx create mode 100644 client/src/pages/HomeAndLive.jsx create mode 100644 client/src/pages/Kids.jsx create mode 100644 client/src/pages/Men.jsx create mode 100644 client/src/pages/Studio.jsx create mode 100644 client/src/pages/Women.jsx diff --git a/client/src/App.css b/client/src/App.css index 2e35b51..592308a 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -1,41 +1,60 @@ -.logo -{ +/* Common Styles */ +.logo { width: 40px; } -.user-li -{ - display:flex; - flex-direction:column; - justify-content:center; - align-items:center; + +.user-li { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; margin-right: 22px; text-decoration: none; color: black; } -.nav-item -{ + +.nav-item { margin-right: 10px; + display: flex; + align-items: center; } -.search -{ + +.search { display: flex; - /* border: 1px solid rgb(173, 173, 173); */ height: 30px; border-radius: 3px; align-items: center; background-color: #eaeaea; } -.search input -{ + +.navbar-nav { + display: flex; + margin-top: 0.5vw; + align-items: flex-end; +} + +.user-icon { + display: flex; + justify-content: center; + align-items: center; + list-style-type: none; +} + +.not-navbar-nav { + display: flex; + align-items: center; +} + +.search input { background-color: #eaeaea; border-radius: 3px; - width: 30rem; + width: 100%; outline: none; border: none; } -/* home */ -.items -{ + +/* Home Item Styles */ +.items { margin: auto; display: flex; padding: 1rem; @@ -45,41 +64,37 @@ justify-content: center; } -/* Item css */ -.item -{ +.item { display: flex; flex-direction: column; width: 13rem; - margin: .5rem; + margin: 0.5rem; } -.img -{ + +.img { width: 12rem; height: 16rem; -} -.item-image -{ - /* width: 12rem; */ object-fit: cover; } -.wishlist-bag-item -{ + +/* Wishlist & Bag Hover */ +.wishlist-bag-item { margin-right: 1rem; } -.wishlist-bag-item:hover -{ + +.wishlist-bag-item:hover { transform: scale(1.5); transition: all 100ms; } -.wishlist-bag-item:active -{ + +.wishlist-bag-item:active { transform: scale(1); transition: all 100ms; color: red; } -.rating -{ + +/* Rating Overlay */ +.rating { background-color: rgba(255, 255, 255, 0.625); bottom: 2rem; left: 1rem; @@ -87,113 +102,170 @@ width: 6rem; border-radius: 2px; } -.product-brand -{ + +/* Product Brand Styles */ +.product-brand { padding: 0px 15px; height: 100px; width: 12rem; - /* box-shadow: 2px 2px 0px 0px grey; */ + transition: box-shadow 0.2s; } -.product-brand:hover -{ + +.product-brand:hover { background-color: rgb(250, 250, 250); box-shadow: 2px 2px 16px -10px grey; } -.brand -{ + +.brand { font-size: 16px; font-weight: 400; - margin: 10px 0px 0px 0px; + margin: 10px 0 0; } -.product -{ + +.product { font-size: 14px; font-weight: 200; - margin: 1px 0px 0px 0px; + margin: 1px 0; } -.price -{ + +.price { display: flex; align-items: center; - margin: 5px 0px 0px 0px; justify-content: space-between; width: 11rem; + margin: 5px 0 0; } -.price h4 -{ + +.price h4 { font-size: 14px; font-weight: 400; display: flex; } -.price h3 -{ + +.price h3 { font-size: 12px; font-weight: 200; text-decoration: line-through; } -.price h2 -{ + +.price h2 { color: red; font-size: 12px; font-weight: 200; } -/* bag */ -.bag -{ +/* Bag Styles */ +.bag { width: 915px; margin: 3rem auto; padding: 5px; } -.itemcard -{ + +.itemcard { width: 31.4rem; display: flex; } -.bagItemImg -{ + +.bagItemImg { width: 6rem; } -.bagItemDetails -{ + +.bagItemDetails { width: 23rem; - display:flex; - flex-direction:column; - justify-content:center; + display: flex; + flex-direction: column; + justify-content: center; } -/* price details css */ -.price-details -{ - /* position: relative; */ - /* float: right; */ +/* Price Details */ +.price-details { display: flex; - /* align-items: center; */ justify-content: center; flex-direction: column; width: 19rem; margin: 20px; - margin-left: .25rem; + margin-left: 0.25rem; padding: 10px; } -.price-details h4 -{ + +.price-details h4 { font-size: 14px; font-weight: 300; - height: 15px; margin-bottom: 15px; } -.price-details h3 -{ + +.price-details h3 { color: gray; font-size: 10px; font-weight: 300; } -.price-details button -{ + +.price-details button { color: white; background-color: rgb(255, 63, 108); font-size: 14px; border: none; font-weight: 300; +} + +/* Search Container */ +.search-container { + width: 50%; + margin: 0 auto; + padding: 20px; +} + +.search-icon { + margin-right: 20px; +} + +.search-collapse { + padding: 8px; +} + +/* Mobile Styles */ +.search-container-mobile { + width: 90%; + padding: 10px; +} + +.user-icon-mobile { + display: flex; + justify-content: space-evenly; + align-items: center; + list-style-type: none; + margin: 10px 0; +} + +/* Responsive behavior */ +@media (max-width: 768px) { + .search-container { + width: 100%; + padding: 10px; + } + + .search { + padding: 8px; + } + + .search-icon { + margin-right: 10px; + } + + .search-input { + font-size: 0.875rem; + } + + .user-li { + margin-right: 10px; + } +} + +.container-fluid { + display: flex; + +} + +.search-container-mobile { + width: 25%; } \ No newline at end of file diff --git a/client/src/components/Header.jsx b/client/src/components/Header.jsx index 5b9dfe2..cd8db27 100644 --- a/client/src/components/Header.jsx +++ b/client/src/components/Header.jsx @@ -1,48 +1,110 @@ import { Link } from "react-router-dom"; import Search from "./Search"; import User from "./User"; - +import { useEffect, useState } from "react"; const Header = () => { - return ( - <> - - - ) -} - -export default Header \ No newline at end of file + const [isNavCollapsed, setIsNavCollapsed] = useState(true); + const [isMobile, setIsMobile] = useState(false); + + useEffect(() => { + const handleResize = () => { + setIsMobile(window.innerWidth <= 992); + }; + + // Initial check + handleResize(); + + // Add event listener + window.addEventListener("resize", handleResize); + + // Cleanup + return () => { + window.removeEventListener("resize", handleResize); + }; + }, []); + + const handleNavCollapse = () => setIsNavCollapsed(!isNavCollapsed); + + return ( + + ); +}; + +export default Header; diff --git a/client/src/components/Search.jsx b/client/src/components/Search.jsx index f39954a..649f57e 100644 --- a/client/src/components/Search.jsx +++ b/client/src/components/Search.jsx @@ -1,12 +1,23 @@ import { GoSearch } from "react-icons/go"; -const Search = () => { - return ( -
- - -
- ) -} +const Search = ({ isMobile }) => { + return ( +
+
+ + +
+
+ ); +}; -export default Search; \ No newline at end of file +export default Search; diff --git a/client/src/components/User.jsx b/client/src/components/User.jsx index ba27cf6..1d577a4 100644 --- a/client/src/components/User.jsx +++ b/client/src/components/User.jsx @@ -3,23 +3,36 @@ import { IoIosHeartEmpty } from "react-icons/io"; import { BsHandbag } from "react-icons/bs"; import { Link } from "react-router-dom"; import { useSelector } from "react-redux"; -const User = () => { - const bagItems = useSelector(store => store.bagItems) +const User = ({ isMobile }) => { + const bagItems = useSelector((store) => store.bagItems); - return ( -
    -
  • User
  • -
  • Wishlist
  • -
  • - Bag - - {bagItems.length} - unread messages - -
  • -
- ) -} + return ( +
    +
  • + + + User + +
  • +
  • + + + Wishlist + +
  • +
  • + + + Bag + + {bagItems.length} + unread messages + + +
  • +
+ ); +}; -export default User; \ No newline at end of file +export default User; diff --git a/client/src/main.jsx b/client/src/main.jsx index bc3859e..f328e6f 100644 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -1,26 +1,39 @@ -import React from 'react' -import ReactDOM from 'react-dom/client' -import { RouterProvider, createBrowserRouter } from 'react-router-dom' -import App from './Routes/App.jsx' -import "bootstrap/dist/css/bootstrap.min.css" -import Bag from './Routes/Bag.jsx' -import Home from './Routes/Home.jsx' -import { Provider } from 'react-redux' -import myntraStore from './store/index.js' +import React from "react"; +import ReactDOM from "react-dom/client"; +import { RouterProvider, createBrowserRouter } from "react-router-dom"; +import App from "./Routes/App.jsx"; +import "bootstrap/dist/css/bootstrap.min.css"; +import Bag from "./Routes/Bag.jsx"; +import Home from "./Routes/Home.jsx"; +import { Provider } from "react-redux"; +import myntraStore from "./store/index.js"; +import Beauty from "./pages/Beauty.jsx"; +import Men from "./pages/Men.jsx"; +import Women from "./pages/Women.jsx"; +import Kids from "./pages/Kids.jsx"; +import HomeAndLive from "./pages/HomeAndLive.jsx"; +import Studio from "./pages/Studio.jsx"; +const router = createBrowserRouter([ + { + path: "/", + element: , + children: [ + { path: "/", element: }, + { path: "/bag", element: }, + { path: "/beauty", element: }, + { path: "/men", element: }, + { path: "/women", element: }, + { path: "/kids", element: }, + { path: "/homeandlive", element: }, + { path: "/studio", element: }, + ], + }, +]); -const router = createBrowserRouter([{ - path: "/", - element: , - children: [ - { path: "/", element: }, - { path: "/bag", element: } - ] -}]) - -ReactDOM.createRoot(document.getElementById('root')).render( +ReactDOM.createRoot(document.getElementById("root")).render( - , -) + +); diff --git a/client/src/pages/Beauty.jsx b/client/src/pages/Beauty.jsx new file mode 100644 index 0000000..78bf9e7 --- /dev/null +++ b/client/src/pages/Beauty.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const Beauty = () => { + return
This is Beauty Page
; +}; + +export default Beauty; diff --git a/client/src/pages/HomeAndLive.jsx b/client/src/pages/HomeAndLive.jsx new file mode 100644 index 0000000..07ad6fc --- /dev/null +++ b/client/src/pages/HomeAndLive.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const HomeAndLive = () => { + return
this is home and live page
; +}; + +export default HomeAndLive; diff --git a/client/src/pages/Kids.jsx b/client/src/pages/Kids.jsx new file mode 100644 index 0000000..de1b7a9 --- /dev/null +++ b/client/src/pages/Kids.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const Kids = () => { + return
this is kids page
; +}; + +export default Kids; diff --git a/client/src/pages/Men.jsx b/client/src/pages/Men.jsx new file mode 100644 index 0000000..dda1a2b --- /dev/null +++ b/client/src/pages/Men.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const Men = () => { + return
This is Men Page
; +}; + +export default Men; diff --git a/client/src/pages/Studio.jsx b/client/src/pages/Studio.jsx new file mode 100644 index 0000000..048d7fa --- /dev/null +++ b/client/src/pages/Studio.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const Studio = () => { + return
this is studio page
; +}; + +export default Studio; diff --git a/client/src/pages/Women.jsx b/client/src/pages/Women.jsx new file mode 100644 index 0000000..e672dfb --- /dev/null +++ b/client/src/pages/Women.jsx @@ -0,0 +1,7 @@ +import React from "react"; + +const Women = () => { + return
this is women page
; +}; + +export default Women; From 73168c3ddcc3d2a552bf79abbca57f10ef9519ae Mon Sep 17 00:00:00 2001 From: Nayan Mahera Date: Mon, 7 Oct 2024 11:40:59 +0530 Subject: [PATCH 4/6] Update App.css --- client/src/App.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/client/src/App.css b/client/src/App.css index 592308a..5609205 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -30,7 +30,16 @@ .navbar-nav { display: flex; margin-top: 0.5vw; - align-items: flex-end; + align-items: center; + text-align: center; + +} + + + +.navbar-nav li:hover { + + background: #000; } .user-icon { From 8fa00e3cde561a43136d50a4ed793b44bff8f4ab Mon Sep 17 00:00:00 2001 From: Nayan Mahera Date: Mon, 7 Oct 2024 12:04:41 +0530 Subject: [PATCH 5/6] resposive navbar added --- client/src/App.css | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/client/src/App.css b/client/src/App.css index 5609205..1743000 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -33,13 +33,25 @@ align-items: center; text-align: center; + +} + +.navbar-nav li { + border-bottom: 2px solid rgb(208, 191, 191); + justify-content: center; + display: flex; + width: 70%; } - .navbar-nav li:hover { + border-bottom: 2px solid black; + +} + +.navbar-nav li:not(:hover) { + border-bottom: 2px solid rgb(211, 193, 193); - background: #000; } .user-icon { From f78ad5b35334585c14b0c63ad8ba524fbfc34bad Mon Sep 17 00:00:00 2001 From: Anish Singh Chandel <123861376+ChandelAnish@users.noreply.github.com> Date: Sat, 12 Oct 2024 16:19:52 +0530 Subject: [PATCH 6/6] Delete CODE_OF_CONDUCT.md --- CODE_OF_CONDUCT.md | 96 ---------------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 49f2237..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,96 +0,0 @@ -# myntra-clone Project Code of Conduct - -## Welcome - -Welcome to the **myntra-clone** repository! This project is dedicated to helping beginners contribute to open source, especially during gssoc and hacktoberfest. We welcome all pull requests, prioritize genuine contributions, and encourage good first issues. Our community is committed to fostering a respectful, inclusive, and harassment-free environment for all participants, whether they're new to open source or seasoned contributors. Let's work together to create a positive experience for all contributors during gssoc and hacktoberfest 2024. - -## Our Pledge - -We as members, contributors, and leaders pledge to make participation in **myntra-clone** a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. - -We pledge to act in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. Everyone is encouraged to contribute and collaborate in a safe and supportive environment, while also learning the value of open-source contributions. - -## Our Standards - -To ensure a positive experience for everyone involved in **myntra-clone**, all members must adhere to the following standards: - -### Positive Behavior: -- **Respect for New Contributors**: Welcome beginners with patience and encouragement as they make their first open-source contributions. -- **Constructive Feedback**: Offer feedback that is aimed at helping others improve and learn, rather than discouraging them. -- **Collaboration**: Be willing to work together and provide assistance to those who are new to Git, GitHub, and open-source development. -- **Inclusivity**: Ensure that discussions, pull requests, and comments are inclusive and make all participants feel welcome, regardless of experience. -- **Recognition**: Acknowledge and celebrate the efforts and contributions of all members, especially newcomers who are participating in gssoc and hacktoberfest for the first time. -- **Respect for gssoc and hacktoberfest Values**: Follow the gssoc and hacktoberfest guidelines, emphasizing genuine contributions and discouraging low-quality or spammy pull requests. - -### Unacceptable Behavior: -- **Harassment**: Any form of harassment, including derogatory comments, trolling, or personal attacks. -- **Discrimination**: Discriminatory remarks or behavior based on personal identity, beliefs, or background. -- **Low-Quality Contributions**: Deliberately making low-quality or spam pull requests to game the gssoc and hacktoberfest system. Contributions should add real value to the project. -- **Disrespectful Behavior**: Insults, inflammatory comments, or dismissive behavior towards other contributors, especially beginners. -- **Privacy Violations**: Sharing others’ private information without their consent. -- **Disruption**: Behavior that undermines the spirit of gssoc and hacktoberfest and disrupts the positive learning environment we strive to create. - -## Project Goals - -The **myntra-clone** project aims to provide an accessible platform where beginners can make meaningful contributions to open source, particularly during gssoc and hacktoberfest. The key goals include: - -- **Welcoming Pull Requests**: We welcome contributions in **Python** and **Java**, focusing on providing genuine value to the repository and encouraging good first issues. -- **Guiding Beginners**: This project helps new contributors learn the basics of Git, GitHub, and open-source collaboration. We are committed to guiding them throughout the gssoc and hacktoberfest experience. -- **Promoting Ethical Participation**: We promote the core values of gssoc and hacktoberfest by prioritizing genuine, well-thought-out contributions and discouraging spammy or low-effort pull requests. - -## Enforcement Responsibilities - -Community leaders and maintainers of **myntra-clone** are responsible for enforcing this Code of Conduct and ensuring that all participants adhere to its principles. Leaders are expected to: - -- Define the standards for acceptable behavior and clearly communicate them to all participants. -- Address any reported violations of the Code of Conduct in a timely and fair manner. -- Take appropriate actions to correct or remove any behaviors that violate the standards, including removal of inappropriate pull requests, comments, or issues. - -Leaders may also take disciplinary actions, including temporary or permanent bans from the project, for individuals who repeatedly violate the Code of Conduct. - -## Scope - -This Code of Conduct applies to all spaces managed by **myntra-clone**, including GitHub repositories, discussions, pull request reviews, and other communication platforms. It also applies when community members represent the project in public spaces, whether online or offline, particularly during gssoc and hacktoberfest events and interactions. - -## Reporting Violations - -In the absence of a designated support email, any behavior that violates this Code of Conduct should be reported directly through the GitHub repository's issues or discussions. Project maintainers will handle all reports with confidentiality and will investigate them promptly and fairly. - -If you witness or experience any unacceptable behavior, do not hesitate to reach out to the project maintainers. - -## Consequences of Unacceptable Behavior - -If a participant is found to have violated this Code of Conduct, the community leaders may take the following actions: - -1. **Correction**: A private discussion with the individual, clarifying the unacceptable behavior and offering guidance on how to improve. -2. **Warning**: A formal warning that outlines the unacceptable behavior and potential consequences for future violations. -3. **Temporary Suspension**: A temporary suspension from participation in the project or specific areas of the project. -4. **Permanent Ban**: Permanent exclusion from the project and all its spaces, including pull requests, issues, and community discussions. - -## Enforcement Guidelines - -Community leaders will follow these enforcement guidelines when determining the appropriate consequences for violations of this Code of Conduct: - -1. **Correction**: - - **Community Impact**: A minor violation that causes minimal disruption. - - **Consequence**: A private conversation to clarify the violation and offer guidance for improving behavior. - -2. **Warning**: - - **Community Impact**: A moderate violation that negatively affects other community members or the goals of gssoc and hacktoberfest. - - **Consequence**: A formal warning that outlines future expectations for behavior. - -3. **Temporary Suspension**: - - **Community Impact**: A significant violation that disrupts the project’s focus on genuine contributions and inclusion. - - **Consequence**: Temporary exclusion from the project with the possibility of reinstatement after a review. - -4. **Permanent Ban**: - - **Community Impact**: A severe or repeated violation that undermines the integrity of the community or the values of gssoc and hacktoberfest. - - **Consequence**: Permanent removal from the project and all community interactions. - -## Building a Positive Community - -At **myntra-clone**, we are committed to creating a community that is welcoming, inclusive, and supportive for all contributors. As part of gssoc and hacktoberfest, we want to ensure that everyone—regardless of their experience level—feels empowered to make valuable contributions to open source. By fostering a respectful and encouraging environment, we can make this project a space for learning, collaboration, and meaningful participation. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available [here](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html)