Skip to content

add mobile specific text resizing (fixes #1) #2

Merged
RyanS4 merged 1 commit into
mainfrom
1-homepage-header-size-fix
Jun 29, 2026
Merged

add mobile specific text resizing (fixes #1) #2
RyanS4 merged 1 commit into
mainfrom
1-homepage-header-size-fix

Conversation

@RyanS4

@RyanS4 RyanS4 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Fixes #1
Fixes the issue where the navigation bar and homepage text would spill off into other page components or off the display.

  • Add mobile screen size detection
  • Reduce navbar button and title text size for mobile screens
  • Reduce the size of the homepage welcome message on mobile screens

@RyanS4 RyanS4 requested a review from Copilot June 29, 2026 08:45
@RyanS4 RyanS4 self-assigned this Jun 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to address mobile layout overflow in the homepage hero text and navigation bar by introducing mobile screen-size detection and applying smaller typography on small screens. It also includes a significant repo packaging change by removing the repository-root workspace package.json / package-lock.json.

Changes:

  • Add mobile detection via react-responsive and render smaller homepage hero typography on mobile.
  • Add a mobile-specific NavBar render path with smaller title/button typography.
  • Remove the repository-root npm workspace manifests, leaving only the green-day-website package.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
package.json Removed repo-root workspace manifest (workspace structure change).
package-lock.json Removed repo-root lockfile (workspace structure change).
green-day-website/src/Pages/Home.jsx Adds mobile detection and a mobile-specific render path with smaller hero text.
green-day-website/src/components/NavBar.jsx Adds mobile detection and a mobile-specific NavBar layout with smaller typography.
green-day-website/package.json Adds react-responsive dependency for mobile media queries.
green-day-website/package-lock.json Updates lockfile for react-responsive and transitive deps.
Files not reviewed (1)
  • green-day-website/package-lock.json: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +14 to +17
if (isMobile) {
return (
<Box sx={{ flexGrow: 1 }}>
<NavBar />
marginTop: 2
}}
>
<Typography variant="h5" component="h5" align="center" gutterBottom sx={{ marginTop: 4, color: '#FFFFFF', fontWeight: 'bold', textShadow: '2px 2px 4px rgba(0, 0, 0, 0.7)' }}>
Comment on lines +22 to +26
if (isMobile) {
return (
<AppBar position="static" sx={{ backgroundColor: "#06402B" }}>
<Toolbar sx={{ px: { xs: 1.5, sm: 2.5 } }}>
<Box sx={{ display: 'flex', alignItems: 'center', flexGrow: 1 }}>
Comment on lines +42 to +44
<Typography variant="h6" component="div" sx={{ fontSize: '12px' }}>
Green Day LLC
</Typography>
"@mui/material": "^9.1.1",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"react-responsive": "^10.0.1",
@RyanS4 RyanS4 merged commit 3e12ca7 into main Jun 29, 2026
3 checks passed
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.

Mobile homepage header text and navbar overflow

2 participants