Skip to content

Commit c0a6390

Browse files
Replace HTML buttons with shadcn UI Button components for sign in/sign up
- Added Button import from @/components/ui/button - Replaced Sign In button with Button variant='outline' - Replaced Sign Up button with Button variant='default' - Maintains existing styling and functionality Fixes #7 Co-authored-by: Tom Phillips <tomphill@users.noreply.github.com>
1 parent 7ee6242 commit c0a6390

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/app/layout.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
SignedOut,
99
UserButton,
1010
} from "@clerk/nextjs";
11+
import { Button } from "@/components/ui/button";
1112
import "./globals.css";
1213

1314
const geistSans = Geist({
@@ -41,14 +42,14 @@ export default function RootLayout({
4142
<div className="flex gap-2">
4243
<SignedOut>
4344
<SignInButton mode="modal">
44-
<button className="px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
45+
<Button variant="outline">
4546
Sign In
46-
</button>
47+
</Button>
4748
</SignInButton>
4849
<SignUpButton mode="modal">
49-
<button className="px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
50+
<Button variant="default">
5051
Sign Up
51-
</button>
52+
</Button>
5253
</SignUpButton>
5354
</SignedOut>
5455
<SignedIn>

0 commit comments

Comments
 (0)