diff --git a/app/(api)/_actions/placeholder.ts b/app/(api)/_actions/placeholder.ts index b01da3b..4bd8276 100644 --- a/app/(api)/_actions/placeholder.ts +++ b/app/(api)/_actions/placeholder.ts @@ -1 +1 @@ -// empty file \ No newline at end of file +// empty file diff --git a/app/(api)/_data/placeholder.json b/app/(api)/_data/placeholder.json index 9e26dfe..0967ef4 100644 --- a/app/(api)/_data/placeholder.json +++ b/app/(api)/_data/placeholder.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/app/(api)/_utils/placeholder.ts b/app/(api)/_utils/placeholder.ts index b01da3b..4bd8276 100644 --- a/app/(api)/_utils/placeholder.ts +++ b/app/(api)/_utils/placeholder.ts @@ -1 +1 @@ -// empty file \ No newline at end of file +// empty file diff --git a/app/(api)/api/placeholder.ts b/app/(api)/api/placeholder.ts index b01da3b..4bd8276 100644 --- a/app/(api)/api/placeholder.ts +++ b/app/(api)/api/placeholder.ts @@ -1 +1 @@ -// empty file \ No newline at end of file +// empty file diff --git a/app/(pages)/(about-us)/about-us/page.tsx b/app/(pages)/(about-us)/about-us/page.tsx index cb8aed1..daa8ec8 100644 --- a/app/(pages)/(about-us)/about-us/page.tsx +++ b/app/(pages)/(about-us)/about-us/page.tsx @@ -1,7 +1,3 @@ -export default function AboutUs(){ - return( -
- Halo this is the about us page! -
- ) -} \ No newline at end of file +export default function AboutUs() { + return
Halo this is the about us page!
; +} diff --git a/app/(pages)/_components/Navbar/Navbar.tsx b/app/(pages)/_components/Navbar/Navbar.tsx index af2e458..9cc85b2 100644 --- a/app/(pages)/_components/Navbar/Navbar.tsx +++ b/app/(pages)/_components/Navbar/Navbar.tsx @@ -28,12 +28,17 @@ export default function Navbar() { const sectionEnd = offsetTop + offsetHeight; // Check if scroll position is within this section's range - if (scrollPosition >= sectionStart - 100 && scrollPosition < sectionEnd - 100) { + if ( + scrollPosition >= sectionStart - 100 && + scrollPosition < sectionEnd - 100 + ) { newActiveSection = section; } // Calculate distance to section if it's not the active section - const distance = Math.abs(scrollPosition - (sectionStart + sectionEnd) / 2); + const distance = Math.abs( + scrollPosition - (sectionStart + sectionEnd) / 2 + ); if (distance < closestDistance) { closestDistance = distance; closestSection = section; @@ -61,38 +66,37 @@ export default function Navbar() { return (
-
-
- White HackDavis Logo -
-
-

scrollToSection('about')} - className={`${styles.navLink} ${ - activeSection === 'about' ? styles.active : '' - }`} - > - ABOUT -

-

scrollToSection('faq')} - className={`${styles.navLink} ${ - activeSection === 'faq' ? styles.active : '' - }`} - > - FAQ -

-

scrollToSection('sponsors')} - className={`${styles.navLink} ${ - activeSection === 'sponsors' ? styles.active : '' - }`} - > - SPONSORS -

-
+
+
+ White HackDavis Logo
+
+

scrollToSection('about')} + className={`${styles.navLink} ${ + activeSection === 'about' ? styles.active : '' + }`} + > + ABOUT +

+

scrollToSection('faq')} + className={`${styles.navLink} ${ + activeSection === 'faq' ? styles.active : '' + }`} + > + FAQ +

+

scrollToSection('sponsors')} + className={`${styles.navLink} ${ + activeSection === 'sponsors' ? styles.active : '' + }`} + > + SPONSORS +

+
+
- ); } diff --git a/app/(pages)/_contexts/placeholder.tsx b/app/(pages)/_contexts/placeholder.tsx index b01da3b..4bd8276 100644 --- a/app/(pages)/_contexts/placeholder.tsx +++ b/app/(pages)/_contexts/placeholder.tsx @@ -1 +1 @@ -// empty file \ No newline at end of file +// empty file diff --git a/app/(pages)/_data/placeholder.tsx b/app/(pages)/_data/placeholder.tsx index b01da3b..4bd8276 100644 --- a/app/(pages)/_data/placeholder.tsx +++ b/app/(pages)/_data/placeholder.tsx @@ -1 +1 @@ -// empty file \ No newline at end of file +// empty file diff --git a/app/(pages)/_globals/fonts.ts b/app/(pages)/_globals/fonts.ts index 946ab5a..f169136 100644 --- a/app/(pages)/_globals/fonts.ts +++ b/app/(pages)/_globals/fonts.ts @@ -14,4 +14,4 @@ const fonts = [inter, montserrat]; const font_variables = fonts.map((font) => font.variable); const font_string = font_variables.join(' '); -export default font_string; \ No newline at end of file +export default font_string; diff --git a/app/(pages)/_hooks/empty.ts b/app/(pages)/_hooks/empty.ts index b01da3b..4bd8276 100644 --- a/app/(pages)/_hooks/empty.ts +++ b/app/(pages)/_hooks/empty.ts @@ -1 +1 @@ -// empty file \ No newline at end of file +// empty file diff --git a/app/(pages)/layout.tsx b/app/(pages)/layout.tsx index 395ccfa..5ccd153 100644 --- a/app/(pages)/layout.tsx +++ b/app/(pages)/layout.tsx @@ -1,9 +1,9 @@ -import type { Metadata } from "next"; +import type { Metadata } from 'next'; import '@globals/styles/globals.scss'; import metadataJSON from '@app/(pages)/_globals/metadata.json'; -import fonts from "./_globals/fonts"; -import Navbar from "@app/(pages)/_components/Navbar/Navbar"; -import Footer from "@app/(pages)/_components/Footer/Footer"; +import fonts from './_globals/fonts'; +import Navbar from '@app/(pages)/_components/Navbar/Navbar'; +import Footer from '@app/(pages)/_components/Footer/Footer'; export const metadata: Metadata = metadataJSON; @@ -14,9 +14,7 @@ export default function RootLayout({ }>) { return ( - + {children}