-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat: User Info Page with dummy data" (#201)
- Loading branch information
1 parent
de7cc74
commit 2ea4150
Showing
14 changed files
with
132 additions
and
2,600 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,36 +1,28 @@ | ||
import "../styles/globals.css"; | ||
import "../styles/custom.css"; | ||
import React, { ReactNode } from "react"; | ||
import { NextAuthProvider } from "./providers"; | ||
import { Footer } from "@/components/footer/footer"; | ||
import { Header } from "@/components/header/header"; | ||
import "@radix-ui/themes/styles.css"; | ||
import { Theme } from "@radix-ui/themes"; | ||
import React, { ReactNode } from 'react'; | ||
import { NextAuthProvider } from './providers'; | ||
import { Footer } from '@/components/footer/footer'; | ||
import { Header } from '@/components/header/header'; | ||
|
||
export const metadata = { | ||
title: "Code Review GPT", | ||
}; | ||
title: 'Code Review GPT', | ||
} | ||
|
||
export default function RootLayout({ children }: { children: ReactNode }) { | ||
export default function RootLayout({ | ||
children, | ||
}: {children: ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<head> | ||
<script | ||
type="module" | ||
src="https://md-block.verou.me/md-block.js" | ||
></script> | ||
</head> | ||
<body className="flex flex-col min-h-screen"> | ||
<Theme> | ||
<head> | ||
<script type="module" src="https://md-block.verou.me/md-block.js"></script> | ||
</head> | ||
<body> | ||
<NextAuthProvider> | ||
<Header /> | ||
<main className="flex flex-col flex-grow mb-16"> | ||
{children} | ||
</main> | ||
{children} | ||
<Footer /> | ||
</NextAuthProvider> | ||
</Theme> | ||
</body> | ||
</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
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
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
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
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,45 +1,28 @@ | ||
"use client"; | ||
"use client" | ||
import Image from "next/image"; | ||
import { SignInButton } from "@/components/buttons/signIn"; | ||
import { useSession } from "next-auth/react"; | ||
import { SignOutButton } from "../buttons/signOut"; | ||
import HeaderButton from "../buttons/headerBtn"; | ||
import Link from "next/link"; | ||
import { SignInButton } from '@/components/buttons/signIn'; | ||
import { useSession } from 'next-auth/react'; | ||
import { SignOutButton } from '../buttons/signOut'; | ||
|
||
export const Header = (): JSX.Element => { | ||
const { data: session } = useSession(); | ||
|
||
return ( | ||
<header className="flex flex-row navbar justify-between items-center m-5"> | ||
<div className="flex items-center"> | ||
<div className="rounded-full overflow-hidden w-16 h-16"> | ||
<Image | ||
src="/icon.png" | ||
alt={"orion logo"} | ||
width={100} | ||
height={100} | ||
layout="responsive" | ||
/> | ||
</div> | ||
<Link className="text-4xl font-mono ml-4" href="/"> | ||
<header className="flex flex-row navbar justify-between items-center"> | ||
<Image src="/icon.png" alt={"orion logo"} width={100} height={100} /> | ||
<h1 className="text-4xl font-mono"> | ||
Code Review GPT | ||
</Link> | ||
</div> | ||
<div className="flex items-center"> | ||
{session ? ( | ||
<div className="flex items-center"> | ||
<HeaderButton text="Profile" route="/profile" /> | ||
<div className="flex flex-col"> | ||
<SignOutButton /> | ||
</div> | ||
</div> | ||
) : ( | ||
<SignInButton /> | ||
)} | ||
</div> | ||
</h1> | ||
{ session ? ( | ||
<div className="flex flex-col"> | ||
{session.user?.email} | ||
<SignOutButton /> | ||
</div> | ||
) : ( | ||
<SignInButton /> | ||
)} | ||
</header> | ||
); | ||
}; | ||
|
||
Header.displayName = "Header"; | ||
export default Header; | ||
Header.displayName = 'Header'; | ||
export default Header; |
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
This file was deleted.
Oops, something went wrong.