'use client'; import React, { useEffect, useLayoutEffect, useRef } from 'react'; import { gsap } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; import { PhoneMockupImage } from './PhoneMockup'; if (typeof window !== 'undefined') gsap.registerPlugin(ScrollTrigger); const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect; export default function LiveMoreSection() { const panelRef = useRef(null); const phoneRef = useRef(null); useIsomorphicLayoutEffect(() => { if (typeof window === 'undefined') return; const section = panelRef.current; const phone = phoneRef.current; if (!section || !phone) return; const ctx = gsap.context(() => { gsap.fromTo(phone, { y: 160, opacity: 0 }, { y: 0, opacity: 1, ease: 'power2.out', scrollTrigger: { trigger: section, start: 'top 92%', end: 'top 25%', scrub: 1.2 }, } ); }, section); return () => ctx.revert(); }, []); return (
{/* Left — phone mockup: lifestyle moments feed */}
{/* Right — headline + copy */}
Live04

Live More.

Life isn't about collecting points. It's about collecting moments.

{[ { label: 'Walk more', icon: '🚶', bg: '#eef2ff' }, { label: 'Explore more', icon: '🧭', bg: '#fdeef7' }, { label: 'Meet friends', icon: '🤝', bg: '#eef9f1' }, { label: 'Support local', icon: '🏪', bg: '#fef1e8' }, { label: 'Discover new brands', icon: '🏷️', bg: '#fef7ea' }, { label: 'Celebrate every day', icon: '🎊', bg: '#fdeeee' }, ].map((tag) => (
{tag.icon} {tag.label}
))}

LytsUp rewards your lifestyle, not just your purchases.

); }