Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saurabhraghuvanshii @kishore08-07 there should have been NO changes in this file.

Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,33 @@ export default function CollaboratorFeatures({ features }) {
<img src={cursorOverArrow ? LinkArrow : LinkArrowDark} alt="Learn more" style={{ maxWidth: "15%" }} className={cursorOverArrow ? "arrow-enter" : "arrow"} />
</div>
</div>
</Link>
<div className="g-grid-container contentContainer" id="add-border">
<Link to="/cloud-native-management/kanvas/collaborate">
<div className="g-grid-container contentContainer" id="add-border">
<div className="diagram scroll hideInMobile">
<CollaboratorFeaturesDiagram activeExampleIndex={activeExampleIndex} />
</div>
</Link>
<ul className="features collaborator-features">
{features.map((feature, index) => (
<li className="collaborator-feature-slide" key={index}>
<Feature
{...feature}
onInViewStatusChanged={(state) => {
const newStatusArray = [...viewportStatus];
newStatusArray[index] = state;
setViewportStatus(newStatusArray);
// Calculate the first element in focus, set that as
// our new activeExampleIndex. If it's been updated
// notify the subscriber.
const newExampleIndex = newStatusArray.lastIndexOf(true);
if (activeExampleIndex !== newExampleIndex && newExampleIndex !== -1) {
setActiveExampleIndex(newExampleIndex);
}
}}
/>
</li>
))}
</ul>
</div>
<ul className="features collaborator-features">
{features.map((feature, index) => (
<li className="collaborator-feature-slide" key={index}>
<Feature
{...feature}
onInViewStatusChanged={(state) => {
const newStatusArray = [...viewportStatus];
newStatusArray[index] = state;
setViewportStatus(newStatusArray);
// Calculate the first element in focus, set that as
// our new activeExampleIndex. If it's been updated
// notify the subscriber.
const newExampleIndex = newStatusArray.lastIndexOf(true);
if (activeExampleIndex !== newExampleIndex && newExampleIndex !== -1) {
setActiveExampleIndex(newExampleIndex);
}
}}
/>
</li>
))}
</ul>
</div>
</Link>
</div>
</Container>
</CollaboratorFeaturesWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,17 @@ const CollaboratorFeaturesWrapper = styled.section`
}
}

.collaborator-trigger-container {
&:hover {
.fixed {
background: #EBC017;
}
#add-border {
border-color: #EBC017;
}
}
}

.fixed {
top: 6rem;
font-weight: 300;
Expand All @@ -161,17 +172,14 @@ const CollaboratorFeaturesWrapper = styled.section`
@media (max-width: 912px) {
top: 5rem;
}
&:hover{
background: #EBC017;
}
}

#add-border {
border-color: #00b39f;
border-style: solid;
border-width: 0px 2px 2px 2px;
box-shadow: 0px 6px 5px 0px rgb(0 0 0 / 25%);
transition: ease-in-out;
transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}

.hideInMobile{
Expand Down
50 changes: 24 additions & 26 deletions src/sections/Kanvas/FeaturesSection/Design/DesignerFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,33 @@ export default function DesignerFeatures({ features }) {
<img src={cursorOverArrow ? LinkArrow : LinkArrowDark} alt="Learn more" style={{ maxWidth: "15%" }} className={cursorOverArrow ? "arrow-enter" : "arrow"} />
</div>
</div>
</Link>
<div className="g-grid-container contentContainer" id="add-border" >
<Link to="/cloud-native-management/kanvas/design">
<div className="g-grid-container contentContainer" id="add-border" >
<div className="diagram scroll hideInMobile">
<DesignerFeaturesDiagram activeExampleIndex={activeExampleIndex} />
</div>
</Link>
<ul className="features design-features">
{features.map((feature, index) => (
<li className="design-feature-slide" key={index}>
<Feature
{...feature}
onInViewStatusChanged={(state) => {
const newStatusArray = [...viewportStatus];
newStatusArray[index] = state;
setViewportStatus(newStatusArray);
// Calculate the first element in focus, set that as
// our new activeExampleIndex. If it's been updated
// notify the subscriber.
const newExampleIndex = newStatusArray.lastIndexOf(true);
if (activeExampleIndex !== newExampleIndex && newExampleIndex !== -1) {
setActiveExampleIndex(newExampleIndex);
}
}}
/>
</li>
))}
</ul>
</div>
<ul className="features design-features">
{features.map((feature, index) => (
<li className="design-feature-slide" key={index}>
<Feature
{...feature}
onInViewStatusChanged={(state) => {
const newStatusArray = [...viewportStatus];
newStatusArray[index] = state;
setViewportStatus(newStatusArray);
// Calculate the first element in focus, set that as
// our new activeExampleIndex. If it's been updated
// notify the subscriber.
const newExampleIndex = newStatusArray.lastIndexOf(true);
if (activeExampleIndex !== newExampleIndex && newExampleIndex !== -1) {
setActiveExampleIndex(newExampleIndex);
}
}}
/>
</li>
))}
</ul>
</div>
</Link>
</div>
</Container>
</DesignerFeaturesWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,17 @@ margin-top: 1rem;
}
}

