Skip to content

Commit 7c83616

Browse files
committed
Updated Code of Conduct and Cookie Policy Page
Signed-off-by: Hemashree M S <hemashree21.msh@gmail.com>
1 parent ac16e57 commit 7c83616

File tree

2 files changed

+181
-148
lines changed

2 files changed

+181
-148
lines changed

src/pages/code-of-conduct/index.tsx

Lines changed: 152 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,178 +1,199 @@
11
import React from 'react';
22
import Layout from '@theme/Layout';
3-
import styles from 'styled-components';
3+
import styled from 'styled-components';
44

5-
/**
6-
* Code of Conduct
7-
**/
8-
9-
const CodeOfConductContainer = styles.div`
10-
max-width: 800px;
11-
margin: 0 auto;
5+
// Styled Components
6+
const CodeOfConductContainer = styled.div`
7+
width: 50%;
8+
display: block;
9+
margin: auto;
1210
padding: 20px;
1311
border-radius: 5px;
1412
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
15-
margin-top: 20px;
16-
margin-bottom: 20px;
1713
font-size: 16px;
1814
line-height: 1.6;
1915
font-family: 'Open Sans', sans-serif;
2016
text-align: justify;
17+
18+
@media (max-width: 760px) {
19+
width: 80%;
20+
}
2121
`;
2222

23-
const Title = styles.h2`
23+
const Title = styled.h2`
2424
margin-bottom: 20px;
2525
font-weight: 700;
2626
text-align: center;
2727
`;
2828

29-
const SubTitle = styles.h3`
29+
const SubTitle = styled.h3`
3030
margin-bottom: 20px;
3131
font-weight: 700;
3232
`;
3333

34-
const StyledUl = styles.ul`
34+
const StyledUl = styled.ul`
3535
margin-bottom: 20px;
3636
`;
3737

38-
const StyledLi = styles.li`
38+
const StyledLi = styled.li`
3939
margin-bottom: 20px;
4040
`;
4141

42-
const StyledOl = styles.ol`
42+
const StyledOl = styled.ol`
4343
margin-bottom: 20px;
4444
`;
4545

