Skip to content

Add collapsible mobile navigation to CompetitionLayout#71

Open
coder13 wants to merge 2 commits into
devfrom
codex/fix-competition-tabs-scaling-for-mobile-moqn4x
Open

Add collapsible mobile navigation to CompetitionLayout#71
coder13 wants to merge 2 commits into
devfrom
codex/fix-competition-tabs-scaling-for-mobile-moqn4x

Conversation

@coder13
Copy link
Copy Markdown
Owner

@coder13 coder13 commented May 12, 2026

Motivation

  • Improve navigation on small screens by providing a compact, accessible collapsible menu for competition pages.

Description

  • Add useState and useMemo to manage isMobileMenuOpen and compute the currentTab, and ensure the mobile menu is closed on route changes via useEffect.
  • Introduce a mobile-only header button that displays the current section and toggles a two-column grid of links, filtering out tabs with hiddenOnMobile, while retaining the existing desktop navigation markup and behavior.
  • Adjust container and class layout to support responsive rendering without altering desktop navigation logic.

Testing

  • Ran unit tests with yarn test and all tests passed.
  • Built the app with yarn build and the build completed successfully.
  • Ran linting with yarn lint and no new lint errors were reported.

Codex Task

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for competition-groups ready!

Name Link
🔨 Latest commit 09fdb08
🔍 Latest deploy log https://app.netlify.com/projects/competition-groups/deploys/6a02b5bef79c6400085d5dfd
😎 Deploy Preview https://deploy-preview-71--competition-groups.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 65
Accessibility: 84
Best Practices: 100
SEO: 96
PWA: 90
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant