Skip to content

Fix hero section layout responsiveness on mobile screens#121

Open
Prakash1185 wants to merge 2 commits intoapache:mainfrom
Prakash1185:fix/fix-mobile-hero-layout
Open

Fix hero section layout responsiveness on mobile screens#121
Prakash1185 wants to merge 2 commits intoapache:mainfrom
Prakash1185:fix/fix-mobile-hero-layout

Conversation

@Prakash1185
Copy link

Problem

  • The hero section layout was not responsive on mobile screen sizes.
  • There was an overflow in x direction in mobile screens.

What Changes

  • Centered logo and content on mobile screens
  • Changed to vertical stack layout for small devices
  • Logo size reduced from 17rem to 12rem on mobile

Screenshots

Before

Screenshot 2026-01-22 054610 Screenshot 2026-01-22 060402 Screenshot 2026-01-22 060430

After

Screenshot 2026-01-22 060326 Screenshot 2026-01-22 060411 Screenshot 2026-01-22 060435

Copy link

Copilot AI left a comment

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 fixes mobile responsiveness issues in the hero section of the homepage by implementing proper responsive CSS styles for small screens.

Changes:

  • Added mobile-specific layout styles within the @media screen and (max-width:30em) breakpoint
  • Implemented vertical stack layout using flexbox for mobile devices with centered content
  • Reduced hero logo size from 17rem to 12rem on mobile screens

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

}

@media screen and (max-width:30em) {
@media screen and (max-width:30em) {
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

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

Inconsistent indentation: This media query has extra leading spaces compared to other media queries in the file (e.g., line 138). For consistency, remove the extra leading spaces to match the indentation of other media queries.

Suggested change
@media screen and (max-width:30em) {
@media screen and (max-width:30em) {

Copilot uses AI. Check for mistakes.
@Prakash1185
Copy link
Author

Hi @cxzl25 ,
I’ve fixed the indentation issue pointed out by Copilot and updated the PR accordingly.

Please let me know if this looks good.

@Prakash1185
Copy link
Author

Hi @SteNicholas ,
This PR fixes the responsiveness of hero section on smaller screens. Please look into this PR.
Thank You.

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.

2 participants