Skip to content

fix(landing): comprehensive mobile responsiveness for all viewport sizes#33

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

fix(landing): comprehensive mobile responsiveness for all viewport sizes#33
Ojas2095 wants to merge 1 commit into
iii123iii:mainfrom
Ojas2095:fix/landing-page-mobile-responsive

Conversation

@Ojas2095

Copy link
Copy Markdown

Summary

Fixes #3 — Makes the landing page fully responsive across all mobile viewports (320px–768px).

What Changed

Navigation

  • Hamburger menu on screens < 640px with an animated slide-down dropdown
  • Desktop nav links hidden on mobile, replaced with a clean toggle (Menu/X icons)
  • Menu auto-closes on link click

Hero Section

  • Reduced minimum clamp() font size from 2.2rem → 1.75rem to prevent text overflow on 320px screens
  • Tighter vertical padding on mobile (pt-12 pb-16) scaling up at sm and md breakpoints
  • Reduced gap between hero text and crystal prism

Tools Grid

  • Added custom Tailwind xs breakpoint at 400px
  • Grid now flows: 1 column (< 400px) → 2 columns (400–640px) → 4 columns (640px+)
  • Prevents cards from being too cramped on very small screens

CTA Section

  • Reduced minimum clamp() font size to 1.75rem
  • Buttons stack vertically on mobile for better tap targets
  • Tighter vertical padding on mobile

Footer

  • Stacks vertically and centers on mobile
  • Proper spacing adjustments for small screens

Crystal Prism

  • Scaled responsively using min(340px, 70vw) instead of fixed 340px

Global

  • All sections: horizontal padding reduced from px-6 → px-4 on mobile for better edge spacing

Testing

  • ✅ TypeScript compilation passes
  • ✅ Production build succeeds (
    pm run build)
  • Tested mentally against 320px, 375px, 414px, 768px, and 1024px viewport widths

Files Changed

  • \ rontend/src/pages/LandingPage.tsx\ — all responsive fixes
  • \ rontend/tailwind.config.js\ — added \xs: 400px\ breakpoint

- Add hamburger menu with animated dropdown for mobile nav (<640px)
- Reduce hero/CTA font clamp minimums to prevent text overflow on 320px screens
- Stack tool grid to single-column on very small screens (<400px), 2-col on small
- Add custom Tailwind 'xs' breakpoint (400px) for fine-grained mobile control
- Stack CTA buttons vertically on mobile for better tap targets
- Center-align footer content on mobile with vertical stacking
- Scale crystal prism visual responsively with min(340px, 70vw)
- Reduce section padding on mobile for better content density
- Adjust horizontal padding from px-6 to px-4 on mobile viewports

Fixes iii123iii#3
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