@@ -23,24 +23,6 @@ const CollaborationFeatureWrapper = styled.div`
2323 flex-direction: column-reverse;
2424 } */
2525
26- .hero-div {
27- position: relative;
28- transition: 0.5s;
29- display: flex;
30- flex-direction: row-reverse;
31- background-color: ${ props => props . theme . grey121212ToWhite } ;;
32- max-width: 90%;
33- height: fit-content;
34- justify-content: space-between;
35- align-items: center;
36- padding: 2% 5% 8%;
37- transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
38- @media only screen and (max-width: 767px) {
39- text-align: center;
40- flex-direction: column-reverse;
41- }
42- }
43-
4426 .hero-text {
4527 display: flex;
4628 flex-direction: column;
@@ -90,6 +72,24 @@ const CollaborationFeatureWrapper = styled.div`
9072
9173` ;
9274
75+ const StyledDiv = styled . div `
76+ position: relative;
77+ display: flex;
78+ flex-direction: ${ ( { reverse } ) => ( reverse ? "row-reverse" : "row" ) } ;
79+ background-color: ${ ( props ) => props . theme . grey121212ToWhite } ;
80+ max-width: 90%;
81+ height: fit-content;
82+ justify-content: space-between;
83+ align-items: center;
84+ padding: 2% 5% 8%;
85+ transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
86+
87+ @media only screen and (max-width: 767px) {
88+ flex-direction: column;
89+ text-align: center;
90+ }
91+ ` ;
92+
9393const CollaborationFeatureTeam = ( ) => {
9494 const [ locatorRef , inView ] = useInView ( { threshold : 0.5 } ) ;
9595 // const [sectionRef, sectionView] = useInView({ threshold: 1.0 });
@@ -106,28 +106,28 @@ const CollaborationFeatureTeam = () => {
106106
107107 return (
108108 < CollaborationFeatureWrapper >
109- < div className = "hero-div" >
109+ < StyledDiv reverse = { true } >
110110 < div className = "hero-image" ref = { locatorRef } >
111111 < CollaborationImg className = { imageInView ? "visible" : "" } alt = "" />
112112 </ div >
113113 < div className = "hero-text" >
114114 < h2 > < span > Collaborate with your Team</ span > </ h2 >
115115 < p > Build an iterative design flow with live collaboration that keeps you in the loop whether you are working in the office or remotely.</ p >
116116 </ div >
117- </ div >
118- < div className = "hero-div" >
119- < div className = "hero-text" >
120- < h2 > < span > Integrated Chat</ span > </ h2 >
121- < p > Add comments directly on components to give feedback or ask questions. Great for discussing changes without leaving the canvas.</ p >
122- </ div >
117+ </ StyledDiv >
118+ < StyledDiv reverse = { false } >
123119 < div className = "hero-image" ref = { locatorRef } >
124120 < img
125121 src = { conversationImage }
126122 alt = "Conversation feature illustration"
127123 />
128124 </ div >
129- </ div >
130- < div className = "hero-div" >
125+ < div className = "hero-text" >
126+ < h2 > < span > Integrated Chat</ span > </ h2 >
127+ < p > Add comments directly on components to give feedback or ask questions. Great for discussing changes without leaving the canvas.</ p >
128+ </ div >
129+ </ StyledDiv >
130+ < StyledDiv reverse = { true } >
131131 < div className = "hero-image" ref = { locatorRef } >
132132 < img
133133 src = { componentGif }
@@ -138,20 +138,20 @@ const CollaborationFeatureTeam = () => {
138138 < h2 > < span > Shared Component Library</ span > </ h2 >
139139 < p > Access a common library of reusable components and patterns. Save time by using or modifying shared elements.</ p >
140140 </ div >
141- </ div >
142- < div className = "hero-div" >
143- < div className = "hero-text" >
144- < h2 > < span > Version Control & History </ span > </ h2 >
145- < p > Save different versions of your design and go back anytime. Compare past and present designs to see improvements.</ p >
146- </ div >
141+ </ StyledDiv >
142+ < StyledDiv reverse = { false } >
147143 < div className = "hero-image" ref = { locatorRef } >
148144 < img
149145 src = { versionHistory }
150146 alt = "Version Control & History"
151147 />
152148 </ div >
153- </ div >
154- < div className = "hero-div" >
149+ < div className = "hero-text" >
150+ < h2 > < span > Version Control & History </ span > </ h2 >
151+ < p > Save different versions of your design and go back anytime. Compare past and present designs to see improvements.</ p >
152+ </ div >
153+ </ StyledDiv >
154+ < StyledDiv reverse = { true } >
155155 < div className = "hero-image" ref = { locatorRef } >
156156 < img
157157 src = { undoRedo }
@@ -162,7 +162,7 @@ const CollaborationFeatureTeam = () => {
162162 < h2 > < span > Undo & Revert Changes </ span > </ h2 >
163163 < p > Made a mistake? No worries — you can easily undo recent actions. Go back to a previous state without losing your progress.</ p >
164164 </ div >
165- </ div >
165+ </ StyledDiv >
166166 </ CollaborationFeatureWrapper >
167167 ) ;
168168} ;
0 commit comments