Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/VinayLodhi1712/PlayCafe int…
Browse files Browse the repository at this point in the history
…o alertmessage
  • Loading branch information
VinayLodhi1712 committed Oct 22, 2024
2 parents 0c7608a + 81cc864 commit fbcdbb5
Show file tree
Hide file tree
Showing 5 changed files with 273 additions and 44 deletions.
154 changes: 123 additions & 31 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,145 @@
<div align="center">
# ✨Contributor Covenant Code of Conduct✨

# Code of Conduct
---

</div>
## 🌟Our Pledge
---
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible 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 Pledge
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
---
## 🚦Our Standards

## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:

Examples of behavior that contributes to creating a positive environment include:
* 💖Demonstrating empathy and kindness toward other people
* 🤝Being respectful of differing opinions, viewpoints, and experiences
* 📝Giving and gracefully accepting constructive feedback
* 🌱Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* 🎯Focusing on what is best not just for us as individuals, but for the
overall community

- 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 include:

Examples of unacceptable behavior by participants include:
* 🚫The use of sexualized language or imagery, and sexual attention or
advances of any kind
* 🛑Trolling, insulting or derogatory comments, and personal or political attacks
* ⚠️Public or private harassment
* 🔒Publishing others' private information, such as a physical or email
address, without their explicit permission
* ❌Other conduct which could reasonably be considered inappropriate in a
professional setting

- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting or 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
## 👨‍⚖️Enforcement 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.
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that do not align with this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project.
Community leaders 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, and will communicate reasons for moderation
decisions when appropriate.

## Scope
---
## 🌐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 email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement
---
## 📋Pull Request Guidelines

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project owner. All complaints will be reviewed and investigated promptly and fairly. All project team members are obligated to respect the privacy and security of the reporter of any incident.
Contributions, including pull requests, must align with this Code of Conduct.
All contributors are expected to submit work that fosters a positive and inclusive community.
Inappropriate behavior, language, or content in pull requests may result in the rejection of
the contribution and further enforcement actions as outlined in the guidelines.

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.
---
## 🛡️Enforcement

You can also tag the admin, if you find anything voilating the Code of Conduct.
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
.
All complaints will be reviewed and investigated promptly and fairly.

## Attribution
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/version/2/1/code_of_conduct/), version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
---
## 📖Enforcement Guidelines

Community Impact Guidelines were inspired by Mozilla's code of conduct enforcement ladder.
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
### 1. ✏️Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. ⚠️Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. ⏳Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. 🚫Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

---
## 📜Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
36 changes: 25 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
<sub><b>Vishnu Prasad Korada</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Sumanbhadra">
<img src="https://avatars.githubusercontent.com/u/93245252?v=4" width="100;" alt="Sumanbhadra"/>
<br />
<sub><b>Suman Bhadra</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/sajalbatra">
<img src="https://avatars.githubusercontent.com/u/125984550?v=4" width="100;" alt="sajalbatra"/>
Expand All @@ -316,15 +323,15 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
<sub><b>PavanTeja2005</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/AbhijitMotekar99">
<img src="https://avatars.githubusercontent.com/u/109235675?v=4" width="100;" alt="AbhijitMotekar99"/>
<br />
<sub><b>Abhijit Motekar</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Navneetdadhich">
<img src="https://avatars.githubusercontent.com/u/156535853?v=4" width="100;" alt="Navneetdadhich"/>
Expand Down Expand Up @@ -360,15 +367,15 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
<sub><b>t rahul prabhu</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Aditya90456">
<img src="https://avatars.githubusercontent.com/u/153073510?v=4" width="100;" alt="Aditya90456"/>
<br />
<sub><b>Aditya Bakshi</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/tanishirai">
<img src="https://avatars.githubusercontent.com/u/178164785?v=4" width="100;" alt="tanishirai"/>
Expand Down Expand Up @@ -404,15 +411,15 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
<sub><b>MANI </b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/Ayush215mb">
<img src="https://avatars.githubusercontent.com/u/154300084?v=4" width="100;" alt="Ayush215mb"/>
<br />
<sub><b>Ayush Yadav</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/smog-root">
<img src="https://avatars.githubusercontent.com/u/181578777?v=4" width="100;" alt="smog-root"/>
Expand Down Expand Up @@ -449,14 +456,19 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
</a>
</td>
<td align="center">
<a href="https://github.com/Sapna127">
<img src="https://avatars.githubusercontent.com/u/91309280?v=4" width="100;" alt="Sapna127"/>
<a href="https://github.com/Mohitranag18">
<img src="https://avatars.githubusercontent.com/u/152625405?v=4" width="100;" alt="Mohitranag18"/>
<br />
<sub><b>Sapna Kul</b></sub>
<sub><b>Mohit Rana </b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Nikhil0-3">
<img src="https://avatars.githubusercontent.com/u/149102391?v=4" width="100;" alt="Nikhil0-3"/>
<br />
<sub><b>Nikhil More</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/MutiatBash">
<img src="https://avatars.githubusercontent.com/u/108807732?v=4" width="100;" alt="MutiatBash"/>
Expand Down Expand Up @@ -485,6 +497,8 @@ We extend our heartfelt gratitude to all the amazing contributors who have made
<sub><b>Dev Mishra</b></sub>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/chikatlarakesh">
<img src="https://avatars.githubusercontent.com/u/178009894?v=4" width="100;" alt="chikatlarakesh"/>
Expand Down
116 changes: 116 additions & 0 deletions frontend/src/components/Pages/HelpAndSupport.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
import React, { useState } from 'react';
import { MdKeyboardArrowDown } from 'react-icons/md';
import { IoMdCall, IoMdMail } from 'react-icons/io';

