-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move non-Admin page components into route group (#194)
- Since `usePathname` requires a Client Component and the Root Layout must be a Server Component, create a route group for the main site - The Admin site will have it's own layout (without main Navbar/Footer) - Move application form components into `@/lib/components/forms` - Update imports in application form sections accordingly - Refactor `SceneLayout` for canvas scene - Include brown background color on `body` for main layout
- Loading branch information
Showing
71 changed files
with
63 additions
and
39 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...pp/apply/sections/Form/AgeInformation.tsx → ...n)/apply/sections/Form/AgeInformation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../apply/sections/Form/BasicInformation.tsx → .../apply/sections/Form/BasicInformation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...pply/sections/Form/ProfileInformation.tsx → ...pply/sections/Form/ProfileInformation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...apply/sections/Form/SchoolInformation.tsx → ...apply/sections/Form/SchoolInformation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
body { | ||
color: var(--color-cream); | ||
background-color: var(--color-brown); | ||
} | ||
|
||
p { | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { PropsWithChildren } from "react"; | ||
|
||
import type { Metadata } from "next"; | ||
|
||
import water from "@/assets/backgrounds/water.jpg"; | ||
import SceneLayout from "@/components/dom/SceneLayout"; | ||
import Footer from "@/lib/components/Footer/Footer"; | ||
import NavbarParent from "@/lib/components/Navbar/NavbarParent"; | ||
|
||
import "./globals.css"; | ||
|
||
export const metadata: Metadata = { | ||
title: "IrvineHacks 2024", | ||
description: | ||
"IrvineHacks is Hack at UCI's premier hackathon for collegiate students.", | ||
}; | ||
|
||
export default function Layout({ children }: PropsWithChildren) { | ||
return ( | ||
<div | ||
style={{ backgroundImage: `url(${water.src})` }} | ||
className="overflow-x-hidden bg-top bg-repeat-y bg-[length:100%]" | ||
> | ||
{/* reference: https://github.com/pmndrs/react-three-next */} | ||
<NavbarParent /> | ||
<SceneLayout>{children}</SceneLayout> | ||
<Footer /> | ||
</div> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function AdminDemo() { | ||
return <div>AdminDemo</div>; | ||
} | ||
|
||
export default AdminDemo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Metadata } from "next/types"; | ||
|
||
import { PropsWithChildren } from "react"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Admin | IrvineHacks 2024", | ||
}; | ||
|
||
function Layout({ children }: PropsWithChildren) { | ||
return <div style={{ color: "red" }}>{children}</div>; | ||
} | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,9 @@ | ||
import type { Metadata } from "next"; | ||
import water from "@/assets/backgrounds/water.jpg"; | ||
import Footer from "@/lib/components/Footer/Footer"; | ||
import "./globals.css"; | ||
import { PropsWithChildren } from "react"; | ||
|
||
import { Layout } from "@/components/dom/Layout"; | ||
import NavbarParent from "@/lib/components/Navbar/NavbarParent"; | ||
|
||
export const metadata: Metadata = { | ||
title: "IrvineHacks 2024", | ||
description: | ||
"IrvineHacks is Hack at UCI's premier hackathon for collegiate students.", | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
export default function RootLayout({ children }: PropsWithChildren) { | ||
return ( | ||
<html lang="en"> | ||
<body | ||
style={{ | ||
backgroundImage: `url(${water.src})`, | ||
}} | ||
className="overflow-x-hidden bg-top bg-repeat-y bg-[length:100%]" | ||
> | ||
{/* reference: https://github.com/pmndrs/react-three-next */} | ||
<NavbarParent /> | ||
<Layout>{children}</Layout> | ||
<Footer /> | ||
</body> | ||
<body>{children}</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.