Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add security certificates section on the homepage #541

Merged
21 changes: 19 additions & 2 deletions src/components/BackgroundImages/BackgroundWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
import React from 'react';
import clsx from 'clsx';
import { sectionTopBottomPadding } from '../../globalStyles/wrappers.module.less';
import { wrapper } from './styles.module.less';

interface BackgroundWrapperProps {
children: React.ReactNode;
isSection?: boolean;
}

const BackgroundWrapper = ({ children }: BackgroundWrapperProps) => {
return <div className={wrapper}>{children}</div>;
const BackgroundWrapper = ({
children,
isSection = false,
}: BackgroundWrapperProps) => {
const HtmlElementTag = isSection ? 'section' : 'div';

return (
<HtmlElementTag
className={clsx(
wrapper,
isSection ? sectionTopBottomPadding : null
)}
>
{children}
</HtmlElementTag>
);
};

export default BackgroundWrapper;
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const DarkSwoopingLinesLeftDirectionBackground = ({
className,
}: React.HTMLAttributes<HTMLDivElement>) => {
return (
<BackgroundWrapper>
<BackgroundWrapper isSection>
<StaticImage
alt=""
src="../../images/overlay-vector-left.png"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const LightSwoopingLinesRightDirectionBackground = ({
className,
}: React.HTMLAttributes<HTMLDivElement>) => {
return (
<BackgroundWrapper>
<BackgroundWrapper isSection>
<StaticImage
alt=""
src="../../images/swooping-lines-to-the-right.png"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Wrapper,
} from './styles';

const SectionSeven = () => {
const AutomateDataops = () => {
travjenkins marked this conversation as resolved.
Show resolved Hide resolved
return (
<Container>
<Wrapper>
Expand Down Expand Up @@ -48,4 +48,4 @@ const SectionSeven = () => {
);
};

export default SectionSeven;
export default AutomateDataops;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DarkSwoopingLinesLeftDirectionBackground from '../../BackgroundImages/Dar
import FlowDemoVideo from '../../FlowDemoVideo';
import { Description, Title, Wrapper } from './styles';

const SectionSix = () => {
const BuildInMinutes = () => {
return (
<DarkSwoopingLinesLeftDirectionBackground>
<Wrapper>
Expand All @@ -21,4 +21,4 @@ const SectionSix = () => {
);
};

export default SectionSix;
export default BuildInMinutes;
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import styled from 'styled-components';
import { globalMaxWidth, sectionTopBottomPadding } from '../../../globalStyles';
import { globalMaxWidth } from '../../../globalStyles';

export const Wrapper = styled.div`
${globalMaxWidth}
${sectionTopBottomPadding}

display: flex;
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Cards, SectionTitle, Wrapper } from './styles';

const cardsPerSlide = 3;

const SectionThree = () => {
const CaseStudies = () => {
const {
allStrapiCaseStudy: { nodes: allCaseStudies },
} = useStaticQuery(graphql`
Expand Down Expand Up @@ -81,4 +81,4 @@ const SectionThree = () => {
);
};

export default SectionThree;
export default CaseStudies;
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import styled from 'styled-components';
import {
LinkOutlined,
globalMaxWidth,
sectionTopBottomPadding,
} from '../../../globalStyles';
import { LinkOutlined, globalMaxWidth } from '../../../globalStyles';

export const Wrapper = styled.div`
${globalMaxWidth}
${sectionTopBottomPadding}

display: flex;
flex-direction: column;
Expand Down
travjenkins marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Wrapper,
} from './styles';

const SectionNine = () => {
const Do4xMoreWith25xLess = () => {
return (
<Container>
<Wrapper>
Expand All @@ -26,8 +26,8 @@ const SectionNine = () => {
<span>WITH 2-5X LESS</span>
</Title>
<Description>
Estuary customers arent just benefitting from being
more real-time. They are 4x more productive. They
Estuary customers aren&apos;t just benefitting from
being more real-time. They are 4x more productive. They
deliver new projects in days, not months. And they spend
2-5x less on Estuary than on batch ELT.
</Description>
Expand All @@ -43,4 +43,4 @@ const SectionNine = () => {
);
};

export default SectionNine;
export default Do4xMoreWith25xLess;
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {

const metricIconColor = '#FFFFFF';

const SectionOne = () => {
const Hero = () => {
return (
<Container>
<MainContent>
Expand Down Expand Up @@ -84,4 +84,4 @@ const SectionOne = () => {
);
};

export default SectionOne;
export default Hero;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DarkSwoopingLinesLeftDirectionBackground from '../../BackgroundImages/Dar
import MainConnectors from '../../MainConnectors';
import { Description, Title, Wrapper } from './styles';

const SectionEight = () => {
const InnovateFaster = () => {
return (
<DarkSwoopingLinesLeftDirectionBackground>
<Wrapper>
Expand All @@ -20,4 +20,4 @@ const SectionEight = () => {
);
};

export default SectionEight;
export default InnovateFaster;
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import styled from 'styled-components';
import { globalMaxWidth, sectionTopBottomPadding } from '../../../globalStyles';
import { globalMaxWidth } from '../../../globalStyles';

export const Wrapper = styled.div`
${globalMaxWidth}
${sectionTopBottomPadding}

padding-right: 0;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
Title,
} from './styles';

const SectionTwo = () => {
const MoveAndTransform = () => {
return (
<Container>
<Header>
Expand Down Expand Up @@ -109,4 +109,4 @@ const SectionTwo = () => {
);
};

export default SectionTwo;
export default MoveAndTransform;
13 changes: 0 additions & 13 deletions src/components/Homepage/SectionFour/index.tsx

This file was deleted.

13 changes: 13 additions & 0 deletions src/components/Homepage/SecureYourData/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import SecurityCertificates from '../../SecuriityCertificates';
import DarkSwoopingLinesLeftDirectionBackground from '../../BackgroundImages/DarkSwoopingLinesLeftDirectionBackground';

const SecureYourData = () => {
return (
<DarkSwoopingLinesLeftDirectionBackground>
<SecurityCertificates isDarkTheme />
</DarkSwoopingLinesLeftDirectionBackground>
);
};

export default SecureYourData;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { dashboardRegisterUrl, webinarsUrl } from '../../../../shared';
import { OutboundLinkOutlined } from '../../OutboundLink';
import { ButtonFilled, Buttons, HubspotButton, Title, Wrapper } from './styles';

const SectionEleven = () => {
const SeeHow = () => {
return (
<Wrapper>
<Title>
Expand All @@ -25,4 +25,4 @@ const SectionEleven = () => {
);
};

export default SectionEleven;
export default SeeHow;
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Wrapper,
} from './styles';

const SectionFive = () => {
const UseTheBestRealTimeCdc = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are using react we should probably not start a component with use.

return (
<Container>
<Wrapper>
Expand Down Expand Up @@ -56,4 +56,4 @@ const SectionFive = () => {
);
};

export default SectionFive;
export default UseTheBestRealTimeCdc;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DarkSwoopingLinesLeftDirectionBackground from '../../BackgroundImages/Dar
import TestimonialsCarousel from '../../TestimonialsCarousel';
import { Wrapper } from './styles';

const SectionTen = () => {
const WhatPeopleAreSaying = () => {
return (
<DarkSwoopingLinesLeftDirectionBackground>
<Wrapper>
Expand All @@ -14,4 +14,4 @@ const SectionTen = () => {
);
};

export default SectionTen;
export default WhatPeopleAreSaying;
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import styled from 'styled-components';
import { globalMaxWidth, sectionTopBottomPadding } from '../../../globalStyles';
import { globalMaxWidth } from '../../../globalStyles';

export const Wrapper = styled.div`
${globalMaxWidth}
${sectionTopBottomPadding}

h2 {
font-size: 2.5rem;
Expand Down
7 changes: 6 additions & 1 deletion src/components/SecuriityCertificates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { StaticImage } from 'gatsby-plugin-image';
import Advantages from '../Advantages';
import { sectionTenAdvantages } from '../Product/advantages';

const SecurityCertificates = () => {
interface SecurityCertificatesProps {
isDarkTheme?: boolean;
}

const SecurityCertificates = ({ isDarkTheme }: SecurityCertificatesProps) => {
return (
<Advantages
icon={
Expand All @@ -28,6 +32,7 @@ const SecurityCertificates = () => {
/>
}
advantages={sectionTenAdvantages}
isDarkTheme={isDarkTheme}
/>
);
};
Expand Down
44 changes: 22 additions & 22 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@ import * as React from 'react';
import { graphql, useStaticQuery } from 'gatsby';
import Layout from '../components/Layout';
import Seo from '../components/seo';
import SectionOne from '../components/Homepage/SectionOne';
import SectionTwo from '../components/Homepage/SectionTwo';
import SectionThree from '../components/Homepage/SectionThree';
import SectionFour from '../components/Homepage/SectionFour';
import SectionFive from '../components/Homepage/SectionFive';
import SectionSix from '../components/Homepage/SectionSix';
import SectionSeven from '../components/Homepage/SectionSeven';
import SectionEight from '../components/Homepage/SectionEight';
import SectionNine from '../components/Homepage/SectionNine';
import SectionTen from '../components/Homepage/SectionTen';
import SectionEleven from '../components/Homepage/SectionEleven';
import Hero from '../components/Homepage/Hero';
import MoveAndTransform from '../components/Homepage/MoveAndTransform';
import CaseStudies from '../components/Homepage/CaseStudies';
import SecureYourData from '../components/Homepage/SecureYourData';
import UseTheBestRealTimeCdc from '../components/Homepage/UseTheBestRealTimeCdc';
import BuildInMinutes from '../components/Homepage/BuildInMinutes';
import AutomateDataops from '../components/Homepage/AutomateDataops';
import InnovateFaster from '../components/Homepage/InnovateFaster';
import Do4xMoreWith25xLess from '../components/Homepage/Do4xMoreWith25xLess';
import WhatPeopleAreSaying from '../components/Homepage/WhatPeopleAreSaying';
import SeeHow from '../components/Homepage/SeeHow';

const IndexPage = () => {
return (
<Layout>
<SectionOne />
<SectionTwo />
<SectionThree />
<SectionFour />
<SectionFive />
<SectionSix />
<SectionSeven />
<SectionEight />
<SectionNine />
<SectionTen />
<SectionEleven />
<Hero />
<MoveAndTransform />
<CaseStudies />
<SecureYourData />
<UseTheBestRealTimeCdc />
<BuildInMinutes />
<AutomateDataops />
<InnovateFaster />
<Do4xMoreWith25xLess />
<WhatPeopleAreSaying />
<SeeHow />
</Layout>
);
};
Expand Down
1 change: 0 additions & 1 deletion src/templates/author/SectionOne/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

.container {
.globalMaxWidth;
.sectionTopBottomPadding;

display: flex;
gap: 60px;
Expand Down
1 change: 0 additions & 1 deletion src/templates/blog-post/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@

.blogPostHeaderWrapper {
.globalMaxWidth;
.sectionTopBottomPadding;

display: flex;
flex-direction: row;
Expand Down
3 changes: 1 addition & 2 deletions src/templates/connector/Hero/styles.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import styled, { CSSProperties } from 'styled-components';

import { ConnectorType } from '../../../../shared';
import { globalMaxWidth, sectionTopBottomPadding } from '../../../globalStyles';
import { globalMaxWidth } from '../../../globalStyles';

export const Container = styled.div`
${globalMaxWidth}
${sectionTopBottomPadding};

display: flex;
flex-direction: column;
Expand Down
Loading