Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
e6672f173724ca2922e012bd998f3eb7a643197286eb146b617bd73e45efc398d83ee8File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
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 | ||
waleedlatif1 marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. cursor[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| 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,38 @@ | ||
| 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 every hero - the enterprise page | ||
| * included - reuses the exact backdrop, window geometry (`aspect-[1080/620]` | ||
| * at 83.08% width), and shadow treatment the enterprise page established. | ||
| * | ||
| * 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.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.