Skip to content

Commit

Permalink
Merge branch 'stage' into feature/2483-update-homepage-logos
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Runyan <[email protected]>
  • Loading branch information
shrunyan authored Dec 6, 2024
2 parents 949a12a + 5556fc5 commit 35c20b0
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.format": "never"
}
},
}
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const zestyConfig = require('./zesty.config.json');
const { docsRedirects } = require('./src/config/redirects');

module.exports = {
trailingSlash: true,
Expand All @@ -14,4 +15,8 @@ module.exports = {
],
},
swcMinify: true,

async redirects() {
return [...docsRedirects];
},
};
49 changes: 49 additions & 0 deletions src/config/redirects.js
Original file line number Diff line number Diff line change
@@ -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 };
6 changes: 3 additions & 3 deletions src/pages/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
30 changes: 1 addition & 29 deletions src/revamp/ui/GetDemoSection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down Expand Up @@ -369,14 +365,6 @@ export function Logos({ invert = false, alignLeft }) {
height="32px"
alt={generateAlt('Singlife')}
/>
<img
style={{ filter: invert ? 'invert(0.5)' : 'none' }}
loading="lazy"
src={acorns}
width="94px"
height="32px"
alt={generateAlt('Acorns')}
/>
<img
style={{ filter: invert ? 'invert(0.5)' : 'none' }}
loading="lazy"
Expand All @@ -393,22 +381,6 @@ export function Logos({ invert = false, alignLeft }) {
height="32px"
alt={generateAlt('Wattpad')}
/>
<img
style={{ filter: invert ? 'invert(0.5)' : 'none' }}
loading="lazy"
src={cornershop}
width="96.69px"
height="32px"
alt={generateAlt('Corner Shop')}
/>
<img
style={{ filter: invert ? 'invert(0.5)' : 'none' }}
loading="lazy"
src={bjs}
width="36.48px"
height="32px"
alt={generateAlt('Bjs')}
/>
</Stack>
</Stack>
);
Expand Down

0 comments on commit 35c20b0

Please sign in to comment.