@@ -8,7 +8,8 @@ import LandingPageTopSectionShared from "./components/LandingPageTopSectionShare
8
8
const LandingPageTopSection = ( ) => {
9
9
const isDesktop = useStore ( ( state ) => state . isDesktop ) ;
10
10
const [ loaded , setLoaded ] = useState ( false ) ;
11
- const starWoman = `${ process . env . PUBLIC_URL } /assets/images/landing-page/star_woman.svg` ;
11
+ const starWoman = `${ process . env . PUBLIC_URL } /assets/images/landing-page/star_woman.png` ;
12
+ const imageSize = isDesktop ? 523 : 328 ;
12
13
13
14
return (
14
15
< LandingPageSectionWrapper >
@@ -20,23 +21,56 @@ const LandingPageTopSection = () => {
20
21
< RegularButton variant = { 'yellowContained' } link = '/user-routing' />
21
22
</ VBox >
22
23
</ VBox >
23
- < VBox sx = { { width : "50%" , alignItems : "center" } } >
24
+ < VBox sx = { { width : "50%" , alignItems : "center" , position : "relative" } } >
25
+ { ! loaded && (
26
+ < div
27
+ style = { {
28
+ width : `${ imageSize } px` ,
29
+ height : `${ imageSize } px`
30
+ } }
31
+ />
32
+ ) }
24
33
< img
25
34
src = { starWoman }
26
35
alt = "logo"
27
36
style = { {
28
- width : "523px" ,
29
- height : "523px" ,
37
+ width : `${ imageSize } px` ,
38
+ height : `${ imageSize } px` ,
39
+ position : loaded ? "static" : "absolute" ,
30
40
opacity : loaded ? 1 : 0 ,
31
41
transition : "opacity 0.8s ease-in-out" ,
42
+ borderRadius : "12px" ,
32
43
} }
33
44
onLoad = { ( ) => setLoaded ( true ) }
34
45
/>
35
46
</ VBox >
36
47
</ HBox >
37
48
) : (
38
49
< VBox sx = { { gap : "46px" , alignItems : "center" } } >
39
- < img src = { starWoman } alt = "logo" style = { { width : "328px" } } />
50
+ < VBox sx = { { alignItems : "center" , position : "relative" } } >
51
+ { ! loaded && (
52
+ < div
53
+ style = { {
54
+ width : `${ imageSize } px` ,
55
+ height : `${ imageSize } px` ,
56
+ } }
57
+ />
58
+ ) }
59
+ < img
60
+ src = { starWoman }
61
+ alt = "logo"
62
+ style = { {
63
+ width : `${ imageSize } px` ,
64
+ height : `${ imageSize } px` ,
65
+ position : loaded ? "static" : "absolute" ,
66
+ opacity : loaded ? 1 : 0 ,
67
+ transition : "opacity 0.8s ease-in-out" ,
68
+ borderRadius : "12px" ,
69
+ } }
70
+ onLoad = { ( ) => setLoaded ( true ) }
71
+ />
72
+ </ VBox >
73
+
40
74
< VBox sx = { { gap : "16px" } } >
41
75
< LandingPageTopSectionShared />
42
76
< RegularButton variant = { 'yellowContained' } link = '/user-routing' />
0 commit comments