11import { SignIn } from "@clerk/nextjs" ;
22import Link from "next/link" ;
3- import { useRouter } from "next/router" ;
43import { useEffect , useState } from "react" ;
4+ import ThemeToggle from "@/components/ThemeToggle" ;
5+ import InteractiveBackground from "@/components/ui/InteractiveBackground" ;
56
67export default function SignInPage ( ) {
7- const router = useRouter ( ) ;
88 const [ mounted , setMounted ] = useState ( false ) ;
99
1010 useEffect ( ( ) => {
@@ -17,6 +17,8 @@ export default function SignInPage() {
1717
1818 return (
1919 < div className = "min-h-screen flex" >
20+ { /* Animated Background */ }
21+ < InteractiveBackground />
2022 { /* Left Side - Branding */ }
2123 < div className = "hidden lg:flex lg:w-1/2 bg-gradient-to-br from-blue-600 via-purple-600 to-indigo-700 relative overflow-hidden" >
2224 { /* Background Pattern */ }
@@ -29,8 +31,9 @@ export default function SignInPage() {
2931 { /* Logo */ }
3032 < div className = "flex items-center gap-3 mb-12" >
3133 < div className = "w-12 h-12 bg-white/20 backdrop-blur-sm rounded-xl flex items-center justify-center" >
32- < svg className = "w-7 h-7 text-white" fill = "currentColor" viewBox = "0 0 24 24" >
33- < path d = "M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
34+ { /* Lightning bolt - Post Bot logo */ }
35+ < svg className = "w-7 h-7" viewBox = "0 0 32 32" fill = "none" >
36+ < path d = "M18 4l-8 12h6l-2 12 10-14h-6l4-10z" fill = "white" stroke = "white" strokeWidth = "0.5" />
3437 </ svg >
3538 </ div >
3639 < span className = "text-2xl font-bold" > Post Bot</ span >
@@ -95,18 +98,24 @@ export default function SignInPage() {
9598 </ div >
9699
97100 { /* Right Side - Sign In Form */ }
98- < div className = "w-full lg:w-1/2 flex items-center justify-center p-8 bg-gray-50 dark:bg-gray-900" >
101+ < div className = "w-full lg:w-1/2 flex items-center justify-center p-8 bg-gray-50 dark:bg-gray-900 relative " >
99102 < div className = "w-full max-w-md" >
100103 { /* Mobile Logo */ }
101104 < div className = "lg:hidden flex items-center justify-center gap-3 mb-8" >
102105 < div className = "w-10 h-10 bg-gradient-to-br from-blue-600 to-purple-600 rounded-xl flex items-center justify-center" >
103- < svg className = "w-6 h-6 text-white" fill = "currentColor" viewBox = "0 0 24 24" >
104- < path d = "M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
106+ { /* Lightning bolt - Post Bot logo */ }
107+ < svg className = "w-6 h-6" viewBox = "0 0 32 32" fill = "none" >
108+ < path d = "M18 4l-8 12h6l-2 12 10-14h-6l4-10z" fill = "white" stroke = "white" strokeWidth = "0.5" />
105109 </ svg >
106110 </ div >
107111 < span className = "text-xl font-bold text-gray-900 dark:text-white" > Post Bot</ span >
108112 </ div >
109113
114+ { /* Theme Toggle */ }
115+ < div className = "absolute top-4 right-4" >
116+ < ThemeToggle />
117+ </ div >
118+
110119 { /* Header */ }
111120 < div className = "text-center mb-8" >
112121 < h2 className = "text-2xl font-bold text-gray-900 dark:text-white mb-2" >
@@ -132,7 +141,7 @@ export default function SignInPage() {
132141 socialButtonsBlockButton : "bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors" ,
133142 formButtonPrimary : "bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 transition-all" ,
134143 footerActionLink : "text-blue-600 hover:text-blue-700" ,
135- formFieldInput : "bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600" ,
144+ formFieldInput : "bg-white dark:bg-gray-800 border-gray-300 dark:border-gray-600 dark:text-white text-gray-900 " ,
136145 formFieldLabel : "text-gray-700 dark:text-gray-300" ,
137146 identityPreviewEditButton : "text-blue-600" ,
138147 formResendCodeLink : "text-blue-600" ,
0 commit comments