export default function HelpAndSupport() {
const FAqs = [
{
question: 'How to create an account?',
answer:
"To create an account, click on the 'Sign Up' button on the top right corner of the page. Fill in your details and click on 'Create Account'.",
},
{
question: 'How to reset password?',
answer:
"To reset your password, click on 'Forgot Password' on the login page. Enter your email address and follow the instructions sent to your email.",
},
{
question: 'What is Sip & Play?',
answer:
"Sip & Play is a board game cafe in Park Slope, Brooklyn. It's a place where you can come with friends and family to play board games, enjoy coffee, boba, sandwiches, and snacks.",
},
{
question: 'How does it work?',
answer:
"You can come in with your friends and family to play any board game from our library of 300+ games. There's no cover charge, just pay for your food and drinks.",
},
{
question: 'What kind of games do you have?',
answer:
'We have a wide variety of board games, including classics like Monopoly and Scrabble, as well as newer and more unique games.',
},
{
question: 'Can I bring my own food and drinks?',
answer:
'No, we do not allow outside food or drinks. We have a full menu of food and drinks available for purchase.',
},
{
question: 'Is there parking available?',
answer:
' There is limited street parking available near the cafe. You may also want to consider using public transportation.',
},
{
question: 'Is there a cover charge?',
answer:
'No, there is no cover charge. Just pay for your food and drinks.',
},
];

const [activeFAQ, setActiveFAQ] = useState(null);

const handleFAQClick = (index) => {
if (activeFAQ === index) {
setActiveFAQ(null);
} else {
setActiveFAQ(index);
}
};

return (
<>
<section className="w-full pt-10 md:pt-20 lg:pt-28">
<div className="container mx-auto space-y-10 xl:space-y-16">
<div className="flex flex-col items-center space-y-4 text-center">
<div className="space-y-2">
<h1 className="text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl lg:text-6xl">
Lost? Let's find your way.
</h1>
<p className="mx-auto max-w-[700px] text-muted-foreground md:text-xl">
Explore our FAQs, tutorials, and user guides to learn how to
make the most of our platform. If you can't find the answer
you're looking for, don't hesitate to contact our friendly
support team. We're always happy to help.
</p>
</div>
</div>
</div>
</section>

{/* FAQ section */}

<section className="pb-10">
<h1 className="my-4 text-3xl font-bold tracking-tighter text-center">
{' '}
Frequenty Asked Questions
</h1>
{FAqs.map((faq, index) => (
<div
key={index}
className="container mx-auto space-y-4 md:space-y-6 lg:space-y-8 mb-3"
>
<div className="flex flex-col items-center space-y-2 sm:w-full md:w-3/4 m-auto">
<div
className="flex items-center justify-between w-full rounded-lg pr-4 sm:text-lg md:text-xl lg:text-2xl bg-[#FDF3C7]"
onClick={() => {
handleFAQClick(index);
}}
>
<h1 className="font-bold tracking-tighter p-3">
{faq.question}
</h1>
<MdKeyboardArrowDown
className={`m1 ease-in-out duration-300 ${activeFAQ == index ? `rotate-180 ` : ``}`}
/>
</div>
<p
className={` mx-auto text-muted-foreground md:text-lg w-full p-2 ${activeFAQ == index ? `block` : `hidden`} `}
>
{faq.answer}
</p>
</div>
</div>
))}
</section>
</>
);
}
Loading

0 comments on commit fbcdbb5

Please sign in to comment.