fix: make landing page responsive for mobile (fixes #3) - #110
Open
iprasen wants to merge 1 commit into
Open
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
overflow-x-hidden w-fullto root container to eliminate mobile horizontal scrolling and bounce issues.px-4 sm:px-6) and compact buttons preventing text wrapping on narrow devices.clamp(2rem, 6vw, 4.8rem)) with proportional line heights preventing word breaks.width: min(260px, 72vw)) so mobile visitors experience the rotating crystal graphic centered below hero text.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.w-11 h-11 sm:w-12 sm:h-12) and vertically aligned step connectors.brandpalette (#2d62ff) intailwind.config.jsfor proper button and glow contrast.Testing & Verification
LandingPage.test.tsx(all 6 tests passing).npm test).npm run build).