Skip to content

Commit

Permalink
feat: add auth layout
Browse files Browse the repository at this point in the history
  • Loading branch information
cravend committed Apr 25, 2023
1 parent bcbb964 commit ed5d233
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions app/(marketing)/(navlayout)/auth/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Marketing Page Layout for auth pages */

const AuthLayout = ({ children }: { children: React.ReactNode }) => (
<div className="container mx-auto pt-5">{children}</div>
);

export default AuthLayout;
4 changes: 2 additions & 2 deletions app/(marketing)/(navlayout)/auth/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const SignInPage = async ({
const errorText = errorType ? ERROR_DESCRIPTIONS[errorType] : undefined;

return (
<div className="px-10 pt-5">
<>
<h2 className="text-2xl font-bold py-3">Sign In</h2>
<span className="divider mt-0" />

Expand All @@ -74,7 +74,7 @@ const SignInPage = async ({
</div>
)}
<SignInButton />
</div>
</>
);
};

Expand Down
2 changes: 1 addition & 1 deletion app/(marketing)/(navlayout)/layout.tsx
Original file line number Diff line number Diff line change
@@ -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 }) => (
Expand Down

0 comments on commit ed5d233

Please sign in to comment.