11import { Box , Typography } from "@mui/material" ;
2+ import { Colors } from "design/theme" ;
23import React from "react" ;
34
45const Section4 : React . FC = ( ) => {
@@ -11,19 +12,60 @@ const Section4: React.FC = () => {
1112 backgroundImage : `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1200 800'%3E%3Cdefs%3E%3CradialGradient id='a' cx='0' cy='800' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2371feed'/%3E%3Cstop offset='1' stop-color='%2371feed' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b' cx='1200' cy='800' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23abb2f9'/%3E%3Cstop offset='1' stop-color='%23abb2f9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='c' cx='600' cy='0' r='600' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%231fa0f6'/%3E%3Cstop offset='1' stop-color='%231fa0f6' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='d' cx='600' cy='800' r='600' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23FFFFFF'/%3E%3Cstop offset='1' stop-color='%23FFFFFF' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='e' cx='0' cy='0' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2302DEC4'/%3E%3Cstop offset='1' stop-color='%2302DEC4' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='f' cx='1200' cy='0' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%235865F2'/%3E%3Cstop offset='1' stop-color='%235865F2' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' width='1200' height='800'/%3E%3Crect fill='url(%23b)' width='1200' height='800'/%3E%3Crect fill='url(%23c)' width='1200' height='800'/%3E%3Crect fill='url(%23d)' width='1200' height='800'/%3E%3Crect fill='url(%23e)' width='1200' height='800'/%3E%3Crect fill='url(%23f)' width='1200' height='800'/%3E%3C/svg%3E")` ,
1213 backgroundAttachment : "fixed" ,
1314 backgroundSize : "cover" ,
14- padding : "5rem 7rem " ,
15+ minHeight : "100vh " ,
1516 display : "flex" ,
16- flexDirection : " row" ,
17+ flexDirection : { xs : "column" , md : " row-reverse" } ,
1718 alignItems : "center" ,
18- gap : 6 ,
19+ justifyContent : "center" ,
20+ gap : 15 ,
21+ px : { xs : 2 , md : 6 } ,
22+ py : { xs : 8 , md : 12 } ,
1923 } }
2024 >
25+ { /* title and text container */ }
2126 < Box
2227 sx = { {
28+ flex : 1 ,
2329 display : "flex" ,
2430 flexDirection : "column" ,
25- maxWidth : "43%" ,
26- position : "relative" ,
31+ justifyContent : "center" ,
32+ maxWidth : "600px" ,
33+ alignItems : { xs : "center" , md : "flex-start" } ,
34+ textAlign : { xs : "center" , md : "left" } ,
35+ gap : 4 ,
36+ mt : { xs : 4 , md : 4 } ,
37+ px : 2 ,
38+ } }
39+ >
40+ < Typography
41+ variant = "h3"
42+ sx = { { color : Colors . lightGray , fontWeight : "bold" } }
43+ >
44+ Plateform Workflow
45+ </ Typography >
46+ < Box
47+ sx = { {
48+ display : "flex" ,
49+ flexDirection : "row" ,
50+ gap : "10px" ,
51+ alignItems : "center" ,
52+ justifyContent : "center" ,
53+ } }
54+ >
55+ < Typography variant = "h6" sx = { { color : Colors . lightGray } } >
56+ click each card to learn more
57+ </ Typography >
58+ < img
59+ src = { `${ process . env . PUBLIC_URL } /img/click_icon.png` }
60+ style = { { width : "50px" , height : "auto" , display : "block" } }
61+ />
62+ </ Box >
63+ </ Box >
64+
65+ { /* img container */ }
66+ < Box
67+ sx = { {
68+ marginTop : 3 ,
2769 } }
2870 >
2971 { [
@@ -48,11 +90,12 @@ const Section4: React.FC = () => {
4890 key = { index }
4991 onClick = { card . onClick }
5092 sx = { {
93+ maxWidth : "700px" ,
5194 width : "100%" ,
5295 cursor : "pointer" ,
5396 position : "relative" ,
5497 zIndex : arr . length - index ,
55- marginTop : index === 0 ? 0 : "-17px " , // adjust overlap
98+ marginTop : index === 0 ? 0 : "-20px " , // adjust overlap
5699 transition : "transform 0.2s" ,
57100 "&:hover" : {
58101 transform : "scale(1.02)" ,
@@ -63,14 +106,16 @@ const Section4: React.FC = () => {
63106 < img
64107 src = { process . env . PUBLIC_URL + card . src }
65108 alt = { `card-${ index } ` }
66- style = { { width : "100%" , height : "auto" , display : "block" } }
109+ style = { {
110+ width : "100%" ,
111+ height : "auto" ,
112+ display : "block" ,
113+ minWidth : "300px" ,
114+ } }
67115 />
68116 </ Box >
69117 ) ) }
70118 </ Box >
71- < Box >
72- < Typography variant = "h6" > click each card to learn more</ Typography >
73- </ Box >
74119 </ Box >
75120 ) ;
76121} ;
0 commit comments