Skip to content

Commit 5176139

Browse files
Merge pull request #7089 from saurabhraghuvanshii/revert-collab
Reverted CollaboratorFeatures.js
2 parents c4a3c43 + dde2569 commit 5176139

File tree

2 files changed

+30
-36
lines changed

2 files changed

+30
-36
lines changed

src/sections/Kanvas/FeaturesSection/Collaborate/CollaboratorFeatures.js

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,35 @@ export default function CollaboratorFeatures({ features }) {
3636
<img src={cursorOverArrow ? LinkArrow : LinkArrowDark} alt="Learn more" style={{ maxWidth: "15%" }} className={cursorOverArrow ? "arrow-enter" : "arrow"} />
3737
</div>
3838
</div>
39-
<div className="g-grid-container contentContainer" id="add-border">
39+
</Link>
40+
<div className="g-grid-container contentContainer" id="add-border">
41+
<Link to="/cloud-native-management/kanvas/collaborate">
4042
<div className="diagram scroll hideInMobile">
4143
<CollaboratorFeaturesDiagram activeExampleIndex={activeExampleIndex} />
4244
</div>
43-
<ul className="features collaborator-features">
44-
{features.map((feature, index) => (
45-
<li className="collaborator-feature-slide" key={index}>
46-
<Feature
47-
{...feature}
48-
onInViewStatusChanged={(state) => {
49-
const newStatusArray = [...viewportStatus];
50-
newStatusArray[index] = state;
51-
setViewportStatus(newStatusArray);
52-
// Calculate the first element in focus, set that as
53-
// our new activeExampleIndex. If it's been updated
54-
// notify the subscriber.
55-
const newExampleIndex = newStatusArray.lastIndexOf(true);
56-
if (activeExampleIndex !== newExampleIndex && newExampleIndex !== -1) {
57-
setActiveExampleIndex(newExampleIndex);
58-
}
59-
}}
60-
/>
61-
</li>
62-
))}
63-
</ul>
64-
</div>
65-
</Link>
45+
</Link>
46+
<ul className="features collaborator-features">
47+
{features.map((feature, index) => (
48+
<li className="collaborator-feature-slide" key={index}>
49+
<Feature
50+
{...feature}
51+
onInViewStatusChanged={(state) => {
52+
const newStatusArray = [...viewportStatus];
53+
newStatusArray[index] = state;
54+
setViewportStatus(newStatusArray);
55+
// Calculate the first element in focus, set that as
56+
// our new activeExampleIndex. If it's been updated
57+
// notify the subscriber.
58+
const newExampleIndex = newStatusArray.lastIndexOf(true);
59+
if (activeExampleIndex !== newExampleIndex && newExampleIndex !== -1) {
60+
setActiveExampleIndex(newExampleIndex);
61+
}
62+
}}
63+
/>
64+
</li>
65+
))}
66+
</ul>
67+
</div>
6668
</div>
6769
</Container>
6870
</CollaboratorFeaturesWrapper>

src/sections/Kanvas/FeaturesSection/Collaborate/CollaboratorFeatures.style.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,6 @@ const CollaboratorFeaturesWrapper = styled.section`
149149
}
150150
}
151151
152-
.collaborator-trigger-container {
153-
&:hover {
154-
.fixed {
155-
background: #EBC017;
156-
}
157-
#add-border {
158-
border-color: #EBC017;
159-
}
160-
}
161-
}
162-
163152
.fixed {
164153
top: 6rem;
165154
font-weight: 300;
@@ -172,14 +161,17 @@ const CollaboratorFeaturesWrapper = styled.section`
172161
@media (max-width: 912px) {
173162
top: 5rem;
174163
}
164+
&:hover{
165+
background: #00d3a9;
166+
}
175167
}
176168
177169
#add-border {
178170
border-color: #00b39f;
179171
border-style: solid;
180172
border-width: 0px 2px 2px 2px;
181173
box-shadow: 0px 6px 5px 0px rgb(0 0 0 / 25%);
182-
transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
174+
transition: ease-in-out;
183175
}
184176
185177
.hideInMobile{

0 commit comments

Comments
 (0)