Skip to content

Commit 9a2131f

Browse files
committed
fix(landing): align preview controls and simplify CLI copy
1 parent a54822e commit 9a2131f

6 files changed

Lines changed: 14 additions & 15 deletions

File tree

‎.greptile/config.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"fileChangeLimit": 600
3+
}

‎apps/sim/app/(landing)/components/navbar/components/nav-menu-chip/components/nav-menu-preview/components/menu-preview-frame/menu-preview-frame.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function MenuPreviewFrame({
2727
data-menu-preview={kind}
2828
className={cn(
2929
'pointer-events-none absolute inset-0 isolate select-none overflow-hidden [container-type:inline-size]',
30-
isHero ? 'bg-[var(--bg)]' : 'bg-[var(--surface-3)]'
30+
isHero ? 'bg-[var(--bg)]' : 'bg-[var(--surface-3)] [--preview-content-width:576px]'
3131
)}
3232
>
3333
<div

‎apps/sim/app/(landing)/components/navbar/components/nav-menu-chip/components/nav-menu-preview/components/menu-preview-header/menu-preview-header.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface MenuPreviewToolbarProps {
1212
children: ReactNode
1313
}
1414

15-
/** Tables sets the shared title sizing and the visible crop's content width. */
15+
/** Preview frames can constrain header actions to their visible crop. */
1616
export function MenuPreviewHeader({
1717
icon: Icon,
1818
title,
@@ -27,7 +27,7 @@ export function MenuPreviewHeader({
2727
size === 'table' ? 'box-content h-10' : 'h-11'
2828
)}
2929
>
30-
<div className='flex size-full max-w-[576px] items-center gap-2 px-4'>
30+
<div className='flex size-full max-w-[var(--preview-content-width,100%)] items-center gap-2 px-4'>
3131
{Icon && <Icon className='size-[14px] shrink-0 text-[var(--text-icon)]' />}
3232
<div className='flex min-w-0 flex-1 items-center gap-2 whitespace-nowrap text-[var(--text-primary)] text-base'>
3333
{title}
@@ -46,7 +46,7 @@ export function MenuPreviewHeader({
4646
export function MenuPreviewToolbar({ children }: MenuPreviewToolbarProps) {
4747
return (
4848
<div data-menu-preview-toolbar className='h-[38px] border-[var(--border)] border-b'>
49-
<div className='flex size-full max-w-[576px] items-center gap-1 px-2 text-small'>
49+
<div className='flex size-full max-w-[var(--preview-content-width,100%)] items-center gap-1 px-2 text-small'>
5050
{children}
5151
</div>
5252
</div>

‎apps/sim/app/(landing)/components/product-demo/product-demo.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const EDGE_STRIP =
8585
* it is deliberately even all the way along an edge, and the player overlays
8686
* copy on two of them. From `lg` each band runs the copy's 13% inset plus 80px
8787
* down from the top (the title) or up from the bottom (the link), solid at
88-
* 10px of blur through the copy (its inset plus 40px) and tapering over the
88+
* 8px of blur through the copy (its inset plus 40px) and tapering over the
8989
* last 40px, and a second mask fades it out sideways, so it covers the centre
9090
* where the title and the link sit and leaves the corners to the shared strip
9191
* - a card passing a corner is not blurred for no reason. The bands end where
@@ -94,7 +94,7 @@ const EDGE_STRIP =
9494
*/
9595
const COPY_BAND =
9696
'inset-x-0 h-[96px] lg:h-[calc(13%+80px)] [mask-image:linear-gradient(to_right,transparent_15%,black_34%,black_66%,transparent_85%)]'
97-
const COPY_BLUR = 'absolute inset-0 backdrop-blur-[10px]'
97+
const COPY_BLUR = 'absolute inset-0 backdrop-blur-[8px]'
9898
const COPY_TOP_MASK = '[mask-image:linear-gradient(to_bottom,black_calc(100%-40px),transparent)]'
9999
const COPY_BOTTOM_MASK = '[mask-image:linear-gradient(to_top,black_calc(100%-40px),transparent)]'
100100

‎apps/sim/app/(landing)/components/shared/edge-fade/edge-fade.module.css‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,39 +56,39 @@
5656
}
5757

5858
.layer0 {
59-
--edge-fade-blur: 0.4px;
59+
--edge-fade-blur: 0.3px;
6060
--edge-fade-from: 0%;
6161
--edge-fade-in: 20%;
6262
--edge-fade-out: 40%;
6363
--edge-fade-to: 60%;
6464
}
6565

6666
.layer1 {
67-
--edge-fade-blur: 1.25px;
67+
--edge-fade-blur: 1px;
6868
--edge-fade-from: 20%;
6969
--edge-fade-in: 40%;
7070
--edge-fade-out: 60%;
7171
--edge-fade-to: 80%;
7272
}
7373

7474
.layer2 {
75-
--edge-fade-blur: 2.5px;
75+
--edge-fade-blur: 2px;
7676
--edge-fade-from: 40%;
7777
--edge-fade-in: 60%;
7878
--edge-fade-out: 80%;
7979
--edge-fade-to: 100%;
8080
}
8181

8282
.layer3 {
83-
--edge-fade-blur: 5px;
83+
--edge-fade-blur: 4px;
8484
--edge-fade-from: 60%;
8585
--edge-fade-in: 80%;
8686
--edge-fade-out: 100%;
8787
--edge-fade-to: 120%;
8888
}
8989

9090
.layer4 {
91-
--edge-fade-blur: 10px;
91+
--edge-fade-blur: 8px;
9292
--edge-fade-from: 80%;
9393
--edge-fade-in: 100%;
9494
--edge-fade-out: 120%;

‎apps/sim/app/(landing)/components/solutions-page/components/solutions-product-page/components/product-code-example.tsx‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ export function ProductCodeExample({ example }: ProductCodeExampleProps) {
3030
<p className='mt-5 max-w-[42ch] text-[var(--text-body)] text-lg leading-relaxed max-sm:text-md'>
3131
{example.description}
3232
</p>
33-
<p className='mt-4 max-w-[48ch] text-[var(--text-secondary)] text-sm leading-6'>
34-
Sign in with <code>sim login</code> and select your workspace. Replace the ID variables
35-
with IDs from your workspace.
36-
</p>
3733
<div className='mt-7'>
3834
<LandingCtaLink href='https://docs.sim.ai/cli' variant='outline' withArrow>
3935
Explore the CLI

0 commit comments

Comments
 (0)