- Introduced Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage components for structured form handling. - Added Input, Textarea, and Select components for user input. - Implemented Label and Separator components for better UI organization. - Created Skeleton component for loading states. - Developed Toast and Toaster components for user notifications. - Integrated useToast hook for managing toast notifications. - Established AI analysis functionality with analyzeJournalWithLocalAI. - Set up Dexie for local database management with Journal and Task models. - Configured Supabase client for server-side and browser-side interactions. - Defined database schema for journals, tasks, chat sessions, and messages with Row Level Security policies. Co-authored-by: Copilot <copilot@github.com>
43 lines
1.6 KiB
TypeScript
43 lines
1.6 KiB
TypeScript
import { login, signup } from './actions'
|
||
import { Button } from '@/components/ui/button'
|
||
import { Input } from '@/components/ui/input'
|
||
import { Label } from '@/components/ui/label'
|
||
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card'
|
||
|
||
export default function LoginPage() {
|
||
return (
|
||
<div className="flex items-center justify-center min-h-screen bg-background">
|
||
<Card className="w-full max-w-md">
|
||
<CardHeader className="space-y-1">
|
||
<CardTitle className="text-2xl font-bold text-center">MindSpace</CardTitle>
|
||
<CardDescription className="text-center">
|
||
Hesabınıza giriş yapın veya yeni hesap oluşturun
|
||
</CardDescription>
|
||
</CardHeader>
|
||
<CardContent>
|
||
<form>
|
||
<div className="space-y-4">
|
||
<div className="space-y-2">
|
||
<Label htmlFor="email">E-posta</Label>
|
||
<Input id="email" name="email" type="email" placeholder="ornek@mail.com" required />
|
||
</div>
|
||
<div className="space-y-2">
|
||
<Label htmlFor="password">Şifre</Label>
|
||
<Input id="password" name="password" type="password" required />
|
||
</div>
|
||
</div>
|
||
<div className="flex flex-col space-y-2 mt-6">
|
||
<Button formAction={login} className="w-full">
|
||
Giriş Yap
|
||
</Button>
|
||
<Button formAction={signup} variant="outline" className="w-full">
|
||
Kayıt Ol
|
||
</Button>
|
||
</div>
|
||
</form>
|
||
</CardContent>
|
||
</Card>
|
||
</div>
|
||
)
|
||
}
|