Skip to content

Commit dfa647f

Browse files
author
topstar210
committed
chore: upgrade some styles
1 parent 7a473d7 commit dfa647f

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

app/(home)/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { authOptions } from "@/utilities/auth";
22
import { getServerSession } from "next-auth";
3+
import Link from "next/link";
34

45
export default async function Home() {
56
const session = await getServerSession(authOptions);
@@ -11,6 +12,9 @@ export default async function Home() {
1112
? " Welcome! You Signed In Successfully"
1213
: "You are not Signed In."}
1314
</h1>
15+
<div className="text-center text-3xl py-16">
16+
<Link href={'/my/dashboard'} className="underline">Go to dashboard</Link>
17+
</div>
1418
</main>
1519
);
1620
}

app/(portal)/my/dashboard/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export default async function Dashboard() {
1414
<p className="text-4xl font-semibold">Hi {session?.user?.name}!</p>
1515
)}
1616
</h2>
17+
<div className="text-center text-3xl py-16">
18+
This is a protected dashboard
19+
</div>
1720
</main>
1821
);
1922
}

components/Menus/DesktopNav.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ const DesktopNav = () => {
1111
className={`hidden mx-auto max-w-5xl px-6 lg:flex justify-between items-center py-6`}
1212
>
1313
<div className="flex items-center">
14-
<h1 className="text-3xl font-semibold">
15-
<Link href="/">Rocket NextJs</Link>
16-
</h1>
14+
<Link href="/" className="flex items-center text-3xl"> <img
15+
alt="Flowbite React Logo"
16+
className="mr-3 h-8 sm:h-10"
17+
src="/logo.png"
18+
/> NextJs</Link>
1719
</div>
1820
<div className="flex items-center cursor-pointer">
1921
{session ? (

0 commit comments

Comments
 (0)