.design-trigger-container {
&:hover {
.fixed {
background: #EBC017;
}
#add-border {
border-color: #EBC017;
}
}
}

.fixed {
top: 6rem;
font-weight: 300;
Expand All @@ -164,17 +175,14 @@ margin-top: 1rem;
@media (max-width: 912px) {
top: 5rem;
}
&:hover{
background: #EBC017;
}
}

#add-border {
border-color: #00b39f;
border-style: solid;
border-width: 0px 2px 2px 2px;
box-shadow: 0px 6px 5px 0px rgb(0 0 0 / 25%);
transition: .4s ease-in-out;
transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}
.hideInMobile{
@media (max-width: 799px) {
Expand Down
51 changes: 24 additions & 27 deletions src/sections/Kanvas/FeaturesSection/Visualize/VisualizerFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,33 @@ export default function VisualizerFeatures({ features }) {
<img src={cursorOverArrow ? LinkArrow : LinkArrowDark} alt="Learn more" style={{ maxWidth: "15%" }} className={cursorOverArrow ? "arrow-enter" : "arrow"} />
</div>
</div>
</Link>
<div className="g-grid-container contentContainer" id="add-border">
<Link to="/cloud-native-management/kanvas/operate">
<div className="g-grid-container contentContainer" id="add-border">
<div className="diagram scroll hideInMobile">
<VisualizerFeaturesDiagram activeExampleIndex={activeExampleIndex} />
</div>
</Link>
<ul className="visualizer-features">
{features.map((feature, index) => (
<li className="visualizer-feature-slide" key={index}>
<Feature
{...feature}
onInViewStatusChanged={(state) => {
const newStatusArray = [...viewportStatus];
newStatusArray[index] = state;
setViewportStatus(newStatusArray);
// Calculate the first element in focus, set that as
// our new activeExampleIndex. If it's been updated
// notify the subscriber.
const newExampleIndex = newStatusArray.lastIndexOf(true);
if (activeExampleIndex !== newExampleIndex && newExampleIndex !== -1) {
setActiveExampleIndex(newExampleIndex);
}
}}
/>
</li>
))}
</ul>

</div>
<ul className="visualizer-features">
{features.map((feature, index) => (
<li className="visualizer-feature-slide" key={index}>
<Feature
{...feature}
onInViewStatusChanged={(state) => {
const newStatusArray = [...viewportStatus];
newStatusArray[index] = state;
setViewportStatus(newStatusArray);
// Calculate the first element in focus, set that as
// our new activeExampleIndex. If it's been updated
// notify the subscriber.
const newExampleIndex = newStatusArray.lastIndexOf(true);
if (activeExampleIndex !== newExampleIndex && newExampleIndex !== -1) {
setActiveExampleIndex(newExampleIndex);
}
}}
/>
</li>
))}
</ul>
</div>
</Link>
</div>
</Container>
</VisualizerFeaturesWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@ const VisualizerFeaturesWrapper = styled.section`
}
}

.visualizer-trigger-container {
&:hover {
.fixed {
background: #EBC017;
}
#add-border {
border-color: #EBC017;
}
}
}

.fixed {
top: 6rem;
font-weight: 300;
Expand All @@ -162,16 +173,13 @@ const VisualizerFeaturesWrapper = styled.section`
@media (max-width: 912px) {
top: 5rem;
}
&:hover{
background: #EBC017;
}
}
#add-border {
border-color: #00b39f;
border-style: solid;
border-width: 0px 2px 2px 2px;
box-shadow: 0px 6px 5px 0px rgb(0 0 0 / 25%);
transition: ease-in-out;
transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
}
.hideInMobile{
@media (max-width: 799px) {
Expand Down