Skip to content

Conversation

anuja12mishra
Copy link
Contributor

Description

This pull request improves the responsiveness of the repository listing page to ensure a smooth and user-friendly experience across all device sizes, especially mobile devices.

Changes Made

  • Updated the grid layout using Tailwind CSS responsive utility classes to dynamically adapt the number of columns for different screen sizes (from 1 column on mobile to 4 columns on large screens).
  • Added appropriate padding and margin adjustments (px-4, mt-16 for mobile; larger margins for bigger screens).
  • Made heading font sizes responsive to improve readability on smaller screens.
  • Enhanced vertical padding for better spacing on various devices.
  • Ensured the container layout prevents content overflow and cramping on narrow screens.

Motivation

The initial layout was not adjusting properly on smaller screens, resulting in overflowed text, cramped UI components, and poor usability. These changes address those issues and align with mobile-first best practices using Tailwind CSS.
close #241

Copy link

vercel bot commented Oct 7, 2025

@anuja12mishra is attempting to deploy a commit to the Max Programming's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Oct 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
hacktoberfest-projects Ready Ready Preview Comment Oct 10, 2025 5:06am

@max-programming
Copy link
Owner

max-programming commented Oct 9, 2025

Hey nice work @anuja12mishra
Can you reduce the text size of the input too on smaller screens?

image

Also I noticed the navbar overflows on some screens. Would be nice if you fixed that too
image

Copy link
Owner

@max-programming max-programming left a comment

Choose a reason for hiding this comment

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

Changes requested in #242 (comment)

@anuja12mishra
Copy link
Contributor Author

@max-programming,
Please review these responsive layout updates and let me know if any tweaks are needed.
commit- 43a98d7

Copy link
Owner

@max-programming max-programming left a comment

Choose a reason for hiding this comment

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

Here's the build error

