22
33import { authClient } from '@databuddy/auth/client' ;
44import {
5- WarningCircleIcon ,
6- CheckCircleIcon ,
75 CaretLeftIcon ,
6+ CheckCircleIcon ,
87 EyeIcon ,
98 EyeSlashIcon ,
9+ GithubLogoIcon ,
10+ GoogleLogoIcon ,
1011 InfoIcon ,
1112 SpinnerIcon ,
12- GoogleLogoIcon ,
13- GithubLogoIcon ,
13+ WarningCircleIcon ,
1414} from '@phosphor-icons/react' ;
1515import Link from 'next/link' ;
1616import { useRouter , useSearchParams } from 'next/navigation' ;
@@ -222,7 +222,7 @@ function RegisterPageContent() {
222222
223223 < div className = "flex flex-col space-y-3" >
224224 < Button
225- className = "w-full bg-amber-500 text-white hover:bg-amber-600 text-sm sm:text-base"
225+ className = "w-full bg-amber-500 text-sm text- white hover:bg-amber-600 sm:text-base"
226226 disabled = { isLoading }
227227 onClick = { resendVerificationEmail }
228228 >
@@ -233,14 +233,16 @@ function RegisterPageContent() {
233233 </ >
234234 ) : (
235235 < >
236- < span className = "hidden sm:inline" > Resend verification email</ span >
236+ < span className = "hidden sm:inline" >
237+ Resend verification email
238+ </ span >
237239 < span className = "sm:hidden" > Resend email</ span >
238240 </ >
239241 ) }
240242 </ Button >
241243
242244 < Button
243- className = "w-full border-amber-200 text-amber-700 hover:bg-amber-50 text-sm sm:text-base"
245+ className = "w-full border-amber-200 text-amber-700 text-sm hover:bg-amber-50 sm:text-base"
244246 onClick = { ( ) => setRegistrationStep ( 'form' ) }
245247 variant = "outline"
246248 >
@@ -262,7 +264,7 @@ function RegisterPageContent() {
262264 </ div >
263265
264266 < Button
265- className = "w-full bg-green-500 text-white hover:bg-green-600 text-sm sm:text-base"
267+ className = "w-full bg-green-500 text-sm text- white hover:bg-green-600 sm:text-base"
266268 onClick = { ( ) => router . push ( '/login' ) }
267269 >
268270 < span className = "hidden sm:inline" > Continue to login</ span >
@@ -273,7 +275,7 @@ function RegisterPageContent() {
273275
274276 const renderFormContent = ( ) => (
275277 < div className = "space-y-4" >
276- < div className = "grid grid-cols-1 gap-2 sm:grid-cols-2 -mt-4 " >
278+ < div className = "-mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2" >
277279 < Button
278280 className = "flex h-11 w-full cursor-pointer items-center justify-center transition-all duration-200 hover:bg-primary/5"
279281 disabled = { isLoading }
@@ -315,7 +317,7 @@ function RegisterPageContent() {
315317 </ Label >
316318 < Input
317319 autoComplete = "name"
318- className = "h-11 bg-input border-none transition-all duration-200 focus:ring-2 focus:ring-primary/20 placeholder:text-muted-foreground/50 "
320+ className = "h-11 border-none bg-input transition-all duration-200 placeholder:text-muted-foreground/50 focus:ring-2 focus:ring-primary/20"
319321 disabled = { isLoading }
320322 id = "name"
321323 name = "name"
@@ -333,7 +335,7 @@ function RegisterPageContent() {
333335 </ Label >
334336 < Input
335337 autoComplete = "email"
336- className = "h-11 bg-input border-none transition-all duration-200 focus:ring-2 focus:ring-primary/20 placeholder:text-muted-foreground/50 "
338+ className = "h-11 border-none bg-input transition-all duration-200 placeholder:text-muted-foreground/50 focus:ring-2 focus:ring-primary/20"
337339 disabled = { isLoading }
338340 id = "email"
339341 name = "email"
@@ -366,7 +368,7 @@ function RegisterPageContent() {
366368 < div className = "relative" >
367369 < Input
368370 autoComplete = "new-password"
369- className = "h-11 pr-10 bg-input border-none transition-all duration-200 focus:ring-2 focus:ring-primary/20 placeholder:text-muted-foreground/50 "
371+ className = "h-11 border-none bg-input pr-10 transition-all duration-200 placeholder:text-muted-foreground/50 focus:ring-2 focus:ring-primary/20"
370372 disabled = { isLoading }
371373 id = "password"
372374 minLength = { 8 }
@@ -404,7 +406,7 @@ function RegisterPageContent() {
404406 < div className = "relative" >
405407 < Input
406408 autoComplete = "new-password"
407- className = "h-11 pr-10 bg-input border-none transition-all duration-200 focus:ring-2 focus:ring-primary/20 placeholder:text-muted-foreground/50 "
409+ className = "h-11 border-none bg-input pr-10 transition-all duration-200 placeholder:text-muted-foreground/50 focus:ring-2 focus:ring-primary/20"
408410 disabled = { isLoading }
409411 id = "confirmPassword"
410412 minLength = { 8 }
@@ -416,7 +418,9 @@ function RegisterPageContent() {
416418 value = { formData . confirmPassword }
417419 />
418420 < Button
419- aria-label = { showConfirmPassword ? 'Hide password' : 'Show password' }
421+ aria-label = {
422+ showConfirmPassword ? 'Hide password' : 'Show password'
423+ }
420424 className = "absolute top-0 right-0 h-full px-3 text-muted-foreground hover:text-foreground"
421425 onClick = { ( ) => setShowConfirmPassword ( ! showConfirmPassword ) }
422426 size = "sm"
@@ -444,29 +448,29 @@ function RegisterPageContent() {
444448 </ div >
445449 </ VisuallyHidden >
446450
447- < div className = "flex sm:flex-row items-center gap-2 sm:items-center space-y-2 sm:space-y-0 sm:space-x-2" >
451+ < div className = "flex items-center gap-2 space-y-2 sm:flex-row sm:items-center sm:space-x-2 sm:space-y-0 " >
448452 < Checkbox
449453 checked = { acceptTerms }
450- className = "mt-1 sm:mt-0 cursor-pointer data-[state=unchecked]:bg-input data-[state=checked]:border -primary data-[state=checked ]:bg-primary "
454+ className = "mt-1 cursor-pointer data-[state=checked]:border-primary data-[state=checked]:bg -primary data-[state=unchecked ]:bg-input sm:mt-0 "
451455 disabled = { isLoading }
452456 id = "terms"
453457 onCheckedChange = { ( checked ) => setAcceptTerms ( checked as boolean ) }
454458 />
455459 < Label
456- className = "text-muted-foreground text-xs leading-tight sm:text-sm tracking-tighter "
460+ className = "text-muted-foreground text-xs leading-tight tracking-tighter sm:text-sm"
457461 htmlFor = "terms"
458462 >
459463 I agree to the{ '' }
460464 < Link
461- className = "font-medium text-primary hover:text-primary/80 text-xs sm:text-sm tracking-tighter "
465+ className = "font-medium text-primary text-xs tracking-tighter hover:text-primary/80 sm:text-sm"
462466 href = "https://www.databuddy.cc/terms"
463467 target = "_blank"
464468 >
465469 Terms of Service
466470 </ Link >
467471 { '' } and{ '' }
468472 < Link
469- className = "font-medium text-primary hover:text-primary/80 text-xs sm:text-sm tracking-tighter "
473+ className = "font-medium text-primary text-xs tracking-tighter hover:text-primary/80 sm:text-sm"
470474 href = "https://www.databuddy.cc/privacy"
471475 target = "_blank"
472476 >
@@ -476,7 +480,7 @@ function RegisterPageContent() {
476480 </ div >
477481
478482 < Button
479- className = "hover:-translate-y-0.5 relative h-11 w-full overflow-hidden shadow transition-all duration-300 hover:shadow-lg hover:shadow-primary/20 text-sm sm:text-base"
483+ className = "hover:-translate-y-0.5 relative h-11 w-full overflow-hidden text-sm shadow transition-all duration-300 hover:shadow-lg hover:shadow-primary/20 sm:text-base"
480484 disabled = { isLoading }
481485 type = "submit"
482486 >
0 commit comments