From cb5f05772a1520fb7f1774e54a93fc647355786c Mon Sep 17 00:00:00 2001 From: jameskinyua590 Date: Mon, 3 Jun 2024 12:07:53 +0000 Subject: [PATCH] make integrations column visible in mobile view Signed-off-by: jameskinyua590 --- .gitignore | 1 + src/sections/Home/Playground-home/index.js | 85 +++++++++++++--------- 2 files changed, 50 insertions(+), 36 deletions(-) diff --git a/.gitignore b/.gitignore index 31910386afcd..5014b33532b3 100644 --- a/.gitignore +++ b/.gitignore @@ -83,6 +83,7 @@ yarn.lock #IDE Files .vscode +.idx default.profraw diff --git a/src/sections/Home/Playground-home/index.js b/src/sections/Home/Playground-home/index.js index 8fd172161627..a9cb613de464 100644 --- a/src/sections/Home/Playground-home/index.js +++ b/src/sections/Home/Playground-home/index.js @@ -22,28 +22,28 @@ const ViewsSectionWrapper = styled.div` } .views-section { - position: relative; - display: flex; - flex-direction: row; - background-color: ${(props) => props.theme.grey191919ToGreyF2F5F7}; - margin: 3%; - border-radius: 1rem; - max-width: 1920px; - width: 90vw; - height: 500px; - justify-content: space-evenly; - align-items: center; - padding: 0 5% 0 0; - box-sizing: border-box; - //box-shadow: ${(props) => props.theme.boxShadowBlue477E96}; - transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); - overflow: hidden; + position: relative; + display: flex; + flex-direction: row; + background-color: ${(props) => props.theme.grey191919ToGreyF2F5F7}; + margin: 3%; + border-radius: 1rem; + max-width: 1920px; + width: 90vw; + height: 500px; + justify-content: space-evenly; + align-items: center; + padding: 0 5% 0 0; + box-sizing: border-box; + //box-shadow: ${(props) => props.theme.boxShadowBlue477E96}; + transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); + overflow: hidden; - @media only screen and (max-width: 767px) { - text-align: center; - flex-direction: column-reverse; + @media only screen and (max-width: 767px) { + text-align: center; + flex-direction: column-reverse; + } } -} .hero-text { display: flex; flex-direction: column; @@ -90,8 +90,27 @@ const ViewsSectionWrapper = styled.div` } .visible { - opacity: 1; - transition: all 0.2s ease-in; + opacity: 1; + transition: all 0.2s ease-in; + } + + .visible.container { + @media only screen and (max-width: 400px) { + flex-direction: row; + + .line-common { + flex-direction: row; + flex-wrap: wrap; + } + + .line1, .line2 { + transform: translateY(0); + } + + .line2 { + margin-right: 0; + } + } } .not-visible { @@ -114,23 +133,21 @@ const ViewsSectionWrapper = styled.div` display: flex; justify-content: center; } - - .line1 { + + .line-common { display: flex; flex-direction: column; align-items: center; margin-right: 2rem; - transform: translateY(50px); flex-wrap: wrap; } + + .line1 { + transform: translateY(50px); + } .line2 { - display: flex; - flex-direction: column; - align-items: center; - margin-right: 2rem; transform: translateY(-50px); - flex-wrap: wrap; } .box { @@ -163,9 +180,6 @@ const ViewsSectionWrapper = styled.div` } @media only screen and (max-width: 700px) { - .hero-image { - display: none; - } .views-section { padding: 2rem 2rem 0 2rem; height: auto; @@ -175,7 +189,6 @@ const ViewsSectionWrapper = styled.div` justify-content: center; } } - `; const MeshmapVisualizerViews = () => { @@ -199,7 +212,7 @@ const MeshmapVisualizerViews = () => { imageInView ? "visible container" : "not-visible container" } > -
+
Argo CD
@@ -217,7 +230,7 @@ const MeshmapVisualizerViews = () => {
Prometheus
-
+
Kubernetes