Skip to content

Commit 91563ba

Browse files
fix(landing): improve mobile hero and workflow previews (#7634)
* fix(landing): improve mobile hero and workflow previews * fix(landing): remove blank preview intro and close mobile QA gaps * fix(landing): clarify swipe discovery and share interactive logs * fix(landing): use absolute logs graph export --------- Co-authored-by: andresdjasso <andresdjasso@users.noreply.github.com> Co-authored-by: Waleed Latif <walif6@gmail.com>
1 parent fbcf13e commit 91563ba

26 files changed

Lines changed: 588 additions & 786 deletions

File tree

apps/sim/app/(landing)/comparisons/components/source-info/source-info.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function SourceLink({ source, children, className }: SourceLinkProps) {
2828
href={source.url}
2929
target='_blank'
3030
rel='noopener noreferrer'
31-
className={cn('block min-w-0', className)}
31+
className={cn('relative block min-w-0', className)}
3232
>
3333
{children}
3434
<span className='sr-only'> (source: {source.label}, opens in a new tab)</span>

apps/sim/app/(landing)/components/features/components/features-rail/features-rail.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ export function FeaturesRail({ label, children }: FeaturesRailProps) {
230230
<div className='relative'>
231231
<div
232232
ref={railRef}
233+
role='region'
233234
aria-label={label}
234235
className={cn(
235236
'flex gap-6 overflow-x-auto overscroll-x-contain pb-4 [overflow-anchor:none] [scrollbar-width:none] data-[dragging]:cursor-grabbing data-[dragging]:select-none [&::-webkit-scrollbar]:hidden',

apps/sim/app/(landing)/components/features/features.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const CORE_FEATURES = [
6161
href: '/logs',
6262
tone: 'light',
6363
visual: <RunTraceGraphic />,
64+
interactiveVisual: true,
6465
},
6566
] as const
6667

@@ -81,12 +82,15 @@ export function Features() {
8182
<h2
8283
id='features-heading'
8384
className={cn(
84-
'mb-16 max-w-[20ch] text-balance text-[var(--text-primary)] max-sm:mb-10 max-lg:mb-12',
85+
'mb-16 max-w-[20ch] text-balance text-[var(--text-primary)] max-sm:mb-3 max-lg:mb-12',
8586
HOME_TYPE.h2
8687
)}
8788
>
8889
Everything AI agents need to do real work
8990
</h2>
91+
<p className='mb-8 hidden text-[13px] text-[var(--text-secondary)] max-sm:block'>
92+
Swipe to explore
93+
</p>
9094

9195
<FeaturesRail label='Core Sim features'>
9296
{CORE_FEATURES.map((feature) => (

apps/sim/app/(landing)/components/hero/components/hero-chat-loop/hero-chat-loop.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,6 @@ export function HeroChatLoop({
256256
</div>
257257

258258
<div
259-
data-preview-outline='frame'
260-
data-preview-composer=''
261259
className={cn(
262260
'mx-auto w-[calc(100%-48px)] max-w-chat rounded-2xl border border-[var(--border)] bg-[var(--white)] px-2.5 py-2 dark:bg-[var(--surface-4)]',
263261
showWelcome

apps/sim/app/(landing)/components/hero/components/hero-chat-welcome/hero-chat-welcome.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export function HeroChatWelcome({ visible, onSelect }: HeroChatWelcomeProps) {
1515
return (
1616
<>
1717
<p
18-
data-preview-skeleton-label=''
1918
aria-hidden={!visible}
2019
className={cn(
2120
'absolute inset-x-0 bottom-[calc(100%+28px)] text-balance text-center text-[26px] text-[var(--text-primary)] leading-[1.2] tracking-[-0.01em] max-sm:bottom-[calc(100%+20px)] max-sm:text-[20px]',
@@ -34,9 +33,7 @@ export function HeroChatWelcome({ visible, onSelect }: HeroChatWelcomeProps) {
3433
visible ? 'opacity-100' : 'pointer-events-none opacity-0'
3534
)}
3635
>
37-
<span data-preview-skeleton-label='' className='text-[13px] text-[var(--text-secondary)]'>
38-
Suggested actions
39-
</span>
36+
<span className='text-[13px] text-[var(--text-secondary)]'>Suggested actions</span>
4037
<div className='mt-2 flex flex-col'>
4138
{PREVIEW_SUGGESTIONS.map((action, index) => {
4239
const Icon = ACTION_ICONS[index]
@@ -48,9 +45,7 @@ export function HeroChatWelcome({ visible, onSelect }: HeroChatWelcomeProps) {
4845
className='flex items-center gap-2 border-[var(--border)] px-2 py-2 text-left text-[var(--text-body)] text-sm transition-colors duration-150 hover:bg-[var(--surface-hover)] focus-visible:outline focus-visible:outline-1 focus-visible:outline-[var(--text-primary)] [&+button]:border-t'
4946
>
5047
<Icon className='size-[16px] shrink-0 text-[var(--text-icon)]' />
51-
<span data-preview-skeleton-label='' className='min-w-0 flex-1 truncate'>
52-
{action.title}
53-
</span>
48+
<span className='min-w-0 flex-1 truncate'>{action.title}</span>
5449
<ArrowRight className='size-[14px] shrink-0 text-[var(--text-icon)]' />
5550
</button>
5651
)

apps/sim/app/(landing)/components/hero/components/hero-platform-intro/draw-platform-preview.ts

Lines changed: 0 additions & 195 deletions
This file was deleted.

0 commit comments

Comments
 (0)