-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
114 additions
and
75 deletions.
There are no files selected for viewing
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 @@ | ||
OPENAI_API_KEY=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 |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
import { PropsWithChildren } from "react"; | ||
import { Content } from "./project-layout/Content"; | ||
import Footer from "./project-layout/Footer"; | ||
import { Header } from "./project-layout/Header"; | ||
import { Wrapper } from "./project-layout/Wrapper"; | ||
|
||
/** | ||
* Responsive web UI layout for RheumInfo. | ||
* Includes a header with responsive navigation menu and a footer. | ||
*/ | ||
export const ProjectLayout: React.FC<PropsWithChildren> = ({ children }) => { | ||
return ( | ||
<Wrapper> | ||
<Header /> | ||
<Content>{children}</Content> | ||
<Footer /> | ||
</Wrapper> | ||
); | ||
}; |
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,24 @@ | ||
import type { PropsWithChildren } from "react"; | ||
import clsx from "clsx"; | ||
|
||
export interface ContentProps { | ||
containerPaddingStyle?: string; | ||
extraClassName?: string; | ||
} | ||
|
||
/** | ||
* Content wrapper of ProjectLayout that sets responsive max widths, padding, etc. and renders its | ||
* children inside of a `<main>..</main>` block. | ||
*/ | ||
export const Content: React.FC<PropsWithChildren<ContentProps>> = ({ | ||
extraClassName, | ||
children, | ||
}) => { | ||
return ( | ||
<main | ||
className={clsx("flex-1 w-screen pb-12 xl:py-0 mx-0 z-0", extraClassName)} | ||
> | ||
{children} | ||
</main> | ||
); | ||
}; |
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 @@ | ||
const Footer: React.FC = () => { | ||
return <div className="w-screen"></div>; | ||
}; | ||
|
||
export default Footer; |
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,3 @@ | ||
export const Header: React.FC = () => { | ||
return <div></div>; | ||
}; |
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,8 @@ | ||
import { PropsWithChildren } from "react"; | ||
|
||
/** | ||
* Wrapper component for children of ProjectLayout that resets z-index and defines the base flex column layout. | ||
*/ | ||
export const Wrapper: React.FC<PropsWithChildren<{}>> = ({ children }) => { | ||
return <div className="min-h-screen">{children}</div>; | ||
}; |
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,17 @@ | ||
import { ProjectLayout } from "@/components/layout/ProjectLayout"; | ||
import "@/styles/globals.css"; | ||
import type { AppProps } from "next/app"; | ||
import Head from "next/head"; | ||
|
||
export default function App({ Component, pageProps }: AppProps) { | ||
return ( | ||
<div> | ||
<Head> | ||
<title></title> | ||
</Head> | ||
<ProjectLayout> | ||
<Component {...pageProps} /> | ||
</ProjectLayout> | ||
</div> | ||
); | ||
} |
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 { Html, Head, Main, NextScript } from 'next/document' | ||
|
||
export default function Document() { | ||
return ( | ||
<Html lang="en"> | ||
<Head /> | ||
<body> | ||
<Main /> | ||
<NextScript /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction | ||
import type { NextApiRequest, NextApiResponse } from 'next' | ||
|
||
type Data = { | ||
name: string | ||
} | ||
|
||
export default function handler( | ||
req: NextApiRequest, | ||
res: NextApiResponse<Data> | ||
) { | ||
res.status(200).json({ name: 'John Doe' }) | ||
} |
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,8 @@ | ||
import React, { useState } from "react"; | ||
import { Inter } from "next/font/google"; | ||
|
||
const inter = Inter({ subsets: ["latin"] }); | ||
|
||
export default function Home() { | ||
return <div></div>; | ||
} |
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,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |