added theme switcher, fixed themes

This commit is contained in:
lnn0q 2025-05-05 18:52:24 +03:00
parent 99f6df1a3b
commit 027deba422
6 changed files with 109 additions and 55 deletions

View file

@ -1,10 +1,11 @@
import { Heading, Input, Stack } from '@chakra-ui/react';
import { Heading, Input, Stack, Text } from '@chakra-ui/react';
import { Button } from '@client/components/ui/button';
import { Field } from '@client/components/ui/field';
import { valibotResolver } from '@hookform/resolvers/valibot';
import { createFileRoute, redirect } from '@tanstack/react-router';
import { useForm } from 'react-hook-form';
import * as v from 'valibot';
import { Link } from '../components/ui/link';
import { PasswordInput } from '../components/ui/password-input';
import { useAuth } from '../hooks/auth';
@ -20,6 +21,12 @@ function LoginComponent() {
<Stack flexDirection={'column'} justifyContent={'center'} alignItems={'center'}>
<Heading>Login</Heading>
<LoginForm />
<Text>
Don't have an account?{' '}
<Link to="/register" textDecoration="none">
Sign up
</Link>
</Text>
</Stack>
);
}