@@ -17,6 +17,8 @@ import { H2 } from '../../../atoms/legacy/text/headings/H2/H2';
17
17
import { P } from '../../../atoms/legacy/text/content/P/P' ;
18
18
import { HiArrowRight } from 'react-icons/hi' ;
19
19
import Link from 'next/link' ;
20
+ import Image from 'next/image' ;
21
+ import { motion } from 'motion/react' ;
20
22
21
23
const BackToDashboardButton = ( props : { account : string } ) => {
22
24
return (
@@ -103,7 +105,7 @@ export const Login = ({
103
105
const isLoggedIn = loginViewModel . isLoggedIn && loginViewModel . accountActive !== undefined ;
104
106
const [ showUserPassLoginForm , setShowUserPassLoginForm ] = useState < boolean > ( false ) ;
105
107
106
- const [ selectedVOTab , setSelectedVOTab ] = useState < number > ( 1 ) ;
108
+ const [ selectedVOTab , setSelectedVOTab ] = useState < number > ( 0 ) ;
107
109
108
110
const [ username , setUsername ] = useState < string > ( '' ) ;
109
111
const [ password , setPassword ] = useState < string > ( '' ) ;
@@ -163,8 +165,19 @@ export const Login = ({
163
165
}
164
166
} , [ loginViewModel , authViewModel ] ) ;
165
167
168
+ const logoVariants = {
169
+ hidden : { opacity : 0 , scale : 0.8 } ,
170
+ visible : { opacity : 1 , scale : 1 , transition : { duration : 0.5 } } ,
171
+ } ;
172
+
173
+ const formVariants = {
174
+ hidden : { opacity : 0 , scale : 1.5 } ,
175
+ visible : { opacity : 1 , scale : 1 , transition : { duration : 0.5 } } ,
176
+ } ;
177
+
166
178
const getLoginForm = ( ) => {
167
179
return (
180
+ < motion . div initial = "hidden" animate = "visible" variants = { formVariants } >
168
181
< div
169
182
className = { twMerge (
170
183
'border dark:border-2 rounded-xl p-6 flex flex-col justify-center space-y-4' ,
@@ -187,8 +200,10 @@ export const Login = ({
187
200
} }
188
201
/>
189
202
</ Collapsible >
190
- < div className = "text-center text-text-1000 dark:text-text-0" >
191
- < H1 className = "mt-4 mb-2" > Rucio Login</ H1 >
203
+ < div className = "flex flex-col items-center justify-between w-64 text-center text-text-1000 dark:text-text-0" >
204
+ < motion . div initial = "hidden" animate = "visible" variants = { logoVariants } >
205
+ < Image src = "/rucio-logo.png" alt = "Rucio Logo" width = { 146 } height = { 176 } />
206
+ </ motion . div >
192
207
</ div >
193
208
194
209
< div
@@ -283,6 +298,7 @@ export const Login = ({
283
298
</ div >
284
299
</ div >
285
300
</ div >
301
+ </ motion . div >
286
302
) ;
287
303
} ;
288
304
0 commit comments