generated from michellepace/nextjs-base
-
Notifications
You must be signed in to change notification settings - Fork 0
style: align Clerk auth UI to Figma brand designs #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ed897c2
chore: patch CVE-2025-55183 security vulnerability
michellepace 61e26e7
style: fix font loading and apply Inter to Clerk components
michellepace aef7b97
style: add gradient button variant and Clerk theming integration
michellepace 60f0dbc
style: simplify sign-up page layout to centred single-column
michellepace 09bc212
docs: rewrite secrets reference with current platform state
michellepace 13c3f98
style: add branded logos and localised text to auth UI
michellepace 6171564
docs: add values and sensitivity guidance to Vercel env var reference
michellepace 6ff6e6c
fix: resolve Clerk auth pages failing build with cacheComponents
michellepace 9d39445
Merge branch 'main' into style/auth-ui
michellepace 00f274e
rules: fix Playwright capitalisation in tech stack
michellepace 40029d5
docs: tidy secrets reference formatting and consistency
michellepace 10993f7
chore: update @types/node and vite-tsconfig-paths to latest
michellepace File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| import { SignIn } from "@clerk/nextjs"; | ||
| import { connection } from "next/server"; | ||
| import { ClerkSignIn } from "@/components/auth/clerk-signin"; | ||
|
|
||
| export default async function SignInPage() { | ||
| await connection(); | ||
|
|
||
| return ( | ||
| <div className="flex min-h-screen items-center justify-center p-6"> | ||
| <SignIn /> | ||
| <ClerkSignIn /> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,12 @@ | ||
| import { SignUp } from "@clerk/nextjs"; | ||
| import { ChartLine, Clock, ShieldCheck, Sparkles } from "lucide-react"; | ||
| import { connection } from "next/server"; | ||
| import { ClerkSignUp } from "@/components/auth/clerk-signup"; | ||
|
|
||
| export default async function SignUpPage() { | ||
| await connection(); | ||
|
|
||
| return ( | ||
| <div className="grid min-h-screen lg:grid-cols-2"> | ||
| <div className="hidden flex-1 items-center justify-end p-6 md:p-10 lg:flex"> | ||
| <ul className="max-w-sm space-y-8"> | ||
| <li> | ||
| <div className="flex items-center gap-2"> | ||
| <Clock className="size-4" aria-hidden="true" /> | ||
| <p className="font-semibold">Save on development time</p> | ||
| </div> | ||
| <p className="text-muted-foreground mt-2 text-sm"> | ||
| Add authentication and user management to your app with just a few | ||
| lines of code. | ||
| </p> | ||
| </li> | ||
| <li> | ||
| <div className="flex items-center gap-2"> | ||
| <ChartLine className="size-4" aria-hidden="true" /> | ||
| <p className="font-semibold">Increase engagement</p> | ||
| </div> | ||
| <p className="text-muted-foreground mt-2 text-sm"> | ||
| Add intuitive UIs designed to decrease friction for your users. | ||
| </p> | ||
| </li> | ||
| <li> | ||
| <div className="flex items-center gap-2"> | ||
| <ShieldCheck className="size-4" aria-hidden="true" /> | ||
| <p className="font-semibold">Protect your users</p> | ||
| </div> | ||
| <p className="text-muted-foreground mt-2 text-sm"> | ||
| Enable features like two-step verification and enjoy automatic | ||
| security updates. | ||
| </p> | ||
| </li> | ||
| <li> | ||
| <div className="flex items-center gap-2"> | ||
| <Sparkles className="size-4" aria-hidden="true" /> | ||
| <p className="font-semibold">Match your brand</p> | ||
| </div> | ||
| <p className="text-muted-foreground mt-2 text-sm"> | ||
| Theme our pre-built components, or integrate with our easy-to-use | ||
| APIs. | ||
| </p> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
| <div className="flex flex-1 items-center justify-center p-6 md:p-10 lg:justify-start"> | ||
| <SignUp /> | ||
| </div> | ||
| <div className="flex min-h-screen items-center justify-center p-6"> | ||
| <ClerkSignUp /> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| "use client"; | ||
|
|
||
| import { SignIn } from "@clerk/nextjs"; | ||
| import { useTheme } from "next-themes"; | ||
|
|
||
| export function ClerkSignIn() { | ||
| const { resolvedTheme } = useTheme(); | ||
| const logoUrl = | ||
| resolvedTheme === "light" | ||
| ? "/images/logo-light.svg" | ||
| : "/images/logo-dark.svg"; | ||
|
|
||
| return ( | ||
| <SignIn | ||
| appearance={{ | ||
| layout: { logoImageUrl: logoUrl }, | ||
| elements: { | ||
| header: "items-start", | ||
| logoBox: "justify-start", | ||
| headerTitle: "text-left", | ||
| headerSubtitle: "text-left", | ||
| }, | ||
| }} | ||
| /> | ||
| ); | ||
| } | ||
michellepace marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| import { SignUp } from "@clerk/nextjs"; | ||
|
|
||
| export function ClerkSignUp() { | ||
| return ( | ||
| <SignUp | ||
| appearance={{ | ||
| layout: { | ||
| logoImageUrl: "/images/site-logo.svg", | ||
| }, | ||
| }} | ||
| /> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.