Skip to content

Add mobile hamburger menu with sidebar navigation and close button (X)#217

Open
JOHNNYAKUNDI-LAB wants to merge 9 commits into
Hardhat-Enterprises:mainfrom
JOHNNYAKUNDI-LAB:feature/mobile-hamburger
Open

Add mobile hamburger menu with sidebar navigation and close button (X)#217
JOHNNYAKUNDI-LAB wants to merge 9 commits into
Hardhat-Enterprises:mainfrom
JOHNNYAKUNDI-LAB:feature/mobile-hamburger

Conversation

@JOHNNYAKUNDI-LAB
Copy link
Copy Markdown

@JOHNNYAKUNDI-LAB JOHNNYAKUNDI-LAB commented May 7, 2026

Summary

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Documentation
  • CI/CD / infrastructure
  • Security

Affected Components

  • /backend-api
  • /frontend
  • /engine (collectors / policies)
  • /security
  • /infrastructure
  • /.github/workflows
  • /docs

Motivation

This change was required to improve usability on mobile devices and ensure consistency with the existing dashboard navigation pattern.

Testing Done

  • Unit tests pass locally
  • Tested manually — describe how:
    Tested in browser using developer tools (responsive mode):
    Verified hamburger menu appears on mobile view only
    Confirmed sidebar opens on click and closes via overlay and close (X) button
    Checked navigation links function correctly
    Verified desktop view remains unchanged
  • No tests required — explain why:

Security Considerations

This change does not introduce any security risks. It is limited to frontend UI behaviour and does not affect authentication, API access, or data handling.

Breaking Changes

  • No breaking changes
  • Yes — describe below:

Rollback Plan

  • Revert commit is sufficient
  • Requires additional steps — describe below:

Checklist

  • [x ] Code follows project conventions
  • No secrets, credentials, or tokens committed
  • Relevant documentation updated (if applicable)
  • CI/CD workflows pass on this branch
  • [ x] PR is focused on one thing

Screenshots

1 4 3

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9451f76b78

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread frontend/src/pages/Landing/components/LandingHeader.tsx
{/* Links */}
<nav className="flex flex-col gap-4 text-white mt-12">
{navLinks.map((link) => (
<Link key={link.label} to={link.href}>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Close the sidebar when same-page links are selected

When mobile users tap same-page hash links such as Home, Features, or Benefits from the landing page, this Link updates the hash without unmounting LandingHeader, and isOpen remains true. The fixed overlay/sidebar therefore continues covering the destination section until the user manually closes it.

Useful? React with 👍 / 👎.

@JOHNNYAKUNDI-LAB
Copy link
Copy Markdown
Author

Implemented mobile-responsive hamburger navigation for landing pages (Home, About, Contact).

  1. Added hamburger menu at top-left (mobile only)
  2. Implemented sidebar navigation consistent with the dashboard pattern
  3. Added overlay and close (X) button for usability
  4. Ensured desktop layout remains unchanged
    Tested in responsive mode, working as expected.
    Screenshots attached for reference.

@JOHNNYAKUNDI-LAB
Copy link
Copy Markdown
Author

Uploading 4.jpg…

Copy link
Copy Markdown
Collaborator

@liyunze-coding liyunze-coding left a comment

Choose a reason for hiding this comment

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

@JOHNNYAKUNDI-LAB
Copy link
Copy Markdown
Author

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position

Add sticky property to navigation bar

Updated the navigation header to use sticky positioning (sticky top-0)

@liyunze-coding
Copy link
Copy Markdown
Collaborator

@JOHNNYAKUNDI-LAB
image

Just a style change to the Sign in button and it looks good to me

@JOHNNYAKUNDI-LAB
Copy link
Copy Markdown
Author

@JOHNNYAKUNDI-LAB image

Just a style change to the Sign in button and it looks good to me

1 Updated the mobile sidebar Sign In button styling

Copy link
Copy Markdown
Collaborator

@liyunze-coding liyunze-coding left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants