feat(ui): Improve login card design and theme customization
Refactor the `Button` component, add new `LoginCard` component, update `ThemePicker` component, edit global CSS styles to include card background and foreground and style the login page, including the logo and login form.
This commit is contained in:
parent
9f9c2157f5
commit
4f4e73318a
11 changed files with 122 additions and 29 deletions
|
@ -1,6 +1,6 @@
|
|||
import { signIn } from '@/auth';
|
||||
import LabeledInput from '@/components/labeled-input';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Button } from '@/components/custom-ui/button';
|
||||
import { AuthError } from 'next-auth';
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Button } from '../ui/button';
|
||||
import { Button } from '../custom-ui/button';
|
||||
import Link from 'next/link';
|
||||
|
||||
export function RedirectButton({
|
||||
|
|
|
@ -22,7 +22,6 @@ export default function SSOLogin({
|
|||
type='submit'
|
||||
variant='secondary'
|
||||
icon={faOpenid}
|
||||
icon={faOpenid}
|
||||
>
|
||||
Login with {providerDisplayName}
|
||||
</IconButton>
|
||||
|
|
|
@ -4,7 +4,7 @@ import * as React from 'react';
|
|||
import { Moon, Sun } from 'lucide-react';
|
||||
import { useTheme } from 'next-themes';
|
||||
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Button } from '@/components/custom-ui/button';
|
||||
import {
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue