Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from SkyfallWasTaken/main
Browse files Browse the repository at this point in the history
Add CoC
  • Loading branch information
leowilkin authored Aug 30, 2024
2 parents 62489e6 + b3b2be4 commit 47f2476
Show file tree
Hide file tree
Showing 8 changed files with 164 additions and 20 deletions.
Binary file added bun.lockb
Binary file not shown.
2 changes: 0 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.14",
"@tailwindcss/typography": "^0.5.15",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"vite": "^5.4.1"
Expand Down
18 changes: 13 additions & 5 deletions src/layouts/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,24 @@ import { Image } from 'astro:assets';
const menu = [
{
link: 'https://hcb.hackclub.com/zenithhacks',
label: 'HCB'
label: 'HCB',
target: '_blank'
},
{
link: 'https://github.com/zenith-hacks',
label: 'GitHub'
label: 'GitHub',
target: '_blank'
},
{
link: 'https://hackclub.slack.com/archives/C07HC6711PX',
label: 'Slack'
label: 'Slack',
target: '_blank'
},
{
link: '/code-of-conduct',
label: "Code of Conduct",
target: '_blank'
}
];
---

Expand Down Expand Up @@ -49,7 +57,7 @@ const menu = [
<nav class='flex gap-4 items-center justify-between py-3'>
<h2 class='m-0'>
<a href='/' class='flex gap-4 items-center text-xl font-black uppercase'>
<Image src={Logo} alt='Zenith 2025' class="w-11 shadow-lg"/>
<Image src={Logo} alt='Zenith 2025' class="w-11 shadow-lg" loading="eager"/>
</a>
</h2>
<div class='flex'>
Expand All @@ -68,7 +76,7 @@ const menu = [
{
menu.map((item) => (
<div class='px-2.5 text-sm'>
<HeaderLink class="py-3 flex items-center" href={item.link}>
<HeaderLink class="py-3 flex items-center" href={item.link} {...item}>
{item.label}
</HeaderLink>
</div>
Expand Down
7 changes: 6 additions & 1 deletion src/layouts/components/HeaderLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ const isActive = href === pathname || href === '/' + subpath?.[0];

<a
href={href}
class:list={[className, { 'border-b border-zinc-300': isActive }, { 'text-zinc-200 hover:text-zinc-50': !isActive }, { 'text-zinc-50': isActive }]}
class:list={[
className,
{ 'border-b border-zinc-300': isActive },
{ 'text-zinc-200 hover:text-zinc-50': !isActive },
{ 'text-zinc-50': isActive }
]}
{...props}
>
<slot />
Expand Down
133 changes: 133 additions & 0 deletions src/pages/code-of-conduct.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
---
import BaseLayout from '../layouts/BaseLayout.astro';
---

<BaseLayout title='Code of Conduct'>
<div class='w-full flex justify-center mt-8'>
<article class="w-4/5 lg:w-1/2 font-['Poppins'] prose flex flex-col justify-center">
<h1 class='mb-4'>Code of Conduct</h1>
<div>
<h2>Our Pledge</h2>
<p>
We as members, contributors, and leaders pledge to make participation in our hackathon 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, caste, color, 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.
</p>
</div>

<div>
<h2>Our Standards</h2>
<p>Examples of behavior that contributes to a positive environment for our community include:</p>
<ol>
<li>Demonstrating empathy and kindness toward other people</li>
<li>Being respectful of differing opinions, viewpoints, and experiences</li>
<li>Giving and gracefully accepting constructive feedback</li>
<li>Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience</li>
<li>Focusing on what is best not just for us as individuals, but for the overall community</li>
</ol>

<p>Examples of unacceptable behavior include:</p>
<ul>
<li>The use of sexualized language or imagery, and sexual attention or advances of any kind</li>
<li>Trolling, insulting or derogatory comments, and personal or political attacks</li>
<li>Public or private harassment</li>
<li>Publishing others' private information, such as a physical or email address, without their explicit permission</li>
<li>Other conduct which could reasonably be considered inappropriate in a professional setting</li>
</ul>
</div>

<div>
<h2>Enforcement Responsibilities</h2>
<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. 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>
</div>

<div>
<h2>Scope</h2>
<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 email address, posting via an
official social media account, or acting as an appointed representative at an online or offline event.
</p>
</div>

<div>
<h2>Enforcement</h2>
<p>
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for
enforcement at <b>team@zenithhacks.org</b>. 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>
</div>

<div>
<h2>Enforcement Guidelines</h2>
<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>
</div>

<div>
<h3>1. Correction</h3>
<p>
<strong>Community Impact:</strong> Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
</p>
<p>
<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.
</p>
</div>

<div>
<h3>2. Warning</h3>
<p>
<strong>Community Impact:</strong> A violation through a single incident or series of actions.
</p>
<p>
<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.
</p>
</div>

<div>
<h3>3. Temporary Ban</h3>
<p>
<strong>Community Impact:</strong> A serious violation of community standards, including sustained inappropriate behavior.
</p>
<p>
<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.
</p>
</div>

<div>
<h3>4. Permanent Ban</h3>
<p>
<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.
</p>
<p><strong>Consequence:</strong> A permanent ban from any sort of public interaction within the community.</p>
</div>

<div>
<h2>Attribution</h2>
<p>
This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at <a
href='https://www.contributor-covenant.org/version/2/1/code_of_conduct.html'>their website.</a
>
</p>
</div>
</article>
</div>
</BaseLayout>
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import { Image } from 'astro:assets';
<Image
class='rotate-12 w-full h-auto max-w-xs mx-auto'
src='https://seeklogo.com/images/G/globe-logo-273472C23A-seeklogo.com.png'
alt='Globe vector image'
alt='Globe vector'
inferSize={true}
/>
</div>
Expand Down
20 changes: 10 additions & 10 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'selector',
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
container: {
center: true,
center: true,
padding: '1rem',
screens: {
xl: '1024px'
}
},
extend: {
screens: {
xl: '1024px'
}
},
extend: {
typography: {
DEFAULT: {
css: {
Expand All @@ -19,6 +19,6 @@ export default {
}
}
},
},
plugins: [require('@tailwindcss/typography')],
},
plugins: [require('@tailwindcss/typography')],
}

0 comments on commit 47f2476

Please sign in to comment.