diff --git a/src/app/(public)/_components/button.tsx b/src/app/(public)/_components/button.tsx index 93b78dd..0c66a4d 100644 --- a/src/app/(public)/_components/button.tsx +++ b/src/app/(public)/_components/button.tsx @@ -14,13 +14,13 @@ export function Button({
diff --git a/src/app/(public)/_components/header.tsx b/src/app/(public)/_components/header.tsx index cfc4c10..9e06bf5 100644 --- a/src/app/(public)/_components/header.tsx +++ b/src/app/(public)/_components/header.tsx @@ -16,20 +16,22 @@ export async function Header() { return (
-
- + {/* Desktop Layout */} +
+ {/* Logo */} + - {/* Desktop Search - Hidden on mobile */} -
+ {/* Search Form */} +
- {/* Desktop Navigation - Hidden on mobile */} -
+ {/* Navigation Actions */} +
-
@@ -49,16 +51,19 @@ export async function Header() {
- - {/* Mobile Hamburger Menu */} -
- {/* Mobile Search - Visible only on mobile */} -
- + {/* Mobile Layout */} +
+ {/* Logo and Hamburger Menu */} +
+ + + + +
); -} +} \ No newline at end of file diff --git a/src/app/(public)/_components/hero.tsx b/src/app/(public)/_components/hero.tsx index 1e37ce7..7f2ad7c 100644 --- a/src/app/(public)/_components/hero.tsx +++ b/src/app/(public)/_components/hero.tsx @@ -27,12 +27,12 @@ export function Hero() { return (
-
-

+
+

Search your language

@@ -41,29 +41,29 @@ export function Hero() { type="text" placeholder="Search for your language" className="w-full max-w-xs bg-transparent rounded-tr-none rounded-br-none input input-bordered text-hacktoberfest-light border-hacktoberfest-light - focus:border-hacktoberfest-light focus:!outline-none focus-visible:!outline-none placeholder:text-hacktoberfest-light" + focus:border-hacktoberfest-light focus:!outline-none focus-visible:!outline-none placeholder:text-hacktoberfest-light text-sm sm:text-base" name="search" />
-

+

Or select the programming language you would like to find repositories for.

-
+
{mainLanguages.map(language => ( ))}
- @@ -75,7 +75,7 @@ export function Hero() {
  • {language} diff --git a/src/app/(public)/_components/mobile-menu.tsx b/src/app/(public)/_components/mobile-menu.tsx index 1e7f2e2..fecf24d 100644 --- a/src/app/(public)/_components/mobile-menu.tsx +++ b/src/app/(public)/_components/mobile-menu.tsx @@ -20,32 +20,32 @@ export function MobileMenu({ session }: MobileMenuProps) { const toggleMenu = () => setIsOpen(!isOpen); return ( -
    +
    {/* Hamburger Button */} {/* Mobile Menu Overlay */} {isOpen && ( -
    -
    +
    +
    -
    setIsOpen(false)} > - + Contributors @@ -53,10 +53,10 @@ export function MobileMenu({ session }: MobileMenuProps) { href="https://github.com/max-programming/hacktoberfest-projects" target="_blank" rel="noreferrer" - className="flex items-center gap-3 text-white hover:text-hacktoberfest-light transition-colors p-3 rounded-lg" + className="flex items-center gap-3 text-white hover:text-hacktoberfest-light transition-colors p-2 rounded-lg" onClick={() => setIsOpen(false)} > - + GitHub
    diff --git a/src/app/(public)/_components/search-form.tsx b/src/app/(public)/_components/search-form.tsx index ecd3668..9ceacc4 100644 --- a/src/app/(public)/_components/search-form.tsx +++ b/src/app/(public)/_components/search-form.tsx @@ -35,21 +35,21 @@ export function SearchForm() { } return ( -
    +
    {searchQuery && searchQuery.trim() !== '' && ( -
    +
    ); -} +} \ No newline at end of file diff --git a/src/app/(public)/repos/[language]/page.tsx b/src/app/(public)/repos/[language]/page.tsx index 63110dc..f8349b8 100644 --- a/src/app/(public)/repos/[language]/page.tsx +++ b/src/app/(public)/repos/[language]/page.tsx @@ -36,36 +36,38 @@ export default async function ReposPage({ <>
    -
    -
    -
    -
    -

    - - {repos.total_count} - {' '} - repositories for{' '} - - {sp.q - ? sp.q + ' in ' + capitalize(decodeURIComponent(language)) - : capitalize(decodeURIComponent(language))} - -

    +
    +
    +
    +
    +
    +

    + + {repos.total_count} + {' '} + repositories for{' '} + + {sp.q + ? sp.q + ' in ' + capitalize(decodeURIComponent(language)) + : capitalize(decodeURIComponent(language))} + +

    +
    +
    + + +
    + {repos.items.map(repo => ( + + ))}
    - - -
    - {repos.items.map(repo => ( - - ))} -
    +
    -
    ); diff --git a/tailwind.config.ts b/tailwind.config.ts index 739d2c8..a84eead 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -8,6 +8,11 @@ const config = { media: false, // or 'media' or 'class' theme: { extend: { + screens: { + 'xs': '320px', + // This adds support for very small screens + // Now we can use xs:text-xs, xs:px-2, etc. + }, fontFamily: { mono: ['var(--font-atkinson-hyperlegible-mono)', 'monospace'] },