diff --git a/src/components/cta/TryFreeButton.js b/src/components/cta/TryFreeButton.js
index 27a62fabf..fb029a330 100644
--- a/src/components/cta/TryFreeButton.js
+++ b/src/components/cta/TryFreeButton.js
@@ -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',
diff --git a/src/layouts/Main/MarketingMain.js b/src/layouts/Main/MarketingMain.js
index a7c00b14d..b30d58662 100644
--- a/src/layouts/Main/MarketingMain.js
+++ b/src/layouts/Main/MarketingMain.js
@@ -19,6 +19,7 @@ import { Topbar } from './components';
import dynamic from 'next/dynamic';
import revampTheme from 'theme/revampTheme';
+import useFetch from 'components/hooks/useFetch';
const Footer = dynamic(() => import('./components/Footer/FooterDynamic'));
const Sidebar = dynamic(() => import('./components').then((e) => e.Sidebar));
@@ -99,6 +100,8 @@ const MarketingMain = ({
}
}, [userInfo]);
+ const data = useFetch('/-/demo-cta.json');
+
return (
<>
{isLoggedIn === false && !isLoginPage && }
@@ -163,6 +166,7 @@ const MarketingMain = ({
isAuthenticated={isLoggedIn}
userInfo={userInfo?.data}
loading={loading}
+ cta={data?.data?.demo_cta}
/>
diff --git a/src/layouts/Main/components/Topbar/Topbar.js b/src/layouts/Main/components/Topbar/Topbar.js
index ce4f88aa5..ec7e0cae9 100644
--- a/src/layouts/Main/components/Topbar/Topbar.js
+++ b/src/layouts/Main/components/Topbar/Topbar.js
@@ -35,6 +35,7 @@ const Topbar = ({
userInfo = {},
loading = false,
flyoutNavigation: data = [],
+ cta,
}) => {
const theme = useTheme();
const { mode } = theme.palette;
@@ -167,7 +168,7 @@ const Topbar = ({
{
+function Demo({ content }) {
const theme = useTheme();
- const cardData = content?.dynamic_contact_page?.data;
+ const getDemoSectionProps = {
+ title: content?.demo_section_title,
+ supportingText: content?.demo_section_supportingtext,
+ formTitle: content?.demo_section_formtitle,
+ cta: content?.cta_button_text,
+ id: '#demo-cta',
+ };
+
return (
revampTheme(theme.palette.mode)}>
-
- {/* */}
+
);
-};
+}
export default Demo;
-
-function EngageTypeCards({ cardData }) {
- const theme = useTheme();
- return (
-
-
-
- How would you like to engage?
-
-
-
-
- {cardData?.map((item) => {
- return (
-
- pushDataLayer({
- buttonText: item?.button_text || '',
- targetPage: item.button_link || '#',
- })
- }
- href={item.button_link || '#'}
- sx={{ textDecoration: 'none' }}
- item
- xs={12}
- sm={4}
- >
- ({
- '&:hover': {
- background:
- theme.palette.mode === 'light'
- ? theme.palette.grey[200]
- : theme.palette.grey[800],
- },
- })}
- borderRadius="8px"
- >
-
-
-
- {item?.title || ''}
-
-
-
-
-
-
-
- {item?.description || ''}
-
-
-
-
-
-
-
-
- );
- })}
-
-
-
-
-
-
-
-
-
-
-
- );
-}