From cb6248c4894c017757f32620338d4d178ab7072d Mon Sep 17 00:00:00 2001 From: nishthefish06 Date: Wed, 19 Nov 2025 18:41:00 -0600 Subject: [PATCH] navbar changed to match design --- next-env.d.ts | 1 + src/app/layout.tsx | 12 ++-- src/app/page.tsx | 7 +-- src/components/NavBar.tsx | 120 +++++++++++++++++++++++++++++--------- tsconfig.json | 3 +- 5 files changed, 102 insertions(+), 41 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 1b3be08..830fb59 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 657aae2..cc57c3f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,10 +5,10 @@ import { AppRouterCacheProvider } from '@mui/material-nextjs/v15-appRouter'; import { Bai_Jamjuree, Inter } from 'next/font/google'; import { type Metadata } from 'next'; import { GoogleAnalytics } from '@next/third-parties/google'; -import Link from 'next/link'; import theme from '@src/utils/theme'; import { ToastProvider } from '@src/components/toast/ToastProvider'; +import NavBar from '@src/components/NavBar'; const inter = Inter({ subsets: ['latin'], @@ -57,17 +57,15 @@ export default function RootLayout({ > - {children} + + + {children} + {process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' && ( )} - ); diff --git a/src/app/page.tsx b/src/app/page.tsx index 652c2f2..8118d2e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,4 @@ import type { Metadata } from 'next'; -import NavBar from '@components/NavBar'; export const metadata: Metadata = { alternates: { @@ -9,9 +8,9 @@ export const metadata: Metadata = { const Home = () => { return ( - <> - - +
+ {/* Page content goes here */} +
); }; diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx index 85b5d43..260ccd1 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -1,41 +1,103 @@ -import React from 'react'; +'use client'; + +import React, { useState } from 'react'; import Link from 'next/link'; import Image from 'next/image'; -import { IconButton, Tooltip } from '@mui/material'; +import { IconButton } from '@mui/material'; +import { + InfoOutlined as InfoIcon, + HelpOutline as HelpIcon, + Share as ShareIcon, + AccountCircle as AccountCircleIcon, +} from '@mui/icons-material'; export default function NavBar() { + const [searchQuery, setSearchQuery] = useState(''); + + const handleSearch = (e: React.FormEvent) => { + e.preventDefault(); + console.log('Searching for:', searchQuery); + }; + return ( - <> -
+ ); } diff --git a/tsconfig.json b/tsconfig.json index cfc7134..4953e7c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,12 +10,13 @@ "noEmit": true, "esModuleInterop": true, "module": "esnext", - "moduleResolution": "node", + "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", "incremental": true, "noUncheckedIndexedAccess": true, + "ignoreDeprecations": "6.0", "baseUrl": ".", "paths": { "@src/*": ["./src/*"],