Site Yönetimi,Kullanıcı Girişi,Karanlık mod özellikleri db bağlantıları.

This commit is contained in:
2026-01-08 23:56:28 +03:00
parent 6e02336827
commit ddf28e1892
40 changed files with 2545 additions and 96 deletions

View File

@@ -3,7 +3,7 @@
import { useState } from "react"
import { useRouter } from "next/navigation"
import Link from "next/link"
import { supabase } from "@/lib/supabase"
import { createClient } from "@/lib/supabase-browser"
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"
@@ -11,6 +11,7 @@ import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }
import { AlertCircle, Loader2 } from "lucide-react"
export default function LoginPage() {
const supabase = createClient()
const router = useRouter()
const [email, setEmail] = useState("")
const [password, setPassword] = useState("")
@@ -33,7 +34,7 @@ export default function LoginPage() {
return
}
router.push("/")
router.push("/dashboard")
router.refresh()
} catch (err: any) {
setError("Bir hata oluştu. Lütfen tekrar deneyin.")