-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e6672f1
feat(landing): extend enterprise product-preview design to solutions …
andresdjasso 73724ca
feat(landing): surface Platform and Solutions menus in top nav
andresdjasso 2922e01
feat(landing): add scheduled tasks page and nav item
andresdjasso 2bd998f
feat(landing): add knowledge, tables, files, and logs platform pages
andresdjasso 3eb7a64
refactor(landing): consolidate hero-loop engine and code-window graph…
waleedlatif1 3197286
fix(landing): highlight Scheduled tasks in the scheduled-tasks hero s…
waleedlatif1 eb146b6
chore(landing): drop spacing constants orphaned by the variant removal
waleedlatif1 17bd73e
chore(landing): single-source RESET_FADE_MS and drop the unused card …
waleedlatif1 45efc39
fix(landing): make the knowledge-answer question bubble visible on li…
waleedlatif1 8d83ee8
chore(landing): share one ZipIcon across the files preview and files …
waleedlatif1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
apps/sim/app/(landing)/components/platform-hero-visual/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
38 changes: 38 additions & 0 deletions
38
apps/sim/app/(landing)/components/platform-hero-visual/platform-hero-visual.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| ) | ||
| } |
4 changes: 0 additions & 4 deletions
4
apps/sim/app/(landing)/components/platform-page/components/index.ts
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...m/app/(landing)/components/platform-page/components/platform-card-row/components/index.ts
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...)/components/platform-page/components/platform-card-row/components/platform-card/index.ts
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
...nts/platform-page/components/platform-card-row/components/platform-card/platform-card.tsx
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...mponents/platform-page/components/platform-card-row/components/platform-pill-cta/index.ts
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
...form-page/components/platform-card-row/components/platform-pill-cta/platform-pill-cta.tsx
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
apps/sim/app/(landing)/components/platform-page/components/platform-card-row/index.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.