46-
const Content = styles.div`
46+
const Content = styled.div`
4747
margin-bottom: 20px;
4848
`;
4949

50-
/**
51-
* Code of Conduct - section
52-
**/
53-
50+
// Reusable Components
5451
const Section = ({ title, children }) => (
5552
<section>
5653
<SubTitle>{title}</SubTitle>
5754
{children}
5855
</section>
5956
);
6057

61-
/**
62-
* Code of Conduct - list item
63-
**/
64-
6558
const ListItem = ({ title, description }) => (
6659
<StyledLi>
6760
<strong>{title}</strong>
6861
<p>{description}</p>
6962
</StyledLi>
7063
);
7164

72-
/**
73-
* Code of Conduct
74-
**/
75-
76-
const Codeofconduct = () => {
77-
return (
78-
<Layout>
79-
<CodeOfConductContainer>
80-
<Title>Code Of Conduct</Title>
81-
<Content>
82-
<p><strong>Last Updated:</strong> 23rd May 2024</p>
83-
84-
<Section title="Our Pledge">
85-
<p>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.</p>
86-
<p>We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.</p>
87-
</Section>
88-
89-
<Section title="Our Standards">
90-
<p>Examples of behavior that contributes to a positive environment for our community include:</p>
91-
<StyledUl>
92-
<StyledLi>Demonstrating empathy and kindness toward other people</StyledLi>
93-
<StyledLi>Being respectful of differing opinions, viewpoints, and experiences</StyledLi>
94-
<StyledLi>Giving and gracefully accepting constructive feedback</StyledLi>
95-
<StyledLi>Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience</StyledLi>
96-
<StyledLi>Focusing on what is best not just for us as individuals, but for the overall community</StyledLi>
97-
</StyledUl>
98-
<p>Examples of unacceptable behavior include:</p>
99-
<StyledUl>
100-
<StyledLi>The use of sexualized language or imagery, and sexual attention or advances of any kind</StyledLi>
101-
<StyledLi>Trolling, insulting or derogatory comments, and personal or political attacks</StyledLi>
102-
<StyledLi>Public or private harassment</StyledLi>
103-
<StyledLi>Publishing others&apos; private information, such as a physical or email address, without their explicit permission</StyledLi>
104-
<StyledLi>Other conduct which could reasonably be considered inappropriate in a professional setting</StyledLi>
105-
</StyledUl>
106-
</Section>
107-
108-
<Section title="Enforcement Responsibilities">
109-
<p>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.</p>
110-
<p>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.</p>
111-
</Section>
112-
113-
<Section title="Scope">
114-
<p>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.</p>
115-
</Section>
116-
117-
<Section title="Enforcement">
118-
<p>Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at Email. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident.</p>
119-
</Section>
120-
121-
<Section title="Enforcement Guidelines">
122-
<p>Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:</p>
123-
<StyledOl>
124-
<ListItem
125-
title="Correction"
126-
description={
127-
<>
128-
<strong>Community Impact:</strong> Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
129-
<br />
130-
<strong>Consequence:</strong> 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.
131-
</>
132-
}
133-
/>
134-
<ListItem
135-
title="Warning"
136-
description={
137-
<>
138-
<strong>Community Impact:</strong> A violation through a single incident or series of actions.
139-
<br />
140-
<strong>Consequence:</strong> 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.
141-
</>
142-
}
143-
/>
144-
<ListItem
145-
title="Temporary Ban"
146-
description={
147-
<>
148-
<strong>Community Impact:</strong> A serious violation of community standards, including sustained inappropriate behavior.
149-
<br />
150-
<strong>Consequence:</strong> 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.
151-
</>
152-
}
153-
/>
154-
<ListItem
155-
title="Permanent Ban"
156-
description={
157-
<>
158-
<strong>Community Impact:</strong> 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.
159-
<br />
160-
<strong>Consequence:</strong> A permanent ban from any sort of public interaction within the community.
161-
</>
162-
}
163-
/>
164-
</StyledOl>
165-
</Section>
166-
167-
<Section title="Attribution">
168-
<p>This Code of Conduct is adapted from the <a href="https://www.contributor-covenant.org/" target="_blank" rel="noopener noreferrer">Contributor Covenant</a>, version 2.0, available at <a href="https://www.contributor-covenant.org/version/2/0/code_of_conduct/" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/version/2/0/code_of_conduct.html</a>.</p>
169-
<p>Community Impact Guidelines were inspired by <a href="https://github.com/mozilla/inclusion" target="_blank" rel="noopener noreferrer">Mozilla&apos;s code of conduct enforcement ladder</a>.</p>
170-
<p>For answers to common questions about this code of conduct, see the FAQ at <a href="https://www.contributor-covenant.org/faq/" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/faq/</a>. Translations are available at <a href="https://www.contributor-covenant.org/translations" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/translations</a>.</p>
171-
</Section>
172-
</Content>
173-
</CodeOfConductContainer>
174-
</Layout>
175-
);
176-
};
177-
178-
export default Codeofconduct;
65+
// Code of Conduct Component
66+
const CodeOfConduct = () => (
67+
<Layout>
68+
<CodeOfConductContainer>
69+
<Title>Code Of Conduct</Title>
70+
<Content>
71+
<LastUpdated />
72+
<OurPledge />
73+
<OurStandards />
74+
<EnforcementResponsibilities />
75+
<Scope />
76+
<Enforcement />
77+
<EnforcementGuidelines />
78+
<Attribution />
79+
</Content>
80+
</CodeOfConductContainer>
81+
</Layout>
82+
);
83+
84+
// Separate Sections as Components
85+
const LastUpdated = () => (
86+
<p><strong>Last Updated:</strong> 23rd May 2024</p>
87+
);
88+
89+
// Separate Sections as Components
90+
const OurPledge = () => (
91+
<Section title="Our Pledge">
92+
<p>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.</p>
93+
<p>We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.</p>
94+
</Section>
95+
);
96+
97+
// Separate Sections as Components
98+
const OurStandards = () => (
99+
<Section title="Our Standards">
100+
<p>Examples of behavior that contributes to a positive environment for our community include:</p>
101+
<StyledUl>
102+
<StyledLi>Demonstrating empathy and kindness toward other people</StyledLi>
103+
<StyledLi>Being respectful of differing opinions, viewpoints, and experiences</StyledLi>
104+
<StyledLi>Giving and gracefully accepting constructive feedback</StyledLi>
105+
<StyledLi>Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience</StyledLi>
106+
<StyledLi>Focusing on what is best not just for us as individuals, but for the overall community</StyledLi>
107+
</StyledUl>
108+
<p>Examples of unacceptable behavior include:</p>
109+
<StyledUl>
110+
<StyledLi>The use of sexualized language or imagery, and sexual attention or advances of any kind</StyledLi>
111+
<StyledLi>Trolling, insulting or derogatory comments, and personal or political attacks</StyledLi>
112+
<StyledLi>Public or private harassment</StyledLi>
113+
<StyledLi>Publishing others' private information, such as a physical or email address, without their explicit permission</StyledLi>
114+
<StyledLi>Other conduct which could reasonably be considered inappropriate in a professional setting</StyledLi>
115+
</StyledUl>
116+
</Section>
117+
);
118+
119+
// Separate Sections as Components
120+
const EnforcementResponsibilities = () => (
121+
<Section title="Enforcement Responsibilities">
122+
<p>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.</p>
123+
<p>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.</p>
124+
</Section>
125+
);
126+
127+
// Separate Sections as Components
128+
const Scope = () => (
129+
<Section title="Scope">
130+
<p>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.</p>
131+
</Section>
132+
);
133+
134+
// Separate Sections as Components
135+
const Enforcement = () => (
136+
<Section title="Enforcement">
137+
<p>Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at Email. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident.</p>
138+
</Section>
139+
);
140+
141+
// Separate Sections as Components
142+
const EnforcementGuidelines = () => (
143+
<Section title="Enforcement Guidelines">
144+
<p>Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:</p>
145+
<StyledOl>
146+
<ListItem
147+
title="Correction"
148+
description={
149+
<>
150+
<strong>Community Impact:</strong> Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
151+
<br />
152+
<strong>Consequence:</strong> 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.
153+
</>
154+
}
155+
/>
156+
<ListItem
157+
title="Warning"
158+
description={
159+
<>
160+
<strong>Community Impact:</strong> A violation through a single incident or series of actions.
161+
<br />
162+
<strong>Consequence:</strong> 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.
163+
</>
164+
}
165+
/>
166+
<ListItem
167+
title="Temporary Ban"
168+
description={
169+
<>
170+
<strong>Community Impact:</strong> A serious violation of community standards, including sustained inappropriate behavior.
171+
<br />
172+
<strong>Consequence:</strong> 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.
173+
</>
174+
}
175+
/>
176+
<ListItem
177+
title="Permanent Ban"
178+
description={
179+
<>
180+
<strong>Community Impact:</strong> 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.
181+
<br />
182+
<strong>Consequence:</strong> A permanent ban from any sort of public interaction within the community.
183+
</>
184+
}
185+
/>
186+
</StyledOl>
187+
</Section>
188+
);
189+
190+
// Separate Sections as Components
191+
const Attribution = () => (
192+
<Section title="Attribution">
193+
<p>This Code of Conduct is adapted from the <a href="https://www.contributor-covenant.org/" target="_blank" rel="noopener noreferrer">Contributor Covenant</a>, version 2.0, available at <a href="https://www.contributor-covenant.org/version/2/0/code_of_conduct/" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/version/2/0/code_of_conduct.html</a>.</p>
194+
<p>Community Impact Guidelines were inspired by <a href="https://github.com/mozilla/inclusion" target="_blank" rel="noopener noreferrer">Mozilla's code of conduct enforcement ladder</a>.</p>
195+
<p>For answers to common questions about this code of conduct, see the FAQ at <a href="https://www.contributor-covenant.org/faq/" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/faq/</a>. Translations are available at <a href="https://www.contributor-covenant.org/translations" target="_blank" rel="noopener noreferrer">https://www.contributor-covenant.org/translations</a>.</p>
196+
</Section>
197+
);
198+
199+
export default CodeOfConduct;

0 commit comments

Comments
 (0)