'use client' import { motion } from 'framer-motion' import Image from 'next/image' import { Check } from '@phosphor-icons/react' // Section wrapper component for reuse function FeatureSection({ id, heading, description, features, mockup, reverse = false, }: { id: string heading: string description: string features: string[] mockup: React.ReactNode reverse?: boolean }) { return (
{/* Text */}

{heading}

{description}

    {features.map((item) => (
  • {item}
  • ))}
{/* Mockup container */}
{mockup}
) } export default function FeatureSections() { return (
{/* Section 1: Dashboard — text left, mockup right */} Pulse analytics dashboard
} /> {/* Section 2: Visitors — mockup left, text right */}
{/* Mini mockup: top pages bars */} {[ { page: '/blog/privacy-guide', pct: 85 }, { page: '/docs/getting-started', pct: 65 }, { page: '/pricing', pct: 45 }, { page: '/about', pct: 30 }, ].map((item) => (
{item.page} {item.pct}%
))}
} /> {/* Section 3: Funnels — text left, mockup right */} {/* Simple funnel visualization */}
{[ { label: 'Landing Page', value: '2,847', pct: 100, color: 'bg-brand-orange' }, { label: 'Sign Up Page', value: '1,423', pct: 50, color: 'bg-brand-orange/80' }, { label: 'Onboarding', value: '856', pct: 30, color: 'bg-brand-orange/60' }, { label: 'Activated', value: '412', pct: 14.5, color: 'bg-brand-orange/40' }, ].map((step, i) => (
{step.value}

{step.label}

{i < 3 && (

↓ {Math.round((1 - [1, 0.5, 0.3, 0.145][i + 1] / [1, 0.5, 0.3, 0.145][i]) * 100)}% drop-off

)}
))}

Overall conversion: 14.5%

} /> {/* Section 4: Reports — mockup left, text right */} {/* Email mockup */}
P

Pulse Daily Report

yoursite.com

{[ { label: 'Visitors', value: '1,247', change: '+12%' }, { label: 'Pageviews', value: '3,891', change: '+8%' }, { label: 'Bounce Rate', value: '42%', change: '-3%' }, { label: 'Avg Duration', value: '2m 34s', change: '+15%' }, ].map((stat) => (

{stat.label}

{stat.value}

{stat.change}

))}

Delivered every day at 09:00

} /> {/* Section 5: Script — text left, code block right */} {/* Code block with browser chrome */}
index.html
              
                {''}{'\n'}
                {'<'}
                script{'\n'}
                {'  '}defer{'\n'}
                {'  '}data-domain="yoursite.com"{'\n'}
                {'  '}src="https://pulse.ciphera.net/js/script.js"{'\n'}
                {'>'}
                {'
                script
                {'>'}
              
            
1.6 KB gzipped Non-blocking, async
} />
) }