-
Notifications
You must be signed in to change notification settings - Fork 3
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
4 changed files
with
24 additions
and
10 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
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,15 +1,9 @@ | ||
import LoginButton from "@/components/LoginButton"; | ||
import Navbar from "@/components/Navbar"; | ||
import Party from "@/components/Party"; | ||
import { getServerSession } from "next-auth"; | ||
|
||
export default async function Home() { | ||
const session = await getServerSession(); | ||
|
||
return ( | ||
<> | ||
<Navbar /> | ||
{session ? <Party /> : <LoginButton />} | ||
</> | ||
); | ||
return session ? <Party /> : <LoginButton />; | ||
} |
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,16 @@ | ||
export default async function Footer() { | ||
return ( | ||
<footer className="fixed bottom-0 left-0 z-20 w-full p-4 bg-white border-t border-gray-200 shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800 dark:border-gray-600"> | ||
<span className="text-sm text-gray-500 sm:text-center dark:text-gray-400"> | ||
© 2024{" "} | ||
<a | ||
href="https://assassinspartygame.vercel.app/" | ||
className="hover:underline" | ||
> | ||
Assassins™ | ||
</a> | ||
. All Rights Reserved. | ||
</span> | ||
</footer> | ||
); | ||
} |