From 2e3194de76ff80b18eb4233623ea31a83b327f3d Mon Sep 17 00:00:00 2001 From: Adam Joseph Arling Date: Tue, 19 Sep 2023 13:07:37 -0500 Subject: [PATCH] Update Contact Us page --- components/get-started/ContactUs.jsx | 104 ++++++++++++++++++ .../CommunityLeadership.jsx | 0 components/{about => the-community}/Faq.jsx | 0 markdown/get-started/contact-us.md | 7 -- pages/get-started/[slug].jsx | 8 ++ pages/the-community/[slug].jsx | 4 +- 6 files changed, 114 insertions(+), 9 deletions(-) create mode 100644 components/get-started/ContactUs.jsx rename components/{about => the-community}/CommunityLeadership.jsx (100%) rename components/{about => the-community}/Faq.jsx (100%) diff --git a/components/get-started/ContactUs.jsx b/components/get-started/ContactUs.jsx new file mode 100644 index 000000000..9f5545ab9 --- /dev/null +++ b/components/get-started/ContactUs.jsx @@ -0,0 +1,104 @@ +import Layout from "components/layout/Layout"; +import Main from "components/layout/Main"; +import Breadcrumbs from "components/Breadcrumbs"; +import MarkdownContent from "components/MarkdownContent"; +import Link from "next/link"; + +const contactCards = [ + { + title: "Community Manager", + linkText: "heather@samvera.org", + linkUrl: "mailto:heather@samvera.org", + description: + "For questions about the Samvera Community or how to get involved, contact the Samvera Community Manager, Heather Greer Klein", + }, + { + title: "Samvera Board", + linkText: "board@samvera.org", + linkUrl: "mailto:board@samvera.org", + description: "Contact the Samvera Board", + }, + { + title: "Code of Conduct", + linkText: "incident-responders@samvera.org", + linkUrl: "mailto:incident-responders@samvera.org", + description: `To report a Code of Conduct violation`, + }, + { + title: "Service Providers", + linkText: "Service Providers page", + linkUrl: "/the-community/service-providers", + description: `For hosted solutions, Requests for Proposals, or contracted work`, + }, +]; + +export default function ContactUs({ config, content, frontmatter }) { + return ( + +
+ + + {/*

{frontmatter.title}

*/} + + +
+
+
+
+
+

+ Get in touch +

+

+ Contact the Samvera Community via the following links. +

+
+
+ {contactCards.map((card) => ( +
+

+ {card.title} +

+
+
+
Email
+
+ + {card.linkText} + +

+
+
+
+
+ ))} +
+
+
+
+
+
+
+ ); +} diff --git a/components/about/CommunityLeadership.jsx b/components/the-community/CommunityLeadership.jsx similarity index 100% rename from components/about/CommunityLeadership.jsx rename to components/the-community/CommunityLeadership.jsx diff --git a/components/about/Faq.jsx b/components/the-community/Faq.jsx similarity index 100% rename from components/about/Faq.jsx rename to components/the-community/Faq.jsx diff --git a/markdown/get-started/contact-us.md b/markdown/get-started/contact-us.md index dc0240d38..57d20dba6 100644 --- a/markdown/get-started/contact-us.md +++ b/markdown/get-started/contact-us.md @@ -2,10 +2,3 @@ title: "Contact Us" date: "2023-02-28" --- -For questions about the Samvera Community or how to get involved, contact the Samvera Community Manager, Heather Greer Klein, [heather@samvera.org](mailto:heather@samvera.org) - -To reach the Samvera Board, email [board@samvera.org](mailto:board@samvera.org) - -To report a [Code of Conduct](https://samvera.atlassian.net/wiki/spaces/samvera/pages/405212316/Samvera+Code+of+Conduct+and+Anti-Harassment+Policy) violation, email [incident-responders@samvera.org](mailto:incident-responders@samvera.org) - -If you’re interested in hosted solutions, Requests for Proposals, or contracted work, see our [service providers page](https://samvera.org/the-community/service-providers) for contact information. diff --git a/pages/get-started/[slug].jsx b/pages/get-started/[slug].jsx index 0d90cc8f0..f80ce9d30 100644 --- a/pages/get-started/[slug].jsx +++ b/pages/get-started/[slug].jsx @@ -1,5 +1,6 @@ import { getMarkdownPageContent, getPaths } from "lib/markdown-helpers"; +import ContactUs from "components/get-started/ContactUs"; import DynamicPage from "components/layout/DynamicPage"; import { buildWorkOpenGraphData } from "lib/open-graph"; @@ -12,6 +13,13 @@ const CONFIG = { }; export default function GetStartedPage({ content, frontmatter, slug }) { + // Community Leadership page + if (slug === "contact-us") { + return ( + + ); + } + return ( ); diff --git a/pages/the-community/[slug].jsx b/pages/the-community/[slug].jsx index 619835324..3afb74679 100644 --- a/pages/the-community/[slug].jsx +++ b/pages/the-community/[slug].jsx @@ -1,8 +1,8 @@ import { getMarkdownPageContent, getPaths } from "lib/markdown-helpers"; -import CommunityLeadership from "components/about/CommunityLeadership"; +import CommunityLeadership from "components/the-community/CommunityLeadership"; import DynamicPage from "components/layout/DynamicPage"; -import Faq from "components/about/Faq"; +import Faq from "components/the-community/Faq"; import { buildWorkOpenGraphData } from "lib/open-graph"; /**