-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat(landing): extend enterprise product-preview design to solutions and workflows pages #5672
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
base: staging
Are you sure you want to change the base?
Changes from all commits
e6672f1
73724ca
2922e01
2bd998f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,11 +7,6 @@ import type { NavMenu } from '@/app/(landing)/components/navbar/components/nav-m | |
| export const PLATFORM_MENU: NavMenu = { | ||
| label: 'Platform', | ||
| items: [ | ||
| { | ||
| title: 'Mothership', | ||
| description: 'Build and command agents in natural language', | ||
| href: '/', | ||
| }, | ||
| { | ||
| title: 'Workflows', | ||
| description: 'Design agent logic visually', | ||
|
|
@@ -32,6 +27,11 @@ export const PLATFORM_MENU: NavMenu = { | |
| description: 'One file store for team and agents', | ||
| href: '/files', | ||
| }, | ||
| { | ||
| title: 'Scheduled Tasks', | ||
| description: 'Run agents on a cadence', | ||
| href: '/scheduled-tasks', | ||
| }, | ||
| { | ||
| title: 'Logs', | ||
| description: 'Trace every agent decision', | ||
|
|
@@ -121,13 +121,9 @@ export const SOLUTIONS_MENU: NavMenu = { | |
| } | ||
|
|
||
| /** | ||
| * Navbar mega-menus that are currently rendered, in trigger order - shared by | ||
| * desktop and mobile nav (the desktop bar maps this list; mobile nav derives | ||
| * its visible sections from these labels). | ||
| * | ||
| * `PLATFORM_MENU` and `SOLUTIONS_MENU` are intentionally omitted for now to hide | ||
| * those sections from navigation while their pages stay live and reachable by | ||
| * direct URL. The menu definitions above are kept intact - to restore a section, | ||
| * add its constant back to this list. | ||
| * Navbar mega-menus in trigger order - shared by desktop and mobile nav (the | ||
| * desktop bar maps this list; mobile nav derives its visible sections from | ||
| * these labels). Platform leads with the product modules, Solutions follows | ||
| * with the per-team pages, and Resources closes with learning surfaces. | ||
| */ | ||
| export const NAV_MENUS = [RESOURCES_MENU] as const | ||
| export const NAV_MENUS = [PLATFORM_MENU, SOLUTIONS_MENU, RESOURCES_MENU] as const | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate Enterprise nav entryMedium Severity Restoring Additional Locations (1)Reviewed by Cursor Bugbot for commit 73724ca. Configure here.
cursor[bot] marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { PlatformHeroVisual } from '@/app/(landing)/components/platform-hero-visual/platform-hero-visual' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import type { ReactNode } from 'react' | ||
| import Image from 'next/image' | ||
|
|
||
| interface PlatformHeroVisualProps { | ||
| /** The live platform interior - a platform loop or editor loop island. */ | ||
| children: ReactNode | ||
| } | ||
|
|
||
| /** | ||
| * The enterprise hero's visual composition, shared: the architectural backdrop | ||
| * (`enterprise-hero-background.webp`) with the white demo window framed in | ||
| * front of it, ready to hold a live platform interior (a chat platform loop or | ||
| * the workflows editor loop). Extracted so the solutions and workflows heroes | ||
| * reuse the exact backdrop, window geometry (`aspect-[1080/620]` at 83.08% | ||
| * width), and shadow treatment the enterprise page established - the | ||
| * enterprise page keeps its own inline copy, byte-identical. | ||
| * | ||
| * Renders inside a hero visual slot (the `variant='home'` media frame or the | ||
| * standard {@link SolutionsVisualFrame}); the outer `relative` wrapper anchors | ||
| * the `fill` image in frames that don't position themselves. | ||
| */ | ||
| export function PlatformHeroVisual({ children }: PlatformHeroVisualProps) { | ||
| return ( | ||
| <div className='relative h-full w-full'> | ||
| <Image | ||
| fill | ||
| priority | ||
| fetchPriority='high' | ||
| alt='' | ||
| className='object-cover object-center' | ||
| sizes='(max-width: 1024px) 100vw, 1300px' | ||
| src='/landing/enterprise-hero-background.webp' | ||
| /> | ||
| <div className='-translate-x-1/2 -translate-y-1/2 absolute top-1/2 left-1/2 flex aspect-[1080/620] w-[83.08%] flex-col overflow-hidden rounded-[10px] bg-[var(--surface-1)] shadow-[0_0_0_1px_rgba(0,0,0,0.08),0_2px_6px_0_rgba(0,0,0,0.05),0_4px_42px_0_rgba(0,0,0,0.06)]'> | ||
| <div className='relative flex-1'>{children}</div> | ||
| </div> | ||
| </div> | ||
| ) | ||
| } |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate Enterprise nav entries
Medium Severity
Restoring
SOLUTIONS_MENUintoNAV_MENUSputs Enterprise in that mega-menu, but the desktop bar and mobile sheet still keep a standalone Enterprise link. Visitors now see the same destination twice in primary navigation.Additional Locations (1)
apps/sim/app/(landing)/components/navbar/components/nav-menu-chip/constants.ts#L128-L129Reviewed by Cursor Bugbot for commit 2bd998f. Configure here.