Skip to content

Commit

Permalink
Get involved block
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Sep 19, 2023
1 parent 57b88c0 commit 3ec6849
Show file tree
Hide file tree
Showing 3 changed files with 23 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.
14 changes: 14 additions & 0 deletions apps/codeforafrica/src/payload/blocks/GetInvolved.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import impact from "../fields/impact";

const GetInvolved = {
slug: "get-involved",
imageURL: "/images/cms/blocks/get_involved.jpg",
imageAltText: "Our Impact Statisctics",
fields: [
impact({
minRows: 3,
}),
],
};

export default GetInvolved;
10 changes: 9 additions & 1 deletion apps/codeforafrica/src/payload/collections/Pages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import CustomPageHeader from "../blocks/CustomPageHeader";
import Error from "../blocks/Error";
import GetInvolved from "../blocks/GetInvolved";
import Hero from "../blocks/Hero";
import OurPartners from "../blocks/OurPartners";
import PageHeader from "../blocks/PageHeader";
Expand Down Expand Up @@ -37,7 +38,14 @@ const Pages = {
// each other e.g. while alphabecially CustomPageHeader should be with C,
// it's functiaonally equivalent with PageHeader so we keep it next to
// PageHeader
blocks: [Error, Hero, PageHeader, CustomPageHeader, OurPartners],
blocks: [
Error,
GetInvolved,
Hero,
PageHeader,
CustomPageHeader,
OurPartners,
],
admin: {
initCollapsed: true,
},
Expand Down

0 comments on commit 3ec6849

Please sign in to comment.