Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function RootLayout({
disableTransitionOnChange
> */}
<Navigation />
<main className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<main className="max-w-8xl mx-32 px-4 sm:px-6 lg:px-8 py-8">
{children}
</main>
{/* </ThemeProvider> */}
Expand Down
14 changes: 10 additions & 4 deletions components/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,24 @@ import { usePathname } from "next/navigation"
import { Button } from "@/components/ui/button"
import { Avatar, AvatarFallback } from "@/components/ui/avatar"
import { ConnectButton } from '@rainbow-me/rainbowkit'
import { Zap } from "lucide-react"
import Image from "next/image"

export default function Navigation() {
const pathname = usePathname()

return (
<header className="border-b border-amber-100/60 bg-white/95 backdrop-blur-md sticky top-0 z-50 shadow-sm">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="px-4 sm:px-6 lg:px-8">
<div className="flex items-center justify-between h-16">
<Link href="/" className="flex items-center gap-3 hover:opacity-80 transition-opacity">
<div className="w-8 h-8 rounded-lg bg-gradient-to-r from-amber-600 to-orange-500 flex items-center justify-center shadow-sm">
<Zap className="w-5 h-5 text-white" />
<div className="w-8 h-8 flex items-center justify-center">
<Image
src="/block.png"
alt="HackHub Logo"
width={32}
height={32}
className="object-contain"
/>
</div>
<span className="font-bold text-xl bg-gradient-to-r from-amber-700 to-orange-600 bg-clip-text text-transparent">
HackHub
Expand Down
2 changes: 2 additions & 0 deletions types/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import React from 'react';
declare global {
namespace JSX {
interface IntrinsicElements {
body: React.DetailedHTMLProps<React.HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>;
html: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>;
[elemName: string]: any;
}
}
Expand Down