Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
feat: add Zego case study
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed Feb 3, 2023
1 parent 0a9a46d commit eeaf1a9
Show file tree
Hide file tree
Showing 4 changed files with 884 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ jobs:
# DEPLOY #
###############################################################################
deploy:
needs: [testcafe, e2e-lambda, stylelint, eslint, test]
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const configs = {
options: {
spaceId: CONTENTFUL_SPACE,
accessToken: CONTENTFUL_TOKEN,
environment: 'master',
environment: 'zego',
},
},
'gatsby-source-lever': {
Expand Down
26 changes: 18 additions & 8 deletions src/components/Common/CaseStudyCards/CaseStudyBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,24 @@ const TextAndImageBlock = ({
colWidthTwo = [1, 1, 1, 1, 1 / 2],
middleColWidth = null,
colorReverse = false,
}) => (
<>
<Col width={colWidthOne}>{renderText({ text, colorReverse })}</Col>
{text && image && <StyledBreakpointMobilePadding width={[1]} />}
{middleColWidth && <Col width={middleColWidth} />}
<Col width={colWidthTwo}>{renderImage(image)}</Col>
</>
);
reverseOrder = false,
}) => {
const imgEl = renderImage(image);
const txtEl = renderText({ text, colorReverse });

return (
<>
<Col width={reverseOrder ? colWidthTwo : colWidthOne}>
{reverseOrder ? imgEl : txtEl}
</Col>
{text && image && <StyledBreakpointMobilePadding width={[1]} />}
{middleColWidth && <Col width={middleColWidth} />}
<Col width={reverseOrder ? colWidthOne : colWidthTwo}>
{reverseOrder ? txtEl : imgEl}
</Col>
</>
);
};

const TextAndResizedImageBlock = ({ data: { text, image } }) => (
<>
Expand Down
Loading

0 comments on commit eeaf1a9

Please sign in to comment.