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

Home page updates #636

Merged
merged 16 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/components/Advantages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from './styles.module.less';

type AdvantagesProps = {
icon: ReactNode;
icon?: ReactNode;
image?: ReactNode;
title: ReactNode;
subtitle?: string;
Expand Down Expand Up @@ -44,7 +44,9 @@ const Advantages = ({
isReverseColumnOnMobile={isReverseColumnOnMobile}
>
<div className={clsx(leftColumn, isDarkTheme ? darkTheme : null)}>
<div className={iconWrapper}>{icon}</div>
{icon && !isDarkTheme ? (
<div className={iconWrapper}>{icon}</div>
) : null}
<h2>{title}</h2>
{subtitle ? <p>{subtitle}</p> : null}
{advantages ? (
Expand Down
44 changes: 20 additions & 24 deletions src/components/DeploymentOptions/DeploymentOptionDiagram/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
privateDeploymentTag,
metadataOnlyDarkerBlueTag,
relativePosition,
privateDeploymentVpcBox,
ownedByEstuaryBox,
} from './styles.module.less';

const iconSize = 30;
Expand Down Expand Up @@ -86,22 +86,28 @@ const DeploymentOptionDiagram = ({
: 'Customer Cloud & Region'}
</span>
<div className={horizontalWrapper}>
{deploymentOption === 'private' ? (
{['private', 'byoc'].includes(deploymentOption) ? (
<div
className={clsx(
solidBorderBox,
secondLevelSolidBorderBox
)}
>
<VpcIcon width={iconSize} />
<span
<div
className={clsx(
privateDeploymentVpcBox,
vpcMarginBottom
dashedBorderBox,
ownedByEstuaryBox
)}
>
Private Deployment VPC
</span>
<span>
Owned by <br />{' '}
{deploymentOption === 'private'
? 'Estuary'
: 'Customer'}
</span>
</div>
<VpcIcon width={iconSize} />
<span>Private Deployment VPC</span>
<div className={dashedBorderBox}>
<PrivateDataPlaneIcon width={iconSize} />
<span>Private Data Plane</span>
Expand All @@ -117,22 +123,16 @@ const DeploymentOptionDiagram = ({
<VpcIcon width={iconSize} />
<span
className={
deploymentOption === 'private'
['private', 'byoc'].includes(
deploymentOption
)
? vpcMarginBottom
: null
}
>
Customer VPC
</span>
<div className={horizontalWrapper}>
{deploymentOption === 'byoc' ? (
<div className={dashedBorderBox}>
<PrivateDataPlaneIcon
width={iconSize}
/>
<span>Private Data Plane</span>
</div>
) : null}
<div
className={clsx(
solidBorderBox,
Expand All @@ -150,18 +150,14 @@ const DeploymentOptionDiagram = ({
</div>
</div>
</div>
{['public', 'byoc'].includes(deploymentOption) ? (
{deploymentOption === 'public' ? (
<div className={middleTag}>
<div className={clsx(tagArrow, tagArrowLeft)} />
<span>
{deploymentOption === 'public'
? 'Internet'
: 'metadata only'}
</span>
<span>Internet</span>
<div className={clsx(tagArrow, tagArrowRight)} />
</div>
) : null}
{deploymentOption === 'private' ? (
{['private', 'byoc'].includes(deploymentOption) ? (
<>
<div
className={clsx(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
}

@media (max-width: 600px) {
gap: 10px;
padding: 10px;
}

@media (max-width: 450px) {
gap: 6px;
padding: 6px;
}
Expand Down Expand Up @@ -78,11 +73,6 @@
height: 100%;

@media (max-width: 600px) {
gap: 10px;
padding: 10px;
}

@media (max-width: 450px) {
gap: 6px;
padding: 6px;
}
Expand All @@ -101,7 +91,7 @@
.middleTag {
position: absolute;
top: 46%;
left: -55%;
left: -50%;
text-align: center;
display: flex;
align-items: center;
Expand Down Expand Up @@ -163,10 +153,6 @@
gap: 16px;

@media (max-width: 600px) {
gap: 10px;
}

@media (max-width: 450px) {
gap: 6px;
}
}
Expand All @@ -180,11 +166,12 @@
}

.privateLinkTag {
top: 41%;
left: -2%;
top: 39%;
left: 6%;

@media (max-width: 600px) {
top: 44.5%;
top: 42%;
left: 10%;
}
}

Expand All @@ -197,7 +184,7 @@
}

.metadataOnlyDarkerBlueTag {
top: 85%;
top: 70%;

span {
background-color: @secondaryTagColor;
Expand All @@ -212,6 +199,9 @@
}

@media (max-width: 600px) {
left: -60%;
top: 89%;

span {
min-width: 80px;
}
Expand All @@ -222,10 +212,12 @@
position: relative;
}

.privateDeploymentVpcBox {
margin-bottom: 26px;
.ownedByEstuaryBox {
border-radius: 100px;
height: fit-content;
padding: 8px;

@media (max-width: 600px) {
margin-bottom: 25px;
@media (min-width: 601px) {
min-width: 100px;
}
}
}
8 changes: 7 additions & 1 deletion src/components/DeploymentOptions/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
}
}

@media (max-width: 1280px) and (min-width: 1025px) {
> :nth-child(1) {
max-width: 60%;
}
}

@media (max-width: 1024px) {
h2 {
font-size: 2.25rem;
Expand All @@ -40,4 +46,4 @@
max-width: 220px;
margin-top: 16px;
}
}
}
5 changes: 3 additions & 2 deletions src/components/DeploymentOptionsPage/ByocDeployment/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import clsx from 'clsx';
import { defaultWrapperGrey } from '../../../globalStyles/wrappers.module.less';
import DeploymentOptionDetails from '../../DeploymentOptions/DeploymentOptionDetails';
import { features } from '../shared';
import { container } from '../styles.module.less';
import { container, adaptedContainer } from '../styles.module.less';
import DeploymentOptionDiagram from '../../DeploymentOptions/DeploymentOptionDiagram';
import Container from '../../Container';

const ByocDeployment = () => {
return (
<section className={defaultWrapperGrey}>
<Container className={container}>
<Container className={clsx(container, adaptedContainer)}>
<DeploymentOptionDiagram deploymentOption="byoc" />
<DeploymentOptionDetails
title="BRING YOUR OWN CLOUD"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import clsx from 'clsx';
import { defaultWrapperDark } from '../../../globalStyles/wrappers.module.less';
import DeploymentOptionDetails from '../../DeploymentOptions/DeploymentOptionDetails';
import { features } from '../shared';
import { container } from '../styles.module.less';
import { container, reverseAdaptedContainer } from '../styles.module.less';
import DeploymentOptionDiagram from '../../DeploymentOptions/DeploymentOptionDiagram';
import Container from '../../Container';

const PrivateDeployment = () => {
return (
<section className={defaultWrapperDark}>
<Container isReverseColumnOnMobile className={container}>
<Container
isReverseColumnOnMobile
className={clsx(container, reverseAdaptedContainer)}
>
<DeploymentOptionDetails
title="PRIVATE DEPLOYMENT"
description="Private Deployment allows customers to run Estuary Flow's data infrastructure within their private environment while maintaining the simplicity of a SaaS platform. Suitable for enterprises and organizations with strict data security and compliance needs, such as those in highly regulated industries or handling sensitive data."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import clsx from 'clsx';
import { defaultWrapperGrey } from '../../../globalStyles/wrappers.module.less';
import DeploymentOptionDetails from '../../DeploymentOptions/DeploymentOptionDetails';
import { features } from '../shared';
import { container } from '../styles.module.less';
import { container, adaptedContainer } from '../styles.module.less';
import DeploymentOptionDiagram from '../../DeploymentOptions/DeploymentOptionDiagram';
import Container from '../../Container';

const PublicDeployment = () => {
return (
<section className={defaultWrapperGrey}>
<Container className={container}>
<Container className={clsx(container, adaptedContainer)}>
<DeploymentOptionDiagram deploymentOption="public" />
<DeploymentOptionDetails
title="PUBLIC DEPLOYMENT"
Expand Down
16 changes: 16 additions & 0 deletions src/components/DeploymentOptionsPage/styles.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,19 @@
}
}
}

.adaptedContainer {
@media (max-width: 1280px) and (min-width: 1025px) {
> :nth-child(1) {
max-width: 60%;
}
}
}

.reverseAdaptedContainer {
@media (max-width: 1280px) and (min-width: 1025px) {
> :nth-child(2) {
max-width: 60%;
}
}
}
16 changes: 6 additions & 10 deletions src/components/HeaderNavbar/Resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,28 +107,24 @@ const HeaderNavbarResources = ({ active, setActive }) => {
<CardItem title="READ" items={read} onlyContent />
<CardItem title="LISTEN" items={listen} onlyContent />
</div>
<CardItem
className={hideOnMobile}
title="TOURS"
onlyContent
>
<Carousel aria-label="Tours carousel" hasFullWidthSlide>
<div key="header-carousel-tour-1" className={slide}>
<CardItem className={hideOnMobile} title="DEMO" onlyContent>
<Carousel aria-label="Demos carousel" hasFullWidthSlide>
<div key="header-carousel-demo-1" className={slide}>
<div className={imageWrapper}>
<StaticImage
src="../../../images/product-tour-2min.png"
alt="Estuary Flow Product tour - 2 minutes"
alt="Estuary Flow Product demo"
/>
</div>
<LinkOutlined
target="_blank"
href="/demo/"
fullWidth
>
Watch Product Tour (2 min)
Watch Interactive Demo
</LinkOutlined>
</div>
<div key="header-carousel-tour-2" className={slide}>
<div key="header-carousel-demo-2" className={slide}>
<div className={imageWrapper}>
<StaticImage
src="../../../images/real-time-101-30min.png"
Expand Down
4 changes: 2 additions & 2 deletions src/components/HeaderNavbar/Resources/items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export const listen = [
},
];

export const tours = [
export const demo = [
{
name: 'Product Tour [2 min]',
name: 'Watch Interactive Demo',
to: '/demo/',
},
{
Expand Down
9 changes: 0 additions & 9 deletions src/components/HeaderNavbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Link } from 'gatsby';
import { useCallback } from 'react';
import { globalHeaderLink } from '../styles.module.less';
import OutboundLink from '../LinksAndButtons/OutboundLink';
import LinkProduct from './Product';
import LinkResources from './Resources';
import { globalHeaderLinks } from './styles.module.less';
Expand Down Expand Up @@ -33,14 +32,6 @@ const HeaderNavbar = ({ activeMenu, setActiveMenu }) => {
active={activeMenu === 'resources'}
setActive={setActiveMenu}
/>
<OutboundLink
target="_blank"
className={globalHeaderLink}
href="https://docs.estuary.dev"
onMouseEnter={closeMenus}
>
Docs
</OutboundLink>
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/HeroSectionActions/RegisterCta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import OutboundLinkFilled from '../LinksAndButtons/OutboundLinkFilled';
function RegisterCta() {
return (
<OutboundLinkFilled href={dashboardRegisterUrl} target="_blank">
Build a Pipeline
Start Building For Free
</OutboundLinkFilled>
);
}
Expand Down
Loading
Loading