Skip to content

Commit

Permalink
Merge pull request #588 from CodeForAfrica/ft/codeforafrica-join-our-…
Browse files Browse the repository at this point in the history
…slack

Ft/codeforafrica join our slack
  • Loading branch information
kelvinkipruto authored Sep 21, 2023
2 parents ad0735b + 6b5d566 commit eff9c3f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion apps/codeforafrica/src/pages/[...slugs].page.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import FeaturedProjects from "@/codeforafrica/components/FeaturedProjects";
import GetInTouch from "@/codeforafrica/components/GetInTouch";
import GetInvolved from "@/codeforafrica/components/GetInvolved";
import Hero from "@/codeforafrica/components/Hero";
import JoinOurSlack from "@/codeforafrica/components/JoinOurSlack";
import MeetOurTeam from "@/codeforafrica/components/MeetOurTeam";
import NewsAndStories from "@/codeforafrica/components/NewsAndStories";
import OurImpact from "@/codeforafrica/components/OurImpact";
Expand All @@ -17,10 +18,11 @@ import { getPageServerSideProps } from "@/codeforafrica/lib/data";

const componentsBySlugs = {
"contact-form": ContactForm,
"get-in-touch": GetInTouch,
"custom-page-header": CustomPageHeader,
"get-involved": GetInvolved,
"get-in-touch": GetInTouch,
hero: Hero,
"join-our-slack": JoinOurSlack,
"meet-our-team": MeetOurTeam,
"news-stories": NewsAndStories,
"our-impact": OurImpact,
Expand Down
24 changes: 24 additions & 0 deletions apps/codeforafrica/src/payload/blocks/JoinOurSlack.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import linkGroup from "../fields/links/linkGroup";

const JoinOurSlack = {
slug: "join-our-slack",
imageURL: "/images/cms/blocks/join_our_slack.jpg",
imageAltText: "Display link to join our Slack community",
fields: [
{
name: "title",
label: "Title",
required: true,
type: "text",
},
{
name: "subtitle",
label: "Subtitle",
required: true,
type: "text",
},
linkGroup({ overrides: { name: "action", label: "Action" } }),
],
};

export default JoinOurSlack;
2 changes: 2 additions & 0 deletions apps/codeforafrica/src/payload/collections/Pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Error from "../blocks/Error";
import GetInTouch from "../blocks/GetInTouch";
import GetInvolved from "../blocks/GetInvolved";
import Hero from "../blocks/Hero";
import JoinOurSlack from "../blocks/JoinOurSlack";
import OurImpact from "../blocks/OurImpact";
import OurPartners from "../blocks/OurPartners";
import PageHeader from "../blocks/PageHeader";
Expand Down Expand Up @@ -47,6 +48,7 @@ const Pages = {
GetInTouch,
GetInvolved,
Hero,
JoinOurSlack,
PageHeader,
CustomPageHeader,
OurImpact,
Expand Down

0 comments on commit eff9c3f

Please sign in to comment.