Skip to content
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

chore: improve styles in OAuth and Magic Links sections #11942

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ export function OAuthProviderSelect() {
<p className="mt-8 rounded-md">
Or jump directly to one of the popular ones below.
</p>
<div className="mt-8 flex flex-row gap-6 pb-8">
<div className="mt-8 flex flex-row gap-6 overflow-x-scroll pb-8">
<div
role="button"
onClick={() =>
handleSelectOption({ id: "google", name: "Google" })
}
className="flex h-32 w-32 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
className="flex h-32 w-32 min-w-24 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
>
<img src={`/img/providers/google.svg`} className="mt-2 w-11" />
<div className="text-center text-sm">Google</div>
</div>
<div
role="button"
className="flex h-32 w-32 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
className="flex h-32 w-32 min-w-24 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
onClick={() =>
handleSelectOption({ id: "github", name: "GitHub" })
}
Expand All @@ -82,7 +82,7 @@ export function OAuthProviderSelect() {
onClick={() =>
handleSelectOption({ id: "twitter", name: "Twitter" })
}
className="flex h-32 w-32 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
className="flex h-32 w-32 min-w-24 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
>
<img src={`/img/providers/twitter.svg`} className="mt-2 w-11" />
<div className="text-center text-sm">Twitter</div>
Expand All @@ -92,7 +92,7 @@ export function OAuthProviderSelect() {
onClick={() =>
handleSelectOption({ id: "keycloak", name: "keycloak" })
}
className="flex h-32 w-32 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
className="flex h-32 w-32 min-w-24 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
>
<img
src={`/img/providers/keycloak.svg`}
Expand All @@ -103,7 +103,7 @@ export function OAuthProviderSelect() {
<div
role="button"
onClick={() => handleSelectOption({ id: "okta", name: "okta" })}
className="flex h-32 w-32 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
className="flex h-32 w-32 min-w-24 flex-col items-center justify-between rounded-lg border border-solid border-neutral-200 p-4 shadow-sm transition-colors duration-300 hover:bg-neutral-50 dark:border-neutral-800 dark:hover:bg-neutral-950"
>
<img src={`/img/providers/okta.svg`} className="mt-2 w-11" />
<div className="text-center text-sm">Okta</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
4 changes: 2 additions & 2 deletions docs/pages/getting-started/authentication/email.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ This login mechanism starts by the user providing their email address at the log
defaultValue="resend"
className="w-full flex flex-col"
>
<RichTabs.List className="flex gap-4 flex-wrap">
<RichTabs.List className="grid grid-cols-[repeat(auto-fit,140px)] justify-center gap-4">
<RichTabs.Trigger
value="forwardemail"
orientation="vertical"
className="!border border-neutral-200 dark:border-neutral-700 aria-selected:!bg-neutral-100 aria-selected:dark:!bg-neutral-950 dark:!bg-neutral-900 !bg-white !h-auto !w-auto !gap-2 !justify-start p-6 px-8 rounded-md outline-none transition-all duration-300 hover:bg-neutral-200 !font-normal"
>
<img className="size-16 dark:bg-[currentColor]" src={`/img/providers/forwardemail.svg`} />
<div className="text-sm text-center">Forward Email</div>
<div className="text-sm text-center line-clamp-1">Forward Email</div>
</RichTabs.Trigger>
<RichTabs.Trigger
value="resend"
Expand Down
Loading