feat: improve mobile responsiveness for header and hero - #17
Merged
Conversation
- Header: hide domain text on small screens, tighter mobile padding - Hero: reduce height on mobile (35vh/45vh/60vh breakpoints) - Hero: dynamically adjust camera FOV based on aspect ratio so 3D text fills a consistent proportion of the screen at any viewport size - Hero: render FBOs at physical pixel resolution for sharp text on high-DPI mobile screens - Hero: scale icon card labels down on mobile (45%/65% on phone/tablet) - Hero: reduce icon card count on narrow viewports (2/4/6) - Content sections: tighter padding on mobile (px-4 py-16 → sm:px-6 sm:py-24)
…onents - Extract duplicated card layout logic into cardLayout.ts (shared constants, font sizing, text width estimation, card dimensions) - Simplify GridSquare: collapse redundant color props into single accentColor, extract constants for icon scale and spring config - Simplify GridSquares: extract breakpoint constants, replace inline ternaries with helper functions, use shared getCardDimensions/getCardCenter - Clean up Hero/index.tsx: extract BackgroundPlane and ResponsiveFOV constants, remove dead commented-out animation code, link Canvas config to constants - Net reduction of ~100 lines
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
.astro/generated files (already in.gitignore)Test plan