Skip to content

Commit ce85655

Browse files
Merge pull request #5973 from Touriist/fix-kanvas-design-carousel
Fix kanvas design carousel and links
2 parents a3a9b27 + 4bf0688 commit ce85655

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/components/PopOutCardCarousel/PopOutCardCarousel.style.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ const PopOutCardWrapper = styled.div`
5353
5454
//dynamic css
5555
${(props) => css`
56-
z-index: ${100 - props.index};
57-
${props.index === 1 ? "background: linear-gradient(134deg, #252E31 -16.51%, #0D997F 101%);" : ""};
58-
${props.index === 2 ? "background: linear-gradient(125deg, #137771 -16.81%, #252E31 104.15%);" : ""};
59-
${props.index === 3 ? " background: linear-gradient(180deg, #202020 -32.18%, #18433F 52.35%, #0B7E71 106.65%, #00B39F 142.23%);" : ""};
60-
transform: rotateZ(${-4 - 6 * props.index}deg) translate(-${props.index *
61-
36}px, ${props.index * 5}px);
56+
z-index: ${100 - props.$index};
57+
${props.$index === 1 ? "background: linear-gradient(134deg, #252E31 -16.51%, #0D997F 101%);" : ""};
58+
${props.$index === 2 ? "background: linear-gradient(125deg, #137771 -16.81%, #252E31 104.15%);" : ""};
59+
${props.$index === 3 ? " background: linear-gradient(180deg, #202020 -32.18%, #18433F 52.35%, #0B7E71 106.65%, #00B39F 142.23%);" : ""};
60+
transform: rotateZ(${-4 - 6 * props.$index}deg) translate(-${props.$index *
61+
36}px, ${props.$index * 5}px);
6262
`}
6363
6464
${(props) =>
@@ -134,7 +134,7 @@ const PopOutCardWrapper = styled.div`
134134
${(props) =>
135135
!props.$active &&
136136
css`
137-
:hover {
137+
&:hover {
138138
transform: rotateZ(${-1 - 6 * props.$index}deg)
139139
translate(-${props.$index * 36}px, ${props.$index * 5}px);
140140
h3 {

src/sections/Kanvas/Kanvas-design/kanvas-design-banner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const KanvasDesignBanner = () => {
163163
</div>
164164
<div className="hero-image">
165165
<CytoscapeCtx />
166-
<Button secondary title="Experience context-aware design" url="https://meshery.layer5.io" external={ true } />
166+
<Button $secondary title="Experience context-aware design" $url="https://meshery.layer5.io" external={ true } />
167167
<h5>Upload your Helm Chart or Kubernetes manifest to have your infra diagrammed</h5>
168168
</div>
169169
<img className="dots-upper" src={BackgroundDotsPattern} />
@@ -173,4 +173,4 @@ const KanvasDesignBanner = () => {
173173
);
174174
};
175175

176-
export default KanvasDesignBanner;
176+
export default KanvasDesignBanner;

src/sections/Kanvas/Kanvas-design/kanvas-design-integrations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ const KanvasIntegrationsSection = () => {
142142
<div>
143143
<Button
144144
id="integrations"
145-
secondary
145+
$secondary
146146
style={{ margin: "1.5rem 0 1.5rem 0" }}
147-
url="https://layer5.io/cloud-native-management/meshery/integrations"
147+
$url="https://layer5.io/cloud-native-management/meshery/integrations"
148148
$external={true}
149149
>
150150
All Integrations

0 commit comments

Comments
 (0)