diff --git a/.vscode/settings.json b/.vscode/settings.json
index 5f21e24fb..278c412c5 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -4,5 +4,5 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.format": "never"
- }
+ },
}
diff --git a/next.config.js b/next.config.js
index 77288aee4..4c398e613 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,4 +1,5 @@
const zestyConfig = require('./zesty.config.json');
+const { docsRedirects } = require('./src/config/redirects');
module.exports = {
trailingSlash: true,
@@ -14,4 +15,8 @@ module.exports = {
],
},
swcMinify: true,
+
+ async redirects() {
+ return [...docsRedirects];
+ },
};
diff --git a/src/components/accounts/dashboard/ui/ZInstancesContainer.js b/src/components/accounts/dashboard/ui/ZInstancesContainer.js
index 48f358685..63ec39ff3 100644
--- a/src/components/accounts/dashboard/ui/ZInstancesContainer.js
+++ b/src/components/accounts/dashboard/ui/ZInstancesContainer.js
@@ -12,11 +12,9 @@ const ZInstancesContainer = ({
}) => {
const dayTime = () => {
const hour = new Date().getHours();
- if (hour >= 5 && hour <= 12) return 'Good Morning, ';
+ if (hour >= 0 && hour <= 12) return 'Good Morning, ';
else if (hour > 12 && hour <= 17) return 'Good Afternoon, ';
- else if (hour > 17 && hour <= 21) return 'Good Evening, ';
- else if ((hour > 21 && hour <= 23) || (hour >= 0 && hour <= 4))
- return 'Good Night, ';
+ else if (hour > 17 && hour <= 23) return 'Good Evening, ';
};
return (
<>
diff --git a/src/config/redirects.js b/src/config/redirects.js
new file mode 100644
index 000000000..3fea22eee
--- /dev/null
+++ b/src/config/redirects.js
@@ -0,0 +1,49 @@
+const docsRedirects = [
+ {
+ source: '/docs/instances/api-reference/:path*',
+ destination: 'https://docs.zesty.io/reference/instances-api-reference',
+ permanent: true,
+ },
+ {
+ source: '/docs/authentication/api-reference/:path*',
+ destination: 'https://docs.zesty.io/reference/authentication-api-reference',
+ permanent: true,
+ },
+ {
+ source: '/docs/accounts/api-reference/:path*',
+ destination: 'https://docs.zesty.io/reference/accounts-api-reference',
+ permanent: true,
+ },
+ {
+ source: '/docs/parsley/api-reference/:path*',
+ destination: 'https://docs.zesty.io/docs/parsley',
+ permanent: true,
+ },
+ {
+ source: '/docs/media/api-reference/manager/:path*',
+ destination: 'https://docs.zesty.io/reference/media-manager-api-reference',
+ permanent: true,
+ },
+ {
+ source: '/docs/media/api-reference/storage/:path*',
+ destination: 'https://docs.zesty.io/reference/media-storage-api-reference',
+ permanent: true,
+ },
+ {
+ source: '/docs/media/api-reference/modify/:path*',
+ destination: 'https://docs.zesty.io/reference/media-modify-api-reference',
+ permanent: true,
+ },
+ {
+ source: '/docs/media/api-reference/resolver/:path*',
+ destination: 'https://docs.zesty.io/reference/media-resolver-api-reference',
+ permanent: true,
+ },
+ {
+ source: '/docs/media/api-reference/:path*',
+ destination: 'https://docs.zesty.io/reference/media-api-reference',
+ permanent: true,
+ },
+];
+
+module.exports = { docsRedirects };
diff --git a/src/layouts/Main/Main.js b/src/layouts/Main/Main.js
index adccd8689..a151737de 100644
--- a/src/layouts/Main/Main.js
+++ b/src/layouts/Main/Main.js
@@ -191,6 +191,7 @@ const Main = ({
isAuthenticated={isLoggedIn}
userInfo={userInfo?.data}
loading={loading}
+ cta={'Contact Sales'}
/>
)}
diff --git a/src/lib/ZestyView.js b/src/lib/ZestyView.js
index d2c07f1bb..9ea1a4bdb 100644
--- a/src/lib/ZestyView.js
+++ b/src/lib/ZestyView.js
@@ -46,7 +46,7 @@ export function ZestyView(props) {
props.content.meta.layout?.json['layout:root:column:0']?.children,
) === '{}'
) {
- return true;
+ return false;
}
// return only true if the layout is active and has components
diff --git a/src/pages/docs/index.js b/src/pages/docs/index.js
index 76b6c95f5..4dfa00c8c 100644
--- a/src/pages/docs/index.js
+++ b/src/pages/docs/index.js
@@ -165,19 +165,19 @@ const cardData = [
title: 'Instances API',
description:
'A collection of available REST endpoints scoped to your unique instance.',
- link: '/docs/instances/api-reference/',
+ link: 'https://docs.zesty.io/reference/instances-api-reference',
},
{
title: 'Authentication API',
description:
'Auth API is used to authenticate users with Zesty.io, which returns a token that grants to access services like Instances API, Accounts API, and Media API. Auth was setup as a stand alone service so it can connect to many services in our infrastructure.',
- link: '/docs/authentication/api-reference/',
+ link: 'https://docs.zesty.io/reference/authentication-api-reference',
},
{
title: 'Accounts API',
description:
'API used to control management of users, roles, instances, and teams.',
- link: '/docs/accounts/api-reference/',
+ link: 'https://docs.zesty.io/reference/accounts-api-reference',
},
{
title: 'Guides',
diff --git a/src/pages/login/index.js b/src/pages/login/index.js
index 365518cd2..62d5cab91 100644
--- a/src/pages/login/index.js
+++ b/src/pages/login/index.js
@@ -15,7 +15,15 @@ const site = 'https://www.zesty.io';
const Login = (props) => {
const router = useRouter();
- const content = props.data.data[0].content;
+ const content =
+ props.data.data
+ .sort(
+ (a, b) =>
+ new Date(b.content.start_date_and_time) -
+ new Date(a.content.start_date_and_time),
+ )
+ .map((item) => item.content)[0] || null;
+
const loginContent = props.loginData.data[0].content;
const ogimage = content?.feature_image?.data[0]?.url;
diff --git a/src/revamp/ui/GetDemoSection/index.js b/src/revamp/ui/GetDemoSection/index.js
index c2394a33d..98644fc75 100644
--- a/src/revamp/ui/GetDemoSection/index.js
+++ b/src/revamp/ui/GetDemoSection/index.js
@@ -19,11 +19,7 @@ import useGetDynamicData from './useGetDynamicData';
import { useRouter } from 'next/router';
import ZestyImage from 'blocks/Image/ZestyImage';
-const acorns =
- 'https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Acorns%20Logo.svg',
- bjs = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/BJ's%20Logo.svg`,
- rocketLeague = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Horizontal_Text.svg`,
- cornershop = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Logo_de_Cornershop%201.svg`,
+const rocketLeague = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Horizontal_Text.svg`,
phoenixSuns = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Phoenix%20Suns.svg`,
singlife = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Singlife%20Logo.svg`,
sony = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Sony%20Logo.svg`,
@@ -118,7 +114,7 @@ const GetDemoSection = ({
})}
>
-
-