From 827773ee8f5ce713490e9ff1e4a9dd7a052bf181 Mon Sep 17 00:00:00 2001 From: Hack2Health Date: Thu, 23 May 2024 23:07:51 +0530 Subject: [PATCH 1/8] Added Code of Conduct and Cookie Policy Page Signed-off-by: Hemashree M S --- docusaurus.config.js | 4 +- src/pages/code-of-conduct/index.tsx | 114 ++++++++++++++++++++++++++++ src/pages/cookie-policy/index.tsx | 93 +++++++++++++++++++++++ 3 files changed, 209 insertions(+), 2 deletions(-) create mode 100644 src/pages/code-of-conduct/index.tsx create mode 100644 src/pages/cookie-policy/index.tsx diff --git a/docusaurus.config.js b/docusaurus.config.js index 8438b8eb7..9ab4886d2 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -304,11 +304,11 @@ const config = { }, { label: "Code of Conduct", - to: "#", + to: "/code-of-conduct", }, { label: "Cookie Policy", - to: "#", + to: "/cookie-policy", }, ], }, diff --git a/src/pages/code-of-conduct/index.tsx b/src/pages/code-of-conduct/index.tsx new file mode 100644 index 000000000..030828024 --- /dev/null +++ b/src/pages/code-of-conduct/index.tsx @@ -0,0 +1,114 @@ +import React from 'react'; +import Layout from "@theme/Layout"; +import styles from "styled-components"; + +const CodeOfConduct = styles.div` + max-width: 800px; + margin: 0 auto; + padding: 20px; + border-radius: 5px; + box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); + margin-top: 20px; + margin-bottom: 20px; + font-size: 16px; + line-height: 1.6; + font-family: "Open Sans", sans-serif; + text-align: justify; +`; + +const Title = styles.h2` + margin-bottom: 20px; + font-weight: 700; + text-align: center; +`; + +const Content = styles.p` + margin-bottom: 20px; +`; + +const SubTitle = styles.h3` + margin-bottom: 20px; + font-weight: 700; +`; + +const StyledUl = styles.ul` + margin-bottom: 20px; +`; + +const StyledLi = styles.li` + margin-bottom: 20px; +`; + +const StyledOl = styles.ol` + margin-bottom: 20px; +`; + + +const Codeofconduct = () => { + return ( + + + Code Of Conduct + + Last Updated: 23rd May 2024 +

+ 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.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. +

Our Standards + Examples of behavior that contributes to a positive environment for our community 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 +
+ Examples of unacceptable behavior 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 +
+ Enforcement Responsibilities + 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.

+ 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 + 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 + 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.

+ Enforcement Guidelines + Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

+ + 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.

+ 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.

+ 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.

+ 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, 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.

+ 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. +
+
+
+ ) +} + +export default Codeofconduct \ No newline at end of file diff --git a/src/pages/cookie-policy/index.tsx b/src/pages/cookie-policy/index.tsx new file mode 100644 index 000000000..c6cc9be7e --- /dev/null +++ b/src/pages/cookie-policy/index.tsx @@ -0,0 +1,93 @@ +import React from 'react'; +import Layout from "@theme/Layout"; +import styles from "styled-components"; + +const CookiePolicy = styles.div` + max-width: 800px; + margin: 0 auto; + padding: 20px; + border-radius: 5px; + box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); + margin-top: 20px; + margin-bottom: 20px; + font-size: 16px; + line-height: 1.6; + font-family: "Open Sans", sans-serif; + text-align: justify; +`; + +const Title = styles.h2` + margin-bottom: 20px; + font-weight: 700; + text-align: center; +`; + +const Content = styles.p` + margin-bottom: 20px; +`; + +const SubTitle = styles.h3` + margin-bottom: 20px; + font-weight: 700; +`; + +const StyledUl = styles.ul` + margin-bottom: 20px; +`; + +const StyledLi = styles.li` + margin-bottom: 20px; +`; + +const StyledOl = styles.ol` + margin-bottom: 20px; +`; + + +const Cookiepolicy = () => { + return ( + + + Cookie Policy + + Last Updated: 23rd May 2024 +

+ Our Mission + Welcome to CodeHarborHub. Our mission is to provide accessible and comprehensive educational resources to learners of all levels. This Cookie Policy explains how we use cookies on our website.

+ What Are Cookies? + Cookies are small text files stored on your device when you visit a website. They help the site to remember your preferences and activities over time.

+ How We Use Cookies + We use cookies to:

+ + Enhance your user experience + Analyze our website traffic + Provide personalized content and advertisements +
+ Types of Cookies We Use
+ + Essential Cookies + These cookies are necessary for our website to function properly and cannot be switched off in our systems.

+ Performance Cookies + These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.

+ Functionality Cookies + These cookies enable the website to provide enhanced functionality and personalization based on your interactions.

+ Targeting/Advertising Cookies + These cookies are used to deliver ads more relevant to you and your interests. They may be set by us or by third-party providers.

+
+ Managing Cookies + You can manage or disable cookies through your browser settings. For more information on how to do this, visit your browser’s help section.

+ Third-Party Cookies + We may use third-party cookies for various purposes such as analytics and advertising. These cookies are governed by the privacy policies of the respective third parties.

+ Cookie Policy Updates + We may update this Cookie Policy from time to time. We will notify you of any significant changes by posting the new policy on our website and updating the date at the top of this page.

+ Contact Us + If you have any questions or concerns about our Cookie Policy, please contact us at: + {" "}ajaydhangar49@gmail.com. +
+
+
+ ) +} + +export default Cookiepolicy \ No newline at end of file From 482e4623983f737cdfb153e44b74498fd8bc3b62 Mon Sep 17 00:00:00 2001 From: Hack2Health Date: Thu, 23 May 2024 23:11:32 +0530 Subject: [PATCH 2/8] Updated Code of Conduct and Cookie Policy Page Signed-off-by: Hemashree M S --- src/pages/code-of-conduct/index.tsx | 3 +++ src/pages/cookie-policy/index.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/pages/code-of-conduct/index.tsx b/src/pages/code-of-conduct/index.tsx index 030828024..a28bbca4f 100644 --- a/src/pages/code-of-conduct/index.tsx +++ b/src/pages/code-of-conduct/index.tsx @@ -43,6 +43,9 @@ const StyledOl = styles.ol` margin-bottom: 20px; `; +/** + * Code Of Conduct Page + */ const Codeofconduct = () => { return ( diff --git a/src/pages/cookie-policy/index.tsx b/src/pages/cookie-policy/index.tsx index c6cc9be7e..435d4fd1f 100644 --- a/src/pages/cookie-policy/index.tsx +++ b/src/pages/cookie-policy/index.tsx @@ -43,6 +43,9 @@ const StyledOl = styles.ol` margin-bottom: 20px; `; +/** + * Cookie Policy + */ const Cookiepolicy = () => { return ( From 24c06e8dfff6728b45252d1afb198cdf6a910e55 Mon Sep 17 00:00:00 2001 From: Hack2Health Date: Thu, 23 May 2024 23:17:12 +0530 Subject: [PATCH 3/8] Updated Cookie Policy Page Signed-off-by: Hemashree M S --- src/pages/cookie-policy/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/cookie-policy/index.tsx b/src/pages/cookie-policy/index.tsx index 435d4fd1f..8c57f7404 100644 --- a/src/pages/cookie-policy/index.tsx +++ b/src/pages/cookie-policy/index.tsx @@ -86,7 +86,7 @@ const Cookiepolicy = () => { Contact Us If you have any questions or concerns about our Cookie Policy, please contact us at: {" "}ajaydhangar49@gmail.com. + rel="noopener noreferrer"> ajaydhangar49@gmail.com. From 1c9bbd832c65370caa13fa2eb625748aa01da3b3 Mon Sep 17 00:00:00 2001 From: Hack2Health Date: Thu, 23 May 2024 23:29:43 +0530 Subject: [PATCH 4/8] Updated Code of Conduct and Cookie Policy Signed-off-by: Hemashree M S --- src/pages/code-of-conduct/index.tsx | 193 +++++++++++++++++----------- src/pages/cookie-policy/index.tsx | 115 +++++++++-------- 2 files changed, 181 insertions(+), 127 deletions(-) diff --git a/src/pages/code-of-conduct/index.tsx b/src/pages/code-of-conduct/index.tsx index a28bbca4f..7e6e3889c 100644 --- a/src/pages/code-of-conduct/index.tsx +++ b/src/pages/code-of-conduct/index.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import Layout from "@theme/Layout"; -import styles from "styled-components"; +import Layout from '@theme/Layout'; +import styles from 'styled-components'; -const CodeOfConduct = styles.div` +const CodeOfConductContainer = styles.div` max-width: 800px; margin: 0 auto; padding: 20px; @@ -12,7 +12,7 @@ const CodeOfConduct = styles.div` margin-bottom: 20px; font-size: 16px; line-height: 1.6; - font-family: "Open Sans", sans-serif; + font-family: 'Open Sans', sans-serif; text-align: justify; `; @@ -22,10 +22,6 @@ const Title = styles.h2` text-align: center; `; -const Content = styles.p` - margin-bottom: 20px; -`; - const SubTitle = styles.h3` margin-bottom: 20px; font-weight: 700; @@ -43,75 +39,124 @@ const StyledOl = styles.ol` margin-bottom: 20px; `; -/** - * Code Of Conduct Page - */ +const Content = styles.div` + margin-bottom: 20px; +`; + +const Section = ({ title, children }) => ( +
+ {title} + {children} +
+); + +const ListItem = ({ title, description }) => ( + + {title} +

{description}

+
+); const Codeofconduct = () => { return ( - - Code Of Conduct - - Last Updated: 23rd May 2024 -

- 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.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. -

Our Standards - Examples of behavior that contributes to a positive environment for our community 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 -
- Examples of unacceptable behavior 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 -
- Enforcement Responsibilities - 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.

- 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 - 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 - 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.

- Enforcement Guidelines - Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

- - 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.

- 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.

- 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.

- 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, 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.

- 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. -
-
+ + Code Of Conduct + +

Last Updated: 23rd May 2024

+ +
+

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.

+

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

+
+ +
+

Examples of behavior that contributes to a positive environment for our community 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 + +

Examples of unacceptable behavior 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 + +
+ +
+

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.

+

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.

+
+ +
+

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.

+
+ +
+

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.

+
+ +
+

Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

+ + + 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. + + } + /> + + 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. + + } + /> + + 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. + + } + /> + + 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. + + } + /> +
+
+ +
+

This Code of Conduct is adapted from the Contributor Covenant, 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.

+

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.

+
+
+
- ) -} + ); +}; -export default Codeofconduct \ No newline at end of file +export default Codeofconduct; diff --git a/src/pages/cookie-policy/index.tsx b/src/pages/cookie-policy/index.tsx index 8c57f7404..bd376c837 100644 --- a/src/pages/cookie-policy/index.tsx +++ b/src/pages/cookie-policy/index.tsx @@ -1,8 +1,8 @@ import React from 'react'; -import Layout from "@theme/Layout"; -import styles from "styled-components"; +import Layout from '@theme/Layout'; +import styles from 'styled-components'; -const CookiePolicy = styles.div` +const CookiePolicyContainer = styles.div` max-width: 800px; margin: 0 auto; padding: 20px; @@ -12,7 +12,7 @@ const CookiePolicy = styles.div` margin-bottom: 20px; font-size: 16px; line-height: 1.6; - font-family: "Open Sans", sans-serif; + font-family: 'Open Sans', sans-serif; text-align: justify; `; @@ -22,10 +22,6 @@ const Title = styles.h2` text-align: center; `; -const Content = styles.p` - margin-bottom: 20px; -`; - const SubTitle = styles.h3` margin-bottom: 20px; font-weight: 700; @@ -43,54 +39,67 @@ const StyledOl = styles.ol` margin-bottom: 20px; `; -/** - * Cookie Policy - */ +const Content = styles.div` + margin-bottom: 20px; +`; + +const CookieSection = ({ title, children }) => ( +
+ {title} + {children} +
+); const Cookiepolicy = () => { return ( - - Cookie Policy - - Last Updated: 23rd May 2024 -

- Our Mission - Welcome to CodeHarborHub. Our mission is to provide accessible and comprehensive educational resources to learners of all levels. This Cookie Policy explains how we use cookies on our website.

- What Are Cookies? - Cookies are small text files stored on your device when you visit a website. They help the site to remember your preferences and activities over time.

- How We Use Cookies - We use cookies to:

- - Enhance your user experience - Analyze our website traffic - Provide personalized content and advertisements -
- Types of Cookies We Use
- - Essential Cookies - These cookies are necessary for our website to function properly and cannot be switched off in our systems.

- Performance Cookies - These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.

- Functionality Cookies - These cookies enable the website to provide enhanced functionality and personalization based on your interactions.

- Targeting/Advertising Cookies - These cookies are used to deliver ads more relevant to you and your interests. They may be set by us or by third-party providers.

-
- Managing Cookies - You can manage or disable cookies through your browser settings. For more information on how to do this, visit your browser’s help section.

- Third-Party Cookies - We may use third-party cookies for various purposes such as analytics and advertising. These cookies are governed by the privacy policies of the respective third parties.

- Cookie Policy Updates - We may update this Cookie Policy from time to time. We will notify you of any significant changes by posting the new policy on our website and updating the date at the top of this page.

- Contact Us - If you have any questions or concerns about our Cookie Policy, please contact us at: - ajaydhangar49@gmail.com. -
-
+ + Cookie Policy + +

Last Updated: 23rd May 2024

+ +

Welcome to CodeHarborHub. Our mission is to provide accessible and comprehensive educational resources to learners of all levels. This Cookie Policy explains how we use cookies on our website.

+
+ +

Cookies are small text files stored on your device when you visit a website. They help the site to remember your preferences and activities over time.

+
+ +

We use cookies to:

+ + Enhance your user experience + Analyze our website traffic + Provide personalized content and advertisements + +
+ + + Essential Cookies +

These cookies are necessary for our website to function properly and cannot be switched off in our systems.

+ Performance Cookies +

These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.

+ Functionality Cookies +

These cookies enable the website to provide enhanced functionality and personalization based on your interactions.

+ Targeting/Advertising Cookies +

These cookies are used to deliver ads more relevant to you and your interests. They may be set by us or by third-party providers.

+
+
+ +

You can manage or disable cookies through your browser settings. For more information on how to do this, visit your browser’s help section.

+
+ +

We may use third-party cookies for various purposes such as analytics and advertising. These cookies are governed by the privacy policies of the respective third parties.

+
+ +

We may update this Cookie Policy from time to time. We will notify you of any significant changes by posting the new policy on our website and updating the date at the top of this page.

+
+ +

If you have any questions or concerns about our Cookie Policy, please contact us at:

+

ajaydhangar49@gmail.com

+
+
+
- ) -} + ); +}; -export default Cookiepolicy \ No newline at end of file +export default Cookiepolicy; From 42fb44f49df79f285d4f1733150706b45d570ac8 Mon Sep 17 00:00:00 2001 From: Hack2Health Date: Thu, 23 May 2024 23:33:44 +0530 Subject: [PATCH 5/8] Updated Comments Signed-off-by: Hemashree M S --- src/pages/code-of-conduct/index.tsx | 4 ++++ src/pages/cookie-policy/index.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/pages/code-of-conduct/index.tsx b/src/pages/code-of-conduct/index.tsx index 7e6e3889c..c5fe04177 100644 --- a/src/pages/code-of-conduct/index.tsx +++ b/src/pages/code-of-conduct/index.tsx @@ -2,6 +2,10 @@ import React from 'react'; import Layout from '@theme/Layout'; import styles from 'styled-components'; +/** + * Code of Conduct + **/ + const CodeOfConductContainer = styles.div` max-width: 800px; margin: 0 auto; diff --git a/src/pages/cookie-policy/index.tsx b/src/pages/cookie-policy/index.tsx index bd376c837..e2ddd2855 100644 --- a/src/pages/cookie-policy/index.tsx +++ b/src/pages/cookie-policy/index.tsx @@ -2,6 +2,10 @@ import React from 'react'; import Layout from '@theme/Layout'; import styles from 'styled-components'; +/** + * Cookie Policy + **/ + const CookiePolicyContainer = styles.div` max-width: 800px; margin: 0 auto; From ac16e5744b4a4d26c91eba7736b78bf2b5cde67e Mon Sep 17 00:00:00 2001 From: Hack2Health Date: Thu, 23 May 2024 23:39:44 +0530 Subject: [PATCH 6/8] Updated Code of Conduct and Cookie Policy Signed-off-by: Hemashree M S --- src/pages/code-of-conduct/index.tsx | 12 ++++++++++++ src/pages/cookie-policy/index.tsx | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/src/pages/code-of-conduct/index.tsx b/src/pages/code-of-conduct/index.tsx index c5fe04177..f1699c61b 100644 --- a/src/pages/code-of-conduct/index.tsx +++ b/src/pages/code-of-conduct/index.tsx @@ -47,6 +47,10 @@ const Content = styles.div` margin-bottom: 20px; `; +/** + * Code of Conduct - section + **/ + const Section = ({ title, children }) => (
{title} @@ -54,6 +58,10 @@ const Section = ({ title, children }) => (
); +/** + * Code of Conduct - list item + **/ + const ListItem = ({ title, description }) => ( {title} @@ -61,6 +69,10 @@ const ListItem = ({ title, description }) => ( ); +/** + * Code of Conduct + **/ + const Codeofconduct = () => { return ( diff --git a/src/pages/cookie-policy/index.tsx b/src/pages/cookie-policy/index.tsx index e2ddd2855..be9d95b43 100644 --- a/src/pages/cookie-policy/index.tsx +++ b/src/pages/cookie-policy/index.tsx @@ -47,6 +47,10 @@ const Content = styles.div` margin-bottom: 20px; `; +/** + * Cookie Section + **/ + const CookieSection = ({ title, children }) => (
{title} @@ -54,6 +58,10 @@ const CookieSection = ({ title, children }) => (
); +/** + * Cookie Policy + **/ + const Cookiepolicy = () => { return ( From 7c83616cf820c4eb27b00b83d3286a8a9a9b573e Mon Sep 17 00:00:00 2001 From: Hack2Health Date: Fri, 24 May 2024 08:43:01 +0530 Subject: [PATCH 7/8] Updated Code of Conduct and Cookie Policy Page Signed-off-by: Hemashree M S --- src/pages/code-of-conduct/index.tsx | 283 +++++++++++++++------------- src/pages/cookie-policy/index.tsx | 46 +++-- 2 files changed, 181 insertions(+), 148 deletions(-) diff --git a/src/pages/code-of-conduct/index.tsx b/src/pages/code-of-conduct/index.tsx index f1699c61b..3c7dd5cf0 100644 --- a/src/pages/code-of-conduct/index.tsx +++ b/src/pages/code-of-conduct/index.tsx @@ -1,56 +1,53 @@ import React from 'react'; import Layout from '@theme/Layout'; -import styles from 'styled-components'; +import styled from 'styled-components'; -/** - * Code of Conduct - **/ - -const CodeOfConductContainer = styles.div` - max-width: 800px; - margin: 0 auto; +// Styled Components +const CodeOfConductContainer = styled.div` + width: 50%; + display: block; + margin: auto; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); - margin-top: 20px; - margin-bottom: 20px; font-size: 16px; line-height: 1.6; font-family: 'Open Sans', sans-serif; text-align: justify; + + @media (max-width: 760px) { + width: 80%; + } `; -const Title = styles.h2` +const Title = styled.h2` margin-bottom: 20px; font-weight: 700; text-align: center; `; -const SubTitle = styles.h3` +const SubTitle = styled.h3` margin-bottom: 20px; font-weight: 700; `; -const StyledUl = styles.ul` +const StyledUl = styled.ul` margin-bottom: 20px; `; -const StyledLi = styles.li` +const StyledLi = styled.li` margin-bottom: 20px; `; -const StyledOl = styles.ol` +const StyledOl = styled.ol` margin-bottom: 20px; `; -const Content = styles.div` +const Content = styled.div` margin-bottom: 20px; `; -/** - * Code of Conduct - section - **/ - +// Reusable Components const Section = ({ title, children }) => (
{title} @@ -58,10 +55,6 @@ const Section = ({ title, children }) => (
); -/** - * Code of Conduct - list item - **/ - const ListItem = ({ title, description }) => ( {title} @@ -69,110 +62,138 @@ const ListItem = ({ title, description }) => ( ); -/** - * Code of Conduct - **/ - -const Codeofconduct = () => { - return ( - - - Code Of Conduct - -

Last Updated: 23rd May 2024

- -
-

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.

-

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

-
- -
-

Examples of behavior that contributes to a positive environment for our community 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 - -

Examples of unacceptable behavior 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 - -
- -
-

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.

-

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.

-
- -
-

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.

-
- -
-

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.

-
- -
-

Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

- - - 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. - - } - /> - - 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. - - } - /> - - 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. - - } - /> - - 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. - - } - /> -
-
- -
-

This Code of Conduct is adapted from the Contributor Covenant, 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.

-

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.

-
-
-
-
- ); -}; - -export default Codeofconduct; +// Code of Conduct Component +const CodeOfConduct = () => ( + + + Code Of Conduct + + + + + + + + + + + + +); + +// Separate Sections as Components +const LastUpdated = () => ( +

Last Updated: 23rd May 2024

+); + +// Separate Sections as Components +const OurPledge = () => ( +
+

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.

+

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

+
+); + +// Separate Sections as Components +const OurStandards = () => ( +
+

Examples of behavior that contributes to a positive environment for our community 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 + +

Examples of unacceptable behavior 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 + +
+); + +// Separate Sections as Components +const EnforcementResponsibilities = () => ( +
+

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.

+

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.

+
+); + +// Separate Sections as Components +const Scope = () => ( +
+

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.

+
+); + +// Separate Sections as Components +const Enforcement = () => ( +
+

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.

+
+); + +// Separate Sections as Components +const EnforcementGuidelines = () => ( +
+

Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

+ + + 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. + + } + /> + + 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. + + } + /> + + 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. + + } + /> + + 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. + + } + /> +
+
+); + +// Separate Sections as Components +const Attribution = () => ( +
+

This Code of Conduct is adapted from the Contributor Covenant, 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.

+

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.

+
+); + +export default CodeOfConduct; \ No newline at end of file diff --git a/src/pages/cookie-policy/index.tsx b/src/pages/cookie-policy/index.tsx index be9d95b43..8c55aa5bb 100644 --- a/src/pages/cookie-policy/index.tsx +++ b/src/pages/cookie-policy/index.tsx @@ -1,57 +1,69 @@ import React from 'react'; import Layout from '@theme/Layout'; -import styles from 'styled-components'; +import styled from 'styled-components'; /** - * Cookie Policy + * Cookie Section **/ -const CookiePolicyContainer = styles.div` - max-width: 800px; - margin: 0 auto; +interface CookieSectionProps { + title: string; + children: React.ReactNode; +} + +/** + * Styled Components + **/ + +const CookiePolicyContainer = styled.div` + display: block; + margin: auto; + width: 50%; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); - margin-top: 20px; - margin-bottom: 20px; font-size: 16px; line-height: 1.6; font-family: 'Open Sans', sans-serif; text-align: justify; + + @media (max-width: 760px) { + width: 80%; + } `; -const Title = styles.h2` +const Title = styled.h2` margin-bottom: 20px; font-weight: 700; text-align: center; `; -const SubTitle = styles.h3` +const SubTitle = styled.h3` margin-bottom: 20px; font-weight: 700; `; -const StyledUl = styles.ul` +const StyledUl = styled.ul` margin-bottom: 20px; `; -const StyledLi = styles.li` +const StyledLi = styled.li` margin-bottom: 20px; `; -const StyledOl = styles.ol` +const StyledOl = styled.ol` margin-bottom: 20px; `; -const Content = styles.div` +const Content = styled.div` margin-bottom: 20px; `; /** - * Cookie Section + * Functional Components **/ -const CookieSection = ({ title, children }) => ( +const CookieSection: React.FC = ({ title, children }) => (
{title} {children} @@ -62,7 +74,7 @@ const CookieSection = ({ title, children }) => ( * Cookie Policy **/ -const Cookiepolicy = () => { +const CookiePolicy: React.FC = () => { return ( @@ -114,4 +126,4 @@ const Cookiepolicy = () => { ); }; -export default Cookiepolicy; +export default CookiePolicy; From 812b858a70279ca2c4246e5a537fdfa2e11ddc0d Mon Sep 17 00:00:00 2001 From: Hack2Health Date: Fri, 24 May 2024 08:53:26 +0530 Subject: [PATCH 8/8] Updated to reusable components Signed-off-by: Hemashree M S --- src/pages/code-of-conduct/index.tsx | 43 +++---- src/pages/cookie-policy/index.tsx | 189 +++++++++++++++++----------- 2 files changed, 137 insertions(+), 95 deletions(-) diff --git a/src/pages/code-of-conduct/index.tsx b/src/pages/code-of-conduct/index.tsx index 3c7dd5cf0..ee54011de 100644 --- a/src/pages/code-of-conduct/index.tsx +++ b/src/pages/code-of-conduct/index.tsx @@ -55,6 +55,7 @@ const Section = ({ title, children }) => (
); +// Reusable Components const ListItem = ({ title, description }) => ( {title} @@ -62,25 +63,6 @@ const ListItem = ({ title, description }) => ( ); -// Code of Conduct Component -const CodeOfConduct = () => ( - - - Code Of Conduct - - - - - - - - - - - - -); - // Separate Sections as Components const LastUpdated = () => (

Last Updated: 23rd May 2024

@@ -110,7 +92,7 @@ const OurStandards = () => ( 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 + 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 @@ -191,9 +173,28 @@ const EnforcementGuidelines = () => ( const Attribution = () => (

This Code of Conduct is adapted from the Contributor Covenant, 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.

+

Community Impact Guidelines were inspired by Mozilla's code of conduct enforcement ladder.

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.

); +// Code of Conduct Component +const CodeOfConduct = () => ( + + + Code Of Conduct + + + + + + + + + + + + +); + export default CodeOfConduct; \ No newline at end of file diff --git a/src/pages/cookie-policy/index.tsx b/src/pages/cookie-policy/index.tsx index 8c55aa5bb..7f0fa1002 100644 --- a/src/pages/cookie-policy/index.tsx +++ b/src/pages/cookie-policy/index.tsx @@ -2,23 +2,11 @@ import React from 'react'; import Layout from '@theme/Layout'; import styled from 'styled-components'; -/** - * Cookie Section - **/ - -interface CookieSectionProps { - title: string; - children: React.ReactNode; -} - -/** - * Styled Components - **/ - +// Styled Components const CookiePolicyContainer = styled.div` + width: 50%; display: block; margin: auto; - width: 50%; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); @@ -59,71 +47,124 @@ const Content = styled.div` margin-bottom: 20px; `; -/** - * Functional Components - **/ - -const CookieSection: React.FC = ({ title, children }) => ( +// Reusable Components +const Section = ({ title, children }) => (
{title} {children}
); -/** - * Cookie Policy - **/ - -const CookiePolicy: React.FC = () => { - return ( - - - Cookie Policy - -

Last Updated: 23rd May 2024

- -

Welcome to CodeHarborHub. Our mission is to provide accessible and comprehensive educational resources to learners of all levels. This Cookie Policy explains how we use cookies on our website.

-
- -

Cookies are small text files stored on your device when you visit a website. They help the site to remember your preferences and activities over time.

-
- -

We use cookies to:

- - Enhance your user experience - Analyze our website traffic - Provide personalized content and advertisements - -
- - - Essential Cookies -

These cookies are necessary for our website to function properly and cannot be switched off in our systems.

- Performance Cookies -

These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.

- Functionality Cookies -

These cookies enable the website to provide enhanced functionality and personalization based on your interactions.

- Targeting/Advertising Cookies -

These cookies are used to deliver ads more relevant to you and your interests. They may be set by us or by third-party providers.

-
-
- -

You can manage or disable cookies through your browser settings. For more information on how to do this, visit your browser’s help section.

-
- -

We may use third-party cookies for various purposes such as analytics and advertising. These cookies are governed by the privacy policies of the respective third parties.

-
- -

We may update this Cookie Policy from time to time. We will notify you of any significant changes by posting the new policy on our website and updating the date at the top of this page.

-
- -

If you have any questions or concerns about our Cookie Policy, please contact us at:

-

ajaydhangar49@gmail.com

-
-
-
-
- ); -}; +// Reusable Components +const ListItem = ({ title, description }) => ( + + {title} +

{description}

+
+); + +// Separate Sections as Components +const LastUpdated = () => ( +

Last Updated: 23rd May 2024

+); + +// Separate Sections as Components +const Mission = () => ( +
+

Welcome to CodeHarborHub. Our mission is to provide accessible and comprehensive educational resources to learners of all levels. This Cookie Policy explains how we use cookies on our website.

+
+); + +// Separate Sections as Components +const WhatAreCookies = () => ( +
+

Cookies are small text files stored on your device when you visit a website. They help the site to remember your preferences and activities over time.

+
+); + +// Separate Sections as Components +const HowWeUseCookies = () => ( +
+

We use cookies to:

+ + Enhance your user experience + Analyze our website traffic + Provide personalized content and advertisements + +
+); + +// Separate Sections as Components +const TypesOfCookies = () => ( +
+ + + + + + +
+); + +// Separate Sections as Components +const ManagingCookies = () => ( +
+

You can manage or disable cookies through your browser settings. For more information on how to do this, visit your browser’s help section.

+
+); + +// Separate Sections as Components +const ThirdPartyCookies = () => ( +
+

We may use third-party cookies for various purposes such as analytics and advertising. These cookies are governed by the privacy policies of the respective third parties.

+
+); + +// Separate Sections as Components +const CookiePolicyUpdates = () => ( +
+

We may update this Cookie Policy from time to time. We will notify you of any significant changes by posting the new policy on our website and updating the date at the top of this page.

+
+); + +// Separate Sections as Components +const ContactUs = () => ( +
+

If you have any questions or concerns about our Cookie Policy, please contact us at:

+

ajaydhangar49@gmail.com

+
+); + +// Cookie Policy Component +const CookiePolicy = () => ( + + + Cookie Policy + + + + + + + + + + + + + +); export default CookiePolicy;