From ae38a7c1dac19a476d97795f3fc09ee65c0f0c7e Mon Sep 17 00:00:00 2001 From: Shashidhar B M <112196062+ShashidharM0118@users.noreply.github.com> Date: Sun, 9 Nov 2025 19:53:13 +0530 Subject: [PATCH 1/2] feat: mobile responsive home page with sidebar navigation --- app/layout.tsx | 2 +- app/page.tsx | 102 +++++++++++++------------- components/navigation.tsx | 148 ++++++++++++++++++++++++++++++++------ 3 files changed, 183 insertions(+), 69 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 5473e1c..06448b4 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -27,7 +27,7 @@ export default function RootLayout({ disableTransitionOnChange > */} -
+
{children}
{/* */} diff --git a/app/page.tsx b/app/page.tsx index db302fb..84e623e 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -211,15 +211,23 @@ export default function HomePage() { return (
{/* Hero Section - Full Viewport Height */} -
-
-
+
+
+ HackHub - Think, Build, Innovate +
+ +
+
{/* Left side - Welcome to HackHub */} -
+
{/* Main heading with enhanced styling */} -
-

+
+

- + {/* Accent line */} -
+
-
-

+

+

- {/* Right side - HackHub image */} -
-
- HackHub - Think, Build, Innovate -
+ {/* Right side - Image shown below text on mobile/tablet */} +
+ HackHub - Think, Build, Innovate
{/* Scroll Indicator */} -
-
- Scroll to explore - +
+
+ Scroll to explore +
{/* Revolution Section with Hackathons Carousel */} -
-
-
+
+
+
{/* Revolution Text - Moved Higher */} -
+
{/* Small decorative elements */} -
-
+
+
-

+

Think. Build. Innovate.

{/* Accent line */} -
+
{/* Sync Button */} -
+
@@ -421,13 +427,13 @@ export default function HomePage() { {/* Empty State - Right Side */} {!loading && !error && recentHackathons.length === 0 && ( -
-
- -

No hackathons found

-

Be the first to create an exciting hackathon!

+
+
+ +

No hackathons found

+

Be the first to create an exciting hackathon!

- diff --git a/components/navigation.tsx b/components/navigation.tsx index 16b6895..57a8490 100644 --- a/components/navigation.tsx +++ b/components/navigation.tsx @@ -2,9 +2,12 @@ import Link from "next/link" import { usePathname } from "next/navigation" +import { useState } from "react" import { Button } from "@/components/ui/button" import { Avatar, AvatarFallback } from "@/components/ui/avatar" import { ConnectButton } from '@rainbow-me/rainbowkit' +import { Menu, X } from "lucide-react" + // Helper function to get the correct image path for GitHub Pages const getImagePath = (path: string) => { // For static export, we need to ensure the path works with GitHub Pages @@ -13,27 +16,29 @@ const getImagePath = (path: string) => { export default function Navigation() { const pathname = usePathname() + const [mobileMenuOpen, setMobileMenuOpen] = useState(false) return ( -
-
-
- -
- HackHub Logo -
- - HackHub - - - -
+ + {/* Mobile Menu Sidebar */} + {mobileMenuOpen && ( + <> + {/* Overlay */} +
setMobileMenuOpen(false)} + /> + + {/* Sidebar */} +
+
+ {/* Header */} +
+ + Menu + + +
+ + {/* Navigation Links */} + + + {/* Connect Wallet Button at Bottom */} +
+ +
+
+
+ + )} + ) } \ No newline at end of file From 88063261834e12230fbb964d115a570a993e58fc Mon Sep 17 00:00:00 2001 From: Shashidhar B M <112196062+ShashidharM0118@users.noreply.github.com> Date: Mon, 10 Nov 2025 10:24:02 +0530 Subject: [PATCH 2/2] feat: mobile responsive of explore page --- app/explorer/page.tsx | 86 +++++++++++++++++++++---------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/app/explorer/page.tsx b/app/explorer/page.tsx index 810339e..6d205a9 100644 --- a/app/explorer/page.tsx +++ b/app/explorer/page.tsx @@ -388,18 +388,18 @@ function ExplorerPageContent() { if (loading) { return ( -
+
-

+

Explore Hackathons

- -

Loading hackathons from blockchain...

-

+ +

Loading hackathons from blockchain...

+

{isConnected ? `Fetching from ${getNetworkName(chainId)}` : 'Please connect your wallet'}

@@ -410,12 +410,12 @@ function ExplorerPageContent() { if (error) { return ( -
+
-

+

Explore Hackathons

-

Discover amazing Web3 hackathons and join the innovation

+

Discover amazing Web3 hackathons and join the innovation

{/* Network Status */}
@@ -461,21 +461,21 @@ function ExplorerPageContent() { } return ( -
+
-
-
-

+
+
+

Explore Hackathons

-
-
+
+
{/* Search and Filters */} -
+
-
+