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

chore: merge to prod #2436

Merged
merged 9 commits into from
Apr 16, 2024
178 changes: 92 additions & 86 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"markdown-it": "^13.0.2",
"markdown-to-jsx": "^7.3.2",
"material-ui-phone-number": "^3.0.0",
"next": "^14.0.4",
"next": "^14.1.4",
"notistack": "^3.0.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const Hero = ({
</>
)}


<Stack
sx={{
display: 'flex',
Expand All @@ -126,7 +127,7 @@ const Hero = ({
{cta_left || FillerContent.cta}
</Button>
) : (
<TryFreeButton
cta_left && <TryFreeButton
text={cta_left}
variant="contained"
size="large"
Expand Down
3 changes: 2 additions & 1 deletion src/components/accounts/ui/select/AccountsComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const StyledPopper = styled(Popper)({

const filterOptions = createFilterOptions({
matchFrom: 'any',
stringify: (option) => option.name + option.value,
stringify: (option) => option.name + option.value + option.id,
});

const Index = ({
Expand All @@ -161,6 +161,7 @@ const Index = ({
return {
name: e.name,
value: e.ZUID,
id: e.ID,
};
});

Expand Down
1 change: 1 addition & 0 deletions src/components/console/AccountsAppbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const AccountsAppbar = ({ colorInvert = false }) => {
if (isDocsPage) {
return <></>;
}

return (
<Box
width={1}
Expand Down
2 changes: 1 addition & 1 deletion src/components/cta/TryFreeButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Icon from '@mui/material/Icon';
import CodeBlock from './CodeBlock';

export default function TryFreeButton({
text = 'Request Demo',
text = '',
target = 'blank',
fullWidth = false,
component = 'button',
Expand Down
52 changes: 52 additions & 0 deletions src/components/globals/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,39 @@ export const flyoutNavigation = [
model: 'sub_nav2022',
totalItems: 3,
data: [
{
nav_item_name: 'Drag and Drop Page Designer',
page_link: {
type: 'relationship',
model: 'freestyle',
totalItems: 1,
data: [{}],
},
external_link_if_needed: '/freestyle',
parent_nav_item: {
type: 'relationship',
model: 'sub_nav2022',
totalItems: 1,
data: [
{
message: 'max hydration depth hit',
},
],
},
icon_image: {
type: 'images',
totalItems: 1,
data: [
{
type: 'image',
zuid: '3-11748308-nvd2g3',
url: 'https://kfg6bckb.media.zestyio.com/website-design.png',
},
],
},
sort_order: '0',
main_or_blue_secondary_item: '1',
},
{
nav_item_name: 'SEO',
page_link: {
Expand Down Expand Up @@ -2248,6 +2281,11 @@ export const flyoutNavigation = [
],
},
related_articles: null,
meta: {
web: {
uri: '/mindshare/customer-stories/rocket-league-launches-e-sports-site-celebrating-players-and-tournaments/',
},
},
},
],
},
Expand Down Expand Up @@ -2383,6 +2421,11 @@ export const flyoutNavigation = [
],
},
related_articles: null,
meta: {
web: {
uri: '/mindshare/customer-stories/cornershop-by-uber-selects-zesty-io-to-drive-global-expansion-effort/',
},
},
},
],
},
Expand Down Expand Up @@ -11405,6 +11448,15 @@ export const navigationCustom = [
zuid: '7-cc809dacb1-hxjshj',
children: [],
},
{
external: false,
parentZUID: null,
sort: '1',
url: '/freestyle/',
title: 'Freestyle',
zuid: '7-d0c28d93ea-vqbq8j',
children: [],
},
{
external: false,
parentZUID: '7-bca0ada1df-1k1b7g',
Expand Down
38 changes: 38 additions & 0 deletions src/components/marketing/Freestyle/FAQs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from 'react';
import Box from '@mui/material/Box';
import Grid from '@mui/material/Grid';
import Typography from '@mui/material/Typography';
import Container from 'components/Container';

const FAQs = ({ faqsData }) => {
return (
<Container>
<Box sx={{ px: 4 }}>
<Box marginBottom={4}>
<Typography fontWeight={700} variant={'h4'} align={'center'}>
Frequently asked questions
</Typography>
</Box>
{faqsData.length > 0 && (
<Grid container spacing={4}>
{faqsData.map((item, i) => (
<Grid key={i} item xs={12} sm={6} md={4}>
<Typography variant={'h6'} fontWeight={600} gutterBottom>
{item.question}
</Typography>
<Box
color="text.secondary"
dangerouslySetInnerHTML={{
__html: item.answer,
}}
></Box>
</Grid>
))}
</Grid>
)}
</Box>
</Container>
);
};

export default FAQs;
171 changes: 171 additions & 0 deletions src/components/marketing/Freestyle/Hero.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
import { Box, Button, Grid, Stack, Typography } from '@mui/material';
import useMediaQuery from '@mui/material/useMediaQuery';
import { useTheme } from '@mui/material/styles';
import MuiMarkdown from 'markdown-to-jsx';
import CheckRoundedIcon from '@mui/icons-material/CheckRounded';
import { useEffect, useState } from 'react';

const Hero = ({
overline = '',
description,
heroImage = 'https://kfg6bckb.media.zestyio.com/Hero-Image-2.webp',
primaryCta = 'Talk to Us',
primaryCtaLink = '/demo?ab=light',
secondaryCtaText,
secondaryCtaLink,
}) => {
const theme = useTheme();
const isLg = useMediaQuery(theme.breakpoints.up('lg'), {
defaultMatches: true,
});

const [heroList, setHeroList] = useState([]);

useEffect(() => {
const regex = /<li>(.*?)<\/li>/g;
const liTextArray = [];

// Use a loop to iterate through matches and extract the li text content
let match;
while ((match = regex.exec(description)) !== null) {
liTextArray.push(match[1]);
}

setHeroList([...liTextArray]);
}, []);

return (
<Box
sx={{
position: 'relative',
overflow: 'hidden',
display: 'flex',
justifyContent: 'center',
}}
>
<Grid
container
px={{ xs: 2, tablet: 4, lg: 14 }}
spacing={{ lg: 8 }}
position="relative"
maxWidth={1500}
>
<Grid
item
xs={12}
lg={6}
mb={4}
sx={(theme) => ({
[theme.breakpoints.up('xl')]: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
})}
>
<Stack py={{ lg: '92px' }}>
<Typography
color="primary"
variant="overline"
sx={{ fontWeight: '600', fontSize: '14px' }}
>
{overline}
</Typography>
<Stack mb={4}>
<MuiMarkdown
options={{
overrides: {
h1: {
component: Typography,
props: {
fontSize: '44px',
lineHeight: '48px',
letterSpacing: '-0.02em',
fontWeight: '800',
color: 'text.primary',
},
},
p: {
component: Typography,
props: {
fontSize: '18px',
lineHeight: '28px',
color: 'text.secondary',
mt: '20px',
},
},
li: {
props: {
style: {
display: 'none',
},
},
},
},
}}
>
{description}
</MuiMarkdown>

<Stack rowGap="8px" mt={2}>
{heroList?.length !== 0 &&
heroList.map((item, index) => {
return (
<Stack key={index} direction="row" columnGap="12px">
<CheckRoundedIcon color="primary" />
<Typography fontWeight={400} color="text.secondary">
{item}
</Typography>
</Stack>
);
})}
</Stack>
</Stack>

<Stack
spacing="12px"
mb={4}
direction={{
xs: 'column',
tablet: 'row',
}}
>
<Button
href={primaryCtaLink}
variant="contained"
color="primary"
size={isLg ? 'extraLarge' : 'large'}
title={primaryCta}
>
Get Started
</Button>
{secondaryCtaText && (
<Button
href={secondaryCtaLink}
variant="outlined"
color="primary"
size={isLg ? 'extraLarge' : 'large'}
title={secondaryCtaText}
>
{secondaryCtaText}
</Button>
)}
</Stack>
</Stack>
</Grid>
<Grid item xs={12} lg={6} sx={{ position: 'relative', zIndex: 1 }}>
<img
loading="eager"
src={heroImage}
width="100%"
height="100%"
alt="Zesty Image"
style={{ objectFit: 'contain ' }}
/>
</Grid>
</Grid>
</Box>
);
};

export default Hero;
Loading
Loading