Skip to content

[Bug] UI/Frontend Responsiveness Issue on Small Viewports #50

@ZarrarPeshimam

Description

@ZarrarPeshimam

Describion
The website's layout is not adequately responsive on small mobile viewports. The navigation sidebar (containing menu items like "Ethical Hacking," "Python for Ethical Hacking," etc.) occupies a disproportionate amount of the screen width, causing the main content area ("Tutorial," "Available Courses") to be severely compressed and almost unreadable.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://hacking-tutorial.vercel.app
  2. Open Developer Tools (F12 or Ctrl+Shift+I / Cmd+Option+I).
  3. Switch to Device Emulation Mode (Toggle device toolbar).
  4. Select a small mobile device preset, such as 'iPhone SE' or set a custom width under 400px.
  5. See error: The main content is squeezed into a very narrow column next to the sidebar.

Expected behavior
On small mobile viewports, the layout should prioritize the main content. The expected behavior is for the navigation sidebar to either:

  1. Collapse into a hamburger menu that opens on demand.
  2. Move above or below the main content area, allowing the main content to use the full screen width.

Screenshots

Image

Additional context
The issue stems from a lack of, or incorrect, media queries that define a mobile-specific layout. The current layout appears to be a fixed-width desktop/tablet layout scaled down, resulting in poor user experience on smaller screens.


@amandewatnitrr, please consider assigning this issue to me as part of hacktober.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions