-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ft/codeforafrica-posts-cms
- Loading branch information
Showing
34 changed files
with
441 additions
and
84 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 1 addition & 27 deletions
28
apps/codeforafrica/src/components/ConnectBar/ConnectBar.snap.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<ConnectBar /> renders unchanged 1`] = ` | ||
<div> | ||
<div | ||
class="MuiStack-root css-150zc89-MuiStack-root" | ||
> | ||
<div | ||
class="MuiStack-root css-1mbd5au-MuiStack-root" | ||
> | ||
<a | ||
aria-label="facebook" | ||
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiBox-root active css-tmo8yp-MuiTypography-root-MuiLink-root" | ||
data-mui-internal-clone-element="true" | ||
href="https://www.facebook.com/" | ||
rel="noreferrer noopener" | ||
target="_blank" | ||
> | ||
<div | ||
aria-hidden="true" | ||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1dz6c5u-MuiSvgIcon-root" | ||
focusable="false" | ||
viewbox="0 0 24 24" | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
exports[`<ConnectBar /> renders unchanged 1`] = `<div />`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import { Section } from "@commons-ui/core"; | ||
import { Box } from "@mui/material"; | ||
import React from "react"; | ||
|
||
import AboutChildPageHeader from "@/codeforafrica/components/AboutChildPageHeader"; | ||
import ConnectBar from "@/codeforafrica/components/ConnectBar"; | ||
import RelatedProjects from "@/codeforafrica/components/RelatedProjects"; | ||
import RichText from "@/codeforafrica/components/RichText"; | ||
import SectionDivider from "@/codeforafrica/components/SectionDivider"; | ||
|
||
const Partner = React.forwardRef(function Partner( | ||
{ description, connect, relatedProjects, relatedProjectsTitle, name, logo }, | ||
ref, | ||
) { | ||
return ( | ||
<Box ref={ref} sx={{ pb: { xs: 10, md: 7 } }}> | ||
<AboutChildPageHeader | ||
name={name} | ||
image={logo} | ||
FigureProps={{ | ||
sx: { | ||
backgroundPositionY: "center", | ||
backgroundRepeat: "no-repeat", | ||
backgroundSize: "contain", | ||
bgcolor: "background.default", | ||
borderRadius: 0, | ||
filter: "drop-shadow(0px 8.7px 17.4px rgba(0, 0, 0, 0.1))", | ||
height: { xs: 116 }, | ||
width: { xs: 247 }, | ||
}, | ||
}} | ||
/> | ||
<Section | ||
sx={{ | ||
px: { xs: 2.5, sm: 0 }, | ||
pt: { xs: 2.5, md: 7 }, | ||
maxWidth: { | ||
sm: "648px", | ||
md: "912px", | ||
}, | ||
}} | ||
> | ||
<RichText | ||
variant="subheading" | ||
component="p" | ||
sx={{ | ||
mb: 5, | ||
typography: "subheading", | ||
"& > p": { | ||
mb: 5, | ||
}, | ||
}} | ||
elements={description} | ||
/> | ||
|
||
<ConnectBar title="Connect" links={connect} /> | ||
</Section> | ||
{relatedProjects?.length ? ( | ||
<> | ||
<SectionDivider | ||
sx={{ | ||
maxWidth: { | ||
sm: "648px", | ||
md: "912px", | ||
}, | ||
px: { xs: 2.5, sm: 0 }, | ||
py: { xs: "30px", md: 5 }, | ||
}} | ||
/> | ||
<RelatedProjects | ||
sx={{ | ||
maxWidth: { | ||
sm: "648px", | ||
md: "912px", | ||
}, | ||
pt: 0, | ||
}} | ||
tileListProps={{ fixed: true }} | ||
titleProps={{ sx: { mb: { xs: "30px", md: 5 } } }} | ||
title={relatedProjectsTitle} | ||
projects={relatedProjects} | ||
/> | ||
</> | ||
) : null} | ||
</Box> | ||
); | ||
}); | ||
|
||
export default Partner; |
Oops, something went wrong.