Skip to content

Commit

Permalink
make it look better
Browse files Browse the repository at this point in the history
  • Loading branch information
minhd-vu committed Feb 25, 2024
1 parent fabc67e commit 781d923
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ export default async function RootLayout({
<body className={inter.className}>
<SessionProvider session={session}>
<ThemeProvider>
<Navbar />
{children}
<Footer />
<div className="flex flex-col min-h-screen">
<Navbar />
{children}
<Footer />
</div>
</ThemeProvider>
</SessionProvider>
</body>
Expand Down
2 changes: 1 addition & 1 deletion app/leaderboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default async function Leaderboard() {
));

return (
<div className="overflow-x-auto bg-base-300">
<div className="overflow-x-auto bg-base-300 mx-4 rounded-xl">
<table className="table">
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default async function Home() {
const session = await getServerSession();

return (
<div className="min-h-screen bg-base-200">
<div className="bg-base-200 flex flex-grow justify-center pt-20">
<div>{session ? <Party /> : <Hero />}</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default async function Footer() {
return (
<footer className="footer footer-center p-4 bg-base-300 text-base-content fixed bottom-0">
<footer className="footer footer-center p-4 bg-base-300 text-base-content mt-auto">
<aside>
<p>
© 2024{" "}
Expand Down
2 changes: 1 addition & 1 deletion components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import LoginButton from "./LoginButton";

export default function Hero() {
return (
<div className="hero min-h-screen bg-base-200">
<div className="hero bg-base-200">
<div className="hero-content text-center">
<div>
<h1 className="text-5xl font-bold">Welcome to Assassins!</h1>
Expand Down

0 comments on commit 781d923

Please sign in to comment.