Skip to content

Commit

Permalink
feat(nx-dev): Add menu redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham committed Jul 9, 2024
1 parent 0ad4130 commit bc4650c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions nx-dev/ui-cloud/src/lib/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export function Hero(): JSX.Element {
width={2550}
height={1622}
loading="eager"
priority
/>
</picture>
<div className="absolute inset-0 z-10 grid h-full w-full items-center justify-center">
Expand Down
8 changes: 3 additions & 5 deletions nx-dev/ui-cloud/src/lib/statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ function fetchTimeSaved(): Promise<{
}>
)
.catch(() => ({
// TODO: Remove this mock data once the API is ready.
// Below is the latest data as of 2024-07-08.
date: new Date(),
last7days: 184326783183,
last30days: 853784967976,
sinceStart: 27250634509494,
last7days: Math.round(Math.random() * 1000000000),
last30days: Math.round(Math.random() * 100000000000),
sinceStart: Math.round(Math.random() * 10000000000000),
}));
}

Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-common/src/lib/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function Footer(): JSX.Element {
solutions: [
{ name: 'Nx Enterprise', href: '/enterprise' },
{ name: 'Nx', href: 'https://nx.dev' },
{ name: 'Nx Cloud', href: 'https://nx.app/?utm_source=nx.dev' },
{ name: 'Nx Cloud', href: '/nx-cloud' },
],
resources: [
{ name: 'Blog', href: '/blog' },
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/ui-common/src/lib/headers/menu-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const plans: MenuItem[] = [
name: 'Nx Cloud',
description:
'End-to-end solution for smart, efficient and maintainable CI.',
href: 'https://nx.app',
href: '/nx-cloud',
icon: null,
isNew: false,
isHighlight: false,
Expand Down

0 comments on commit bc4650c

Please sign in to comment.