From ddcb8dfe567466f0ceb8bf47d22613c5a4a9229a Mon Sep 17 00:00:00 2001 From: Seth Etter Date: Sat, 02 Mar 2024 14:48:58 +0000 Subject: [PATCH] code of conduct, merge in report page --- CODE_OF_CONDUCT.md | 21 +++++++++++++++++++++ deno.json | 3 ++- fresh.gen.ts | 4 ++-- components/ConductReportForm.tsx | 43 +++++++++++++++++++++++++++++++++++++++++++ routes/conduct.tsx | 37 ++++++++++++++++++++++++++++++++----- routes/report.tsx | 49 ------------------------------------------------- 6 file(s) changed, 100 insertion(s)(+), 57 deletion(s)(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,21 @@ +# Code of Conduct + +All individuals participating in any devICT sanctioned space, whether in-person or online, are required to agree with the following code of conduct. This includes attendees, volunteers, speakers, sponsors, and members of the devICT board. Organizers will enforce this code whenever deemed appropriate. We expect cooperation from all participants to help ensure a safe and welcoming environment for everybody. + +## The Quick Version + +Our community is dedicated to providing a harassment-free meetup experience for everyone, regardless of gender, gender identity and expression, age, sexual orientation, disability, physical appearance, body size, race, ethnicity, religion (or lack thereof), or technology choices. We do not tolerate harassment of meetup participants in any form. Sexual or derogatory language and imagery is not appropriate for any community space, including events, talks, workshops, parties, Slack, GitHub, and any other online space. Community participants violating these rules may be sanctioned or expelled from the event and/or community without refund (where applicable) at the discretion of the devICT board and event hosts. + +## The Less Quick Version + +Harassment includes offensive written or verbal comments or imagery related to gender, gender identity and expression, age, sexual orientation, disability, physical appearance, body size, race, ethnicity, religion, technology choices, sexual images in public spaces, deliberate intimidation, stalking, following, harassing photography or recording, sustained disruption of talks or other events, inappropriate physical contact, and unwelcome sexual attention. + +**Participants asked to stop any harassing behaviour are expected to comply immediately.** + +If a participant engages in harassing behaviour, the devICT board or event hosts may take any action they deem appropriate, including warning the offender, expulsion from the event, and/or expulsion from devICT digital spaces. + +If you are being harassed, notice that someone else is being harassed, or have any other concerns, please contact a devICT board member or event host immediately. (TODO: how to quick find one of these individuals) + +devICT board members and event hosts will be happy to help participants contact security or local law enforcement, provide escorts, or otherwise assist those experiencing harassment to feel safe for the duration of the meetup. We value your attendance. + +We expect anyone participating in devICT, either in person or virtually, to abide by this code of conduct. diff --git a/deno.json b/deno.json --- a/deno.json +++ b/deno.json @@ -21,7 +21,8 @@ "@twind/preset-tailwind": "https://esm.sh/@twind/preset-tailwind@1.1.4", "@twind/preset-autoprefix": "https://esm.sh/@twind/preset-autoprefix@1.0.7", "tabler_icons/": "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/", - "$std/": "https://deno.land/std@0.193.0/" + "$std/": "https://deno.land/std@0.193.0/", + "$gfm": "https://deno.land/x/gfm@0.2.3/mod.ts" }, "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" } } diff --git a/fresh.gen.ts b/fresh.gen.ts --- a/fresh.gen.ts +++ b/fresh.gen.ts @@ -5,9 +5,9 @@ import * as $_404 from "./routes/_404.tsx"; import * as $_app from "./routes/_app.tsx"; import * as $about from "./routes/about.tsx"; +import * as $conduct from "./routes/conduct.tsx"; import * as $index from "./routes/index.tsx"; import * as $projects from "./routes/projects.tsx"; -import * as $report from "./routes/report.tsx"; import * as $Footer from "./islands/Footer.tsx"; import * as $Header from "./islands/Header.tsx"; import * as $IssuesList from "./islands/IssuesList.tsx"; @@ -18,9 +18,9 @@ "./routes/_404.tsx": $_404, "./routes/_app.tsx": $_app, "./routes/about.tsx": $about, + "./routes/conduct.tsx": $conduct, "./routes/index.tsx": $index, "./routes/projects.tsx": $projects, - "./routes/report.tsx": $report, }, islands: { "./islands/Footer.tsx": $Footer, diff --git a/components/ConductReportForm.tsx b/components/ConductReportForm.tsx new file mode 100644 --- /dev/null +++ b/components/ConductReportForm.tsx @@ -0,0 +1,43 @@ +export default function ConductReportForm() { + return ( +
+
+ +

+ Describe what happened, providing any detail that may help the devICT + board in addressing to situation. +

+ +
+
+

+ If you want a response from the board, please leave some kind of + contact information here. +

+
+
+ {/*
*/} + + + {/*
*/} + +
+
+ ); +} diff --git a/routes/conduct.tsx b/routes/conduct.tsx --- a/routes/conduct.tsx +++ b/routes/conduct.tsx @@ -1,9 +1,36 @@ +import { CSS, render } from "$gfm"; +import { Head } from "$fresh/runtime.ts"; +import ConductReportForm from "../components/ConductReportForm.tsx"; + +const cocMarkdown = await Deno.readTextFile("./CODE_OF_CONDUCT.md"); + export default function Conduct() { + const md = ` +${cocMarkdown} + +## Report an Incident + +You may use this form to anonymously report an incident that may have violated our +Code of Conduct.The report will go to the devICT Board of Directors. The report goes +through the servers at formspree.io. +`; + const cocHtml = render(md); + return ( -
-

Code of Conduct

-
-

TODO!

-
+ <> + +