A high-performance, premium landing page for the MyNode Model Two. Built with a focus on fluid user experience (UX), sophisticated animations, and extreme asset optimization to ensure top-tier Core Web Vitals.
- React 18 – UI Framework.
- Tailwind CSS – Utility-first styling.
- Framer Motion – Orchestration for scroll reveals and micro-interactions.
- Lenis – Smooth scroll engine for organic navigation inertia.
- Vite – Ultra-fast build tool and development server.
The project follows a "Master Wrapper" pattern to ensure perfect alignment and consistency across all sections:
SectionWrapper.jsx: Handles responsive max-width (up to3xlscreens), adaptive padding, and automatic scroll-reveal integration.Reveal.jsx: A high-order utility usingframer-motionto trigger entrance animations as elements enter the viewport.SmoothScroll.jsx: Seamless Lenis integration to provide a premium "Apple-like" scroll feel on desktop.
Heavy PNG assets were converted to WebP via FFmpeg, reducing payload size by over 75% without visual degradation.
- LCP Priority: Critical assets (Hero/Banner) use
fetchpriority="high"andloading="eager". - Modern Formats: Standardized on WebP for hardware renders and transparency support.
The Video section implements a smart pointer-events toggle. This prevents the YouTube iframe from hijacking the mouse wheel, ensuring the smooth scroll remains uninterrupted while allowing interaction on click.
Mass optimization via PowerShell:
ls *.png | foreach { ffmpeg -i $_.Name -vcodec libwebp -lossless 0 -q:v 80 ($_.BaseName + ".webp") }
- Clone the repository:
git clone https://github.com/your-username/mynode-model2.git
- Install dependencies:
npm install
- Run development server:
npm run dev
- Palette: Deep Black (
#000000) background,orange-500accents, andzincsecondary text. - Effects: Subtle glassmorphism (
backdrop-blur), low-opacity borders (border-white/10), and Ambient Glow layers for depth. - Typography: Clean Sans-serif with aggressive letter-spacing (
tracking-widest) on small headers for an industrial, high-end aesthetic.