signup wrapper fixed

This commit is contained in:
root 2026-02-14 21:42:02 +05:00
parent a556120950
commit c15b7d8ab7

View File

@ -1,13 +1,13 @@
"use client"
import { useState } from "react"
import { useState, Suspense } from "react"
import { motion } from "framer-motion"
import { Mail, Lock, Loader2, User, ShoppingBag, Truck, Zap } from "lucide-react"
import Link from "next/link"
import { useRouter, useSearchParams } from "next/navigation"
import { signIn } from "next-auth/react"
export default function SignupPage() {
function SignupFormContent() {
const [loading, setLoading] = useState(false)
const [error, setError] = useState("")
const router = useRouter()
@ -50,13 +50,6 @@ export default function SignupPage() {
}
return (
<div className="min-h-screen flex items-center justify-center p-4 md:p-6 relative overflow-hidden auth-glass-dark">
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6 }}
className="w-full max-w-lg relative z-10"
>
<div className="bg-white/5 backdrop-blur-xl rounded-2xl md:rounded-3xl p-6 md:p-8 border border-white/10">
<div className="text-center mb-8">
<div className="inline-flex items-center justify-center gap-3 mb-4">
@ -226,6 +219,25 @@ export default function SignupPage() {
</div>
</div>
</div>
)
}
export default function SignupPage() {
return (
<div className="min-h-screen flex items-center justify-center p-4 md:p-6 relative overflow-hidden auth-glass-dark">
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.6 }}
className="w-full max-w-lg relative z-10"
>
<Suspense fallback={
<div className="bg-white/5 backdrop-blur-xl rounded-2xl md:rounded-3xl p-6 md:p-8 border border-white/10 flex items-center justify-center min-h-[400px]">
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
</div>
}>
<SignupFormContent />
</Suspense>
</motion.div>
</div>
)