Skip to content

Commit 49ccd7b

Browse files
drfarrellclaude
andcommitted
Add mobile mockup preview to workflow pages
Added responsive mobile preview of the Onlook interface mockup to "The Solution" sections on both /workflows/claude-code and /workflows/vibe-coding pages. Uses absolute positioning to show a cropped view of the editor from the right side, matching the approach used on the /features page. - Container height: 880px to prevent clipping the prototype - Mockup positioned with right-10 offset for visual balance - Hidden on desktop (md:hidden), desktop version unchanged Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f412b6f commit 49ccd7b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/web/client/src/app/workflows/claude-code/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ export default function ClaudeCodeWorkflowPage() {
174174

175175
{/* Editor Mockup - Mobile */}
176176
<motion.div
177-
className="md:hidden w-screen relative overflow-hidden h-[500px]"
177+
className="md:hidden w-screen relative overflow-hidden h-[880px]"
178178
{...getBlurAnimationProps(0.2)}
179179
>
180-
<div className="absolute top-0 right-10 h-[800px] w-[1000px]">
180+
<div className="absolute top-1/2 right-10 transform -translate-y-1/2 h-[800px] w-[1000px]">
181181
<OnlookInterfaceMockup />
182182
</div>
183183
</motion.div>

apps/web/client/src/app/workflows/vibe-coding/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ export default function VibeCodingWorkflowPage() {
249249

250250
{/* Editor Mockup - Mobile */}
251251
<motion.div
252-
className="md:hidden w-screen relative overflow-hidden h-[500px]"
252+
className="md:hidden w-screen relative overflow-hidden h-[880px]"
253253
{...getBlurAnimationProps(0.2)}
254254
>
255-
<div className="absolute top-0 right-10 h-[800px] w-[1000px]">
255+
<div className="absolute top-1/2 right-10 transform -translate-y-1/2 h-[800px] w-[1000px]">
256256
<OnlookInterfaceMockup />
257257
</div>
258258
</motion.div>

0 commit comments

Comments
 (0)