21:37:24.387 > [email protected] build /vercel/path0
21:37:24.387 > next build
21:37:24.387 
21:37:25.187    ▲ Next.js 15.4.5
21:37:25.188    - Experiments (use with caution):
21:37:25.188      ✓ viewTransition
21:37:25.188 
21:37:25.247    Creating an optimized production build ...
21:37:34.151 Failed to compile.
21:37:34.151 
21:37:34.151 ./src/app/(public)/_components/hero.tsx
21:37:34.151 Error:   �[31mx�[0m You're importing a component that needs `useRouter`. This React Hook only works in a Client Component. To fix, mark the file (or its parent) with the `"use client"` directive.
21:37:34.151   �[31m|�[0m
21:37:34.151   �[31m|�[0m  Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
21:37:34.151   �[31m|�[0m
21:37:34.152 
21:37:34.152    ,-[�[36;1;4m/vercel/path0/src/app/(public)/_components/hero.tsx�[0m:1:1]
21:37:34.152  �[2m1�[0m | import { useRouter } from 'next/navigation';
21:37:34.152    : �[35;1m         ^^^^^^^^^�[0m
21:37:34.152  �[2m2�[0m | 
21:37:34.152  �[2m3�[0m | import { Search } from 'lucide-react';
21:37:34.152  �[2m4�[0m | import { LanguageButton } from './language-button';
21:37:34.152    `----
21:37:34.152 
21:37:34.152 Import trace for requested module:
21:37:34.152 ./src/app/(public)/_components/hero.tsx
21:37:34.152 ./src/app/(public)/page.tsx
21:37:34.152 
21:37:34.152 ./src/app/(public)/_components/search-form.tsx
21:37:34.152 Error:   �[31mx�[0m You're importing a component that needs `usePathname`. This React Hook only works in a Client Component. To fix, mark the file (or its parent) with the `"use client"` directive.
21:37:34.152   �[31m|�[0m
21:37:34.152   �[31m|�[0m  Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
21:37:34.152   �[31m|�[0m
21:37:34.152 
21:37:34.153    ,-[�[36;1;4m/vercel/path0/src/app/(public)/_components/search-form.tsx�[0m:1:1]
21:37:34.153  �[2m1�[0m | import { usePathname, useSearchParams, useRouter } from 'next/navigation';
21:37:34.153    : �[35;1m         ^^^^^^^^^^^�[0m
21:37:34.153  �[2m2�[0m | import { useForm } from 'react-hook-form';
21:37:34.153  �[2m3�[0m | import { GoX } from 'react-icons/go';
21:37:34.153    `----
21:37:34.153   �[31mx�[0m You're importing a component that needs `useSearchParams`. This React Hook only works in a Client Component. To fix, mark the file (or its parent) with the `"use client"` directive.
21:37:34.153   �[31m|�[0m
21:37:34.153   �[31m|�[0m  Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
21:37:34.153   �[31m|�[0m
21:37:34.153 
21:37:34.153    ,-[�[36;1;4m/vercel/path0/src/app/(public)/_components/search-form.tsx�[0m:1:1]
21:37:34.154  �[2m1�[0m | import { usePathname, useSearchParams, useRouter } from 'next/navigation';
21:37:34.154    : �[35;1m                      ^^^^^^^^^^^^^^^�[0m
21:37:34.154  �[2m2�[0m | import { useForm } from 'react-hook-form';
21:37:34.154  �[2m3�[0m | import { GoX } from 'react-icons/go';
21:37:34.154    `----
21:37:34.154   �[31mx�[0m You're importing a component that needs `useRouter`. This React Hook only works in a Client Component. To fix, mark the file (or its parent) with the `"use client"` directive.
21:37:34.154   �[31m|�[0m
21:37:34.154   �[31m|�[0m  Learn more: https://nextjs.org/docs/app/api-reference/directives/use-client
21:37:34.154   �[31m|�[0m
21:37:34.154 
21:37:34.154    ,-[�[36;1;4m/vercel/path0/src/app/(public)/_components/search-form.tsx�[0m:1:1]
21:37:34.159  �[2m1�[0m | import { usePathname, useSearchParams, useRouter } from 'next/navigation';
21:37:34.159    : �[35;1m                                       ^^^^^^^^^�[0m
21:37:34.159  �[2m2�[0m | import { useForm } from 'react-hook-form';
21:37:34.159  �[2m3�[0m | import { GoX } from 'react-icons/go';
21:37:34.159    `----
21:37:34.159 
21:37:34.159 Import trace for requested module:
21:37:34.159 ./src/app/(public)/_components/search-form.tsx
21:37:34.160 ./src/app/(public)/_components/header.tsx
21:37:34.160 ./src/app/not-found.tsx
21:37:34.160 
21:37:34.165 
21:37:34.166 > Build failed because of webpack errors
21:37:34.198  ELIFECYCLE  Command failed with exit code 1.
21:37:34.215 Error: Command "pnpm run build" exited with 1

@anuja12mishra
Copy link
Contributor Author

anuja12mishra commented Oct 9, 2025

@max-programming, Now there will be no issue.
Build issue resolved in this commit- a579d86

@anuja12mishra
Copy link
Contributor Author

@max-programming, Sorry for adding the "use client" directive to the Header server component.
resolved commit- ee2868d

Copy link
Owner

@max-programming max-programming left a comment

Choose a reason for hiding this comment

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

The header looks more messed up now
I've attached screenshots both normal zoom and zoomed out

Image
Image

@anuja12mishra
Copy link
Contributor Author

anuja12mishra commented Oct 10, 2025

@max-programming,
I have tested the changes across all screen sizes to ensure no layout issues remain. The build issues have been resolved, and responsive behavior is now stable.
Please let me know if any further problems persist.
Commit reference: 4d0564f

Screenshot

Screenshot 2025-10-10 145715

Copy link
Owner

@max-programming max-programming left a comment

Choose a reason for hiding this comment

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

Awesome!
Thanks a lot Anuja!

@max-programming max-programming merged commit e2b1b99 into max-programming:main Oct 10, 2025
3 checks passed
@max-programming
Copy link
Owner

@all-contributors please add @anuja12mishra for design, code, bug

Copy link
Contributor

@max-programming

I've put up a pull request to add @anuja12mishra! 🎉

@anuja12mishra
Copy link
Contributor Author

anuja12mishra commented Oct 10, 2025

Thank you @max-programming for merging my PR and officially adding me as a contributor for design, code, and bug fixes! I'm excited to be part of this amazing project and looking forward to collaborating more and contributing further 🚀

Copy link
Contributor

@anuja12mishra

I could not determine your intention.

Basic usage: @all-contributors please add @Someone for code, doc and infra

For other usages see the documentation

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 Responsiveness Issue - Layout Not Optimized for Small Screens

2 participants