File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11import { authOptions } from "@/utilities/auth" ;
22import { getServerSession } from "next-auth" ;
3+ import Link from "next/link" ;
34
45export 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ? (
You can’t perform that action at this time.
0 commit comments