Skip to content

Commit

Permalink
feat: refactored pages/code-of-conduct.astro to point to gist
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosalm committed May 16, 2024
1 parent 3674cce commit 1296d86
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 22 deletions.
20 changes: 18 additions & 2 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,15 @@ declare module 'astro:content' {
data: InferEntrySchema<"blog">
} & { render(): Render[".md"] };
};
"code-of-conduct": {
"code-of-conduct.md": {
id: "code-of-conduct.md";
slug: "code-of-conduct";
body: string;
collection: "code-of-conduct";
data: any
} & { render(): Render[".md"] };
};
"events": {
"a-combinatorial-problem-reed-nelson.md": {
id: "a-combinatorial-problem-reed-nelson.md";
Expand All @@ -261,6 +270,15 @@ declare module 'astro:content' {
collection: "events";
data: InferEntrySchema<"events">
} & { render(): Render[".md"] };
};
"resources": {
"README.md": {
id: "README.md";
slug: "readme";
body: string;
collection: "resources";
data: any
} & { render(): Render[".md"] };
};

};
Expand Down Expand Up @@ -347,8 +365,6 @@ declare module 'astro:content' {
collection: "coordinators";
data: InferEntrySchema<"coordinators">
};
};
"resources": {
};

};
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "src/content/code-of-conduct"]
path = src/content/code-of-conduct
url = https://gist.github.com/nicosalm/289c14c5a6709872803d50178763f9ac
[submodule "src/content/resources"]
path = src/content/resources
url = https://github.com/UW-UPL/resources
1 change: 1 addition & 0 deletions src/content/code-of-conduct
Submodule code-of-conduct added at 866c08
2 changes: 1 addition & 1 deletion src/content/resources
Submodule resources updated 1 files
+9 −6 README.md
31 changes: 12 additions & 19 deletions src/pages/code-of-conduct.astro
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
---
import { getCollection } from "astro:content";
import Layout from "../layouts/Layout.astro";
const coc = await getCollection("code-of-conduct");
const coc_rendered = await coc.filter(d => d.id == "code-of-conduct.md")[0].render();
---

<Layout>
<h1 class="ml-2 mb-4 text-6xl font-bold">Code of Conduct</h1>
<h2 class="ml-2 mb-2 text-4xl font-semibold">Expected Behavior</h2>
<ul class="ml-4 mb-4 text-xl list-disc">
<li class="mb-2">Be Respectful - Pretty Obvious</li>
<li class="mb-2">Communicate with kindness and empathy.</li>
<li class="mb-2">Don't do anything that you wouldn't do on campus or any other school space.</li>
</ul>

<h2 class="ml-2 mb-2 text-4xl font-semibold">Unacceptable Behavior</h2>
<ul class="ml-4 mb-4 text-xl list-disc">
<li class="mb-2">Refrain from any form of harassment or discrimination.</li>
<li class="mb-2">Borrowing items from the UPL without a coordinator's permission</li>
</ul>

<ul class="ml-4 mb-4 text-xl list-disc">
<li class="mb-2">First few offenses will receive verbal warnings, repeat offenders can be removed as members at the discretion of the coordinators</li>
<li class="mb-2">Report any inappropriate behavior to the moderators at [email protected]</li>
</ul>
</Layout>
<div class="inline w-full overflow-hidden text-slate-800">
<div class="mx-auto w-3/4">
<div class="text-base/6 font-sans prose prose-lg prose-zinc">
<coc_rendered.Content>
</div>
</div>
</div>
</Layout>

0 comments on commit 1296d86

Please sign in to comment.