1+ 'use client'
2+
13import Image from 'next/image'
24import SignUpForm from '@/components/auth/signup-form'
5+ import { motion } from 'framer-motion'
36
47export default function SignUpPage ( ) {
58 return (
6- < div className = "flex flex-col h-[calc(100vh-theme(spacing.16))] items-center py-10" >
7- < div
8- className = "relative flex justify-center w-full max-w-[726px] py-4 text-center "
9- style = { { height : 200 } }
9+ < motion . div
10+ className = "flex flex-col min-h-[calc(100vh-4rem)] items-center py-6 sm:py-10"
11+ initial = { { opacity : 0 } }
12+ animate = { { opacity : 1 } }
13+ transition = { { duration : 0.3 } }
14+ >
15+ { /* Logo container with animation */ }
16+ < motion . div
17+ className = "w-full max-w-[320px] sm:max-w-[500px] md:max-w-[726px] relative aspect-[726/200] mb-6 sm:mb-10"
18+ initial = { { y : 20 } }
19+ animate = { { y : 0 } }
20+ transition = { { duration : 0.4 , delay : 0.1 } }
1021 >
1122 < Image
1223 src = "/images/masterbotslogo.png"
13- fill = { true }
24+ fill
25+ priority
1426 alt = "Masterbots Logo"
15- style = { { maxWidth : 726 , objectFit : 'contain' } }
16- className = "flex self-center"
27+ className = "object-contain"
1728 />
18- </ div >
19- < div className = "max-w-md mx-auto space-y-6" >
29+ </ motion . div >
30+
31+ { /* Form container with animation and enhanced responsiveness */ }
32+ < motion . div
33+ className = "w-full max-w-[min(100%,400px)] px-4 space-y-6"
34+ initial = { { y : 20 , opacity : 0 } }
35+ animate = { { y : 0 , opacity : 1 } }
36+ transition = { { duration : 0.4 , delay : 0.2 } }
37+ >
2038 < div className = "space-y-2 text-center" >
21- < p className = "text-muted-foreground" >
39+ < p className = "text-sm sm:text-base text- muted-foreground" >
2240 Enter your email and password to create your account.
2341 </ p >
2442 </ div >
43+
2544 < SignUpForm />
26- </ div >
27- </ div >
45+
46+ { /* Optional: Add terms and conditions notice */ }
47+ < p className = "mt-6 text-xs text-center text-muted-foreground" >
48+ By creating an account, you agree to our{ ' ' }
49+ < a href = "/terms" className = "underline hover:text-primary" >
50+ Terms of Service
51+ </ a > { ' ' }
52+ and{ ' ' }
53+ < a href = "/privacy" className = "underline hover:text-primary" >
54+ Privacy Policy
55+ </ a >
56+ </ p >
57+ </ motion . div >
58+ </ motion . div >
2859 )
2960}
0 commit comments