@@ -92,14 +92,14 @@ export default function InvitationPage() {
9292
9393 if ( loading ) {
9494 return (
95- < div className = "flex items-center justify-center bg-black text-white " >
96- < Card className = "w-full max-w-md bg-gray-900 border border-gray-700 shadow-xl" >
95+ < div className = "flex items-center justify-center" >
96+ < Card className = "w-full max-w-md shadow-xl" >
9797 < CardHeader >
98- < Skeleton className = "h-6 w-3/4 bg-gray-700 " />
99- < Skeleton className = "h-4 w-full bg-gray-700 " />
98+ < Skeleton className = "h-6 w-3/4" />
99+ < Skeleton className = "h-4 w-full" />
100100 </ CardHeader >
101101 < CardContent >
102- < Skeleton className = "h-10 w-full bg-gray-700 " />
102+ < Skeleton className = "h-10 w-full" />
103103 </ CardContent >
104104 </ Card >
105105 </ div >
@@ -108,20 +108,20 @@ export default function InvitationPage() {
108108
109109 if ( error ) {
110110 return (
111- < div className = "flex items-center justify-center bg-black text-white " >
112- < Card className = "w-full max-w-md bg-gray-900 border border-red-500 shadow-xl" >
111+ < div className = "flex items-center justify-center" >
112+ < Card className = "w-full max-w-md border-destructive shadow-xl" >
113113 < CardHeader >
114114 < div className = "flex items-center gap-2" >
115- < XCircle className = "h-5 w-5 text-red-400 " />
116- < CardTitle className = "text-red-400 " > Invalid Invitation</ CardTitle >
115+ < XCircle className = "h-5 w-5 text-destructive " />
116+ < CardTitle className = "text-destructive " > Invalid Invitation</ CardTitle >
117117 </ div >
118- < CardDescription className = "text-gray-400" > { error } </ CardDescription >
118+ < CardDescription > { error } </ CardDescription >
119119 </ CardHeader >
120120 < CardContent >
121121 < Button
122122 onClick = { ( ) => router . push ( '/' ) }
123123 variant = "outline"
124- className = "w-full border-gray-600 hover:bg-gray-700 text-white "
124+ className = "w-full"
125125 >
126126 Go to Homepage
127127 </ Button >
@@ -133,16 +133,16 @@ export default function InvitationPage() {
133133
134134 if ( success ) {
135135 return (
136- < div className = "flex items-center justify-center bg-black text-white " >
137- < Card className = "w-full max-w-md bg-gray-900 border border-green-500 shadow-xl" >
136+ < div className = "flex items-center justify-center" >
137+ < Card className = "w-full max-w-md border-green-500 shadow-xl" >
138138 < CardHeader >
139139 < div className = "flex items-center gap-2" >
140- < CheckCircle className = "h-5 w-5 text-green-400 " />
141- < CardTitle className = "text-green-400 " >
140+ < CheckCircle className = "h-5 w-5 text-green-500 " />
141+ < CardTitle className = "text-green-500 " >
142142 Welcome to { invitation ?. organization_name } !
143143 </ CardTitle >
144144 </ div >
145- < CardDescription className = "text-gray-400" >
145+ < CardDescription >
146146 You've successfully joined the organization. Redirecting...
147147 </ CardDescription >
148148 </ CardHeader >
@@ -158,30 +158,30 @@ export default function InvitationPage() {
158158 const isExpired = new Date ( invitation . expires_at ) < new Date ( )
159159
160160 return (
161- < div className = "flex items-center justify-center bg-black text-white relative overflow-hidden py-12" >
162- < Card className = "w-full max-w-md bg-gray-900 border border-gray-700 shadow-xl z-10 " >
161+ < div className = "flex items-center justify-center py-12" >
162+ < Card className = "w-full max-w-md shadow-xl" >
163163 < CardHeader >
164164 < div className = "flex items-center gap-2" >
165- < Users className = "h-5 w-5 text-blue-400 " />
165+ < Users className = "h-5 w-5 text-blue-500 " />
166166 < CardTitle > Organization Invitation</ CardTitle >
167167 </ div >
168- < CardDescription className = "text-gray-400" >
168+ < CardDescription >
169169 { invitation . inviter_name } has invited you to join{ ' ' }
170170 { invitation . organization_name }
171171 </ CardDescription >
172172 </ CardHeader >
173173 < CardContent className = "space-y-4" >
174174 < div className = "space-y-2" >
175- < div className = "text-sm text-gray-300 " >
176- < strong > Organization:</ strong > { invitation . organization_name }
175+ < div className = "text-sm text-muted-foreground " >
176+ < strong className = "text-foreground" > Organization:</ strong > { invitation . organization_name }
177177 </ div >
178- < div className = "text-sm text-gray-300 " >
179- < strong > Role:</ strong > { invitation . role }
178+ < div className = "text-sm text-muted-foreground " >
179+ < strong className = "text-foreground" > Role:</ strong > { invitation . role }
180180 </ div >
181- < div className = "text-sm text-gray-300 " >
182- < strong > Email:</ strong > { invitation . email }
181+ < div className = "text-sm text-muted-foreground " >
182+ < strong className = "text-foreground" > Email:</ strong > { invitation . email }
183183 </ div >
184- < div className = "flex items-center gap-2 text-sm text-gray-300 " >
184+ < div className = "flex items-center gap-2 text-sm text-muted-foreground " >
185185 < Clock className = "h-4 w-4" />
186186 < span >
187187 Expires: { new Date ( invitation . expires_at ) . toLocaleDateString ( ) }
@@ -191,22 +191,22 @@ export default function InvitationPage() {
191191
192192 { isExpired ? (
193193 < div className = "text-center" >
194- < p className = "text-red-400 mb-4" > This invitation has expired.</ p >
194+ < p className = "text-destructive mb-4" > This invitation has expired.</ p >
195195 < Button
196196 onClick = { ( ) => router . push ( '/' ) }
197197 variant = "outline"
198- className = "w-full border-gray-600 hover:bg-gray-700 text-white "
198+ className = "w-full"
199199 >
200200 Go to Homepage
201201 </ Button >
202202 </ div >
203203 ) : (
204204 < div className = "space-y-3" >
205205 { status === 'loading' ? (
206- < Skeleton className = "h-10 w-full bg-gray-700 " />
206+ < Skeleton className = "h-10 w-full" />
207207 ) : ! session ? (
208208 < div className = "text-center" >
209- < p className = "text-gray-400 mb-4" >
209+ < p className = "text-muted-foreground mb-4" >
210210 Please sign in to accept this invitation.
211211 </ p >
212212 < Button
@@ -215,21 +215,21 @@ export default function InvitationPage() {
215215 `/login?callbackUrl=${ encodeURIComponent ( window . location . href ) } ` ,
216216 )
217217 }
218- className = "w-full bg-blue-600 hover:bg-blue-700 text-white "
218+ className = "w-full"
219219 >
220220 Sign In to Accept
221221 </ Button >
222222 </ div >
223223 ) : session . user ?. email !== invitation . email ? (
224224 < div className = "text-left" >
225- < p className = "text-red-400 mb-4" >
225+ < p className = "text-destructive mb-4" >
226226 This invitation is for { invitation . email } , but you're signed
227227 in as { session . user ?. email } .
228228 </ p >
229229 < Button
230230 onClick = { ( ) => router . push ( '/login' ) }
231231 variant = "outline"
232- className = "w-full border-gray-600 hover:bg-gray-700 text-white "
232+ className = "w-full"
233233 >
234234 Sign in with correct account
235235 </ Button >
@@ -238,7 +238,7 @@ export default function InvitationPage() {
238238 < Button
239239 onClick = { acceptInvitation }
240240 disabled = { accepting }
241- className = "w-full bg-green-600 hover:bg-green-700 text-white"
241+ className = "w-full bg-green-600 hover:bg-green-700 text-white dark:bg-green-600 dark:hover:bg-green-700 "
242242 >
243243 { accepting ? 'Accepting...' : 'Accept Invitation' }
244244 </ Button >
0 commit comments