From ed5d23325d217cf83b4449beaeda5726882f7967 Mon Sep 17 00:00:00 2001 From: Dalton Craven Date: Mon, 24 Apr 2023 23:22:23 -0400 Subject: [PATCH] feat: add auth layout --- app/(marketing)/(navlayout)/auth/layout.tsx | 7 +++++++ app/(marketing)/(navlayout)/auth/signin/page.tsx | 4 ++-- app/(marketing)/(navlayout)/layout.tsx | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 app/(marketing)/(navlayout)/auth/layout.tsx diff --git a/app/(marketing)/(navlayout)/auth/layout.tsx b/app/(marketing)/(navlayout)/auth/layout.tsx new file mode 100644 index 00000000..e24d002d --- /dev/null +++ b/app/(marketing)/(navlayout)/auth/layout.tsx @@ -0,0 +1,7 @@ +/* Marketing Page Layout for auth pages */ + +const AuthLayout = ({ children }: { children: React.ReactNode }) => ( +
{children}
+); + +export default AuthLayout; diff --git a/app/(marketing)/(navlayout)/auth/signin/page.tsx b/app/(marketing)/(navlayout)/auth/signin/page.tsx index 7879ca84..8a960fad 100644 --- a/app/(marketing)/(navlayout)/auth/signin/page.tsx +++ b/app/(marketing)/(navlayout)/auth/signin/page.tsx @@ -49,7 +49,7 @@ const SignInPage = async ({ const errorText = errorType ? ERROR_DESCRIPTIONS[errorType] : undefined; return ( -
+ <>

Sign In

@@ -74,7 +74,7 @@ const SignInPage = async ({
)} - + ); }; diff --git a/app/(marketing)/(navlayout)/layout.tsx b/app/(marketing)/(navlayout)/layout.tsx index 2c8e1395..d89b88f1 100644 --- a/app/(marketing)/(navlayout)/layout.tsx +++ b/app/(marketing)/(navlayout)/layout.tsx @@ -1,4 +1,4 @@ -/* Marketing Page Layout */ +/* Marketing Page Layout for non-home pages */ import MarketingNavbar from "@/app/(marketing)/MarketingNavbar"; const NavLayout = ({ children }: { children: React.ReactNode }) => (