Skip to content

fix: make landing page responsive for mobile (fixes #3) - #110

Open
iprasen wants to merge 1 commit into
iii123iii:mainfrom
iprasen:fix/mobile-responsive-landing-page
Open

fix: make landing page responsive for mobile (fixes #3)#110
iprasen wants to merge 1 commit into
iii123iii:mainfrom
iprasen:fix/mobile-responsive-landing-page

Conversation

@iprasen

@iprasen iprasen commented Sep 7, 2026

Copy link
Copy Markdown

Summary

Fixes #3 by making the Crystal-PDF landing page fully responsive, fluid, and thumb-friendly across mobile viewports (from 320px up to desktop).

Key Improvements

  • Viewport & Scroll Safety: Added overflow-x-hidden w-full to root container to eliminate mobile horizontal scrolling and bounce issues.
  • Fluid Navigation: Responsive horizontal padding (px-4 sm:px-6) and compact buttons preventing text wrapping on narrow devices.
  • Hero Section & Crystal Visual:
    • Fluid typography clamp (clamp(2rem, 6vw, 4.8rem)) with proportional line heights preventing word breaks.
    • Stacked full-width CTA buttons on mobile with 44px+ touch targets.
    • Fluid Crystal Prism (width: min(260px, 72vw)) so mobile visitors experience the rotating crystal graphic centered below hero text.
  • Adaptive Toolkit Grid:
    • Responsive layout: grid-cols-1 xs:grid-cols-2 lg:grid-cols-4. Under 420px, cards render with icon on left and text on right, preventing narrow card crushing.
  • How It Works & CTA:
    • Proportional icon sizes (w-11 h-11 sm:w-12 sm:h-12) and vertically aligned step connectors.
    • Clean mobile CTA stack and centered footer.
  • Tailwind Palette Fix: Registered missing brand palette (#2d62ff) in tailwind.config.js for proper button and glow contrast.

Testing & Verification

  • Added comprehensive unit test suite in LandingPage.test.tsx (all 6 tests passing).
  • All 66 frontend tests passing (npm test).
  • Production build succeeds with 0 errors (npm run build).
  • ESLint passed with 0 errors and 0 warnings on modified files.

- Add overflow-x-hidden and w-full to root container to eliminate mobile horizontal scroll leaks
- Add responsive padding and touch-friendly button sizing to navigation bar
- Refactor hero section with fluid typography clamp, centered mobile stack, and responsive crystal prism visual
- Update toolkit grid to fluid responsive layout (1 col on narrow mobile, 2 col on xs, 4 col on lg)
- Scale How It Works step icons and vertically align step connectors
- Optimize CTA section and center footer for mobile viewports
- Register brand color palette in tailwind.config.js for proper button and glow contrast
- Add comprehensive unit test suite in LandingPage.test.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug bounty 100 usd to whoever makes my landing page responsive for mobile

1 participant