From 29a7151c64cfe9fa146f4fc4b5f79cc5b9f6a766 Mon Sep 17 00:00:00 2001 From: mohin7 Date: Mon, 26 Aug 2024 16:55:57 +0600 Subject: [PATCH] Fix responsive issues in solutions page Signed-off-by: mohin7 --- data/events.json | 8 ++++---- hugo_stats.json | 5 +++++ layouts/_default/solutions.html | 2 +- layouts/partials/components/solution.html | 6 +++--- static/assets/sass/main.css | 25 +++++++++++++++++++++-- static/assets/sass/pages/_solutions.scss | 24 ++++++++++++++++++---- 6 files changed, 56 insertions(+), 14 deletions(-) diff --git a/data/events.json b/data/events.json index a638e9d6c4..4bf62651f7 100644 --- a/data/events.json +++ b/data/events.json @@ -28,10 +28,10 @@ }, { "id":"4", - "date": "NOV 03 - 04, 2024", - "sort_date": "2024-11-03", - "title": "4 ContainerDays Conference", - "description": "The CDS family grows every year and you can't miss this fantastic learning experience...", + "date": "NOV 12 - 15, 2024", + "sort_date": "2024-11-12", + "title": "KubeCon North America", + "description": "The Cloud Native Computing Foundation’s flagship conference gathers adopters and technologists from leading open source and cloud native communities in Salt Lake City, Utah from November 12-15, 2024. Join our CNCF Graduated and Incubating Projects as the community gathers for four days to further the education and advancement of cloud native computing.", "meet_with_us": "https://appscode.com/contact/", "event_details": "https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/", "show": true diff --git a/hugo_stats.json b/hugo_stats.json index cd31cb45b5..5bb2697502 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -226,16 +226,21 @@ "is-12", "is-3", "is-4", + "is-4-dekstop", "is-4-desktop", "is-48x48", "is-5", + "is-5-desktop", "is-6", "is-6-desktop", "is-6-tablet", "is-64x64", "is-7", "is-8", + "is-8-dekstop", "is-8-desktop", + "is-8-touch", + "is-8-until-fullhd", "is-8-widescreen", "is-9", "is-active", diff --git a/layouts/_default/solutions.html b/layouts/_default/solutions.html index 85d5dfd0bc..e0a29819ef 100644 --- a/layouts/_default/solutions.html +++ b/layouts/_default/solutions.html @@ -7,7 +7,7 @@
-
+

AppsCode solutions Speed up your cloud journey

diff --git a/layouts/partials/components/solution.html b/layouts/partials/components/solution.html index 3a83b4d655..adc3eb3758 100644 --- a/layouts/partials/components/solution.html +++ b/layouts/partials/components/solution.html @@ -8,8 +8,8 @@

{{ .tagline }}

--> -
-
+
+
{{ .ProductData.fullname}}

{{ .ProductData.tagline | plainify }}

@@ -25,7 +25,7 @@

{{ .ProductData.tagline | plainify }}

-
+
{{range $feature := .ProductData.features}} diff --git a/static/assets/sass/main.css b/static/assets/sass/main.css index c389ced973..a8bdd19e46 100644 --- a/static/assets/sass/main.css +++ b/static/assets/sass/main.css @@ -25978,14 +25978,35 @@ Responsive Classes .single-solution { background-color: #ffffff; - margin-inline: 100px; border-radius: 16px; margin-bottom: 32px; box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.1); + width: calc(100% - 200px); + margin: 0 auto 32px auto; +} +@media (min-width: 1400px) and (max-width: 1600px) { + .single-solution { + width: calc(100% - 50px); + } +} +@media (min-width: 1250px) and (max-width: 1399px) { + .single-solution { + width: calc(100% - 32px); + } +} +@media (min-width: 1100px) and (max-width: 1249px) { + .single-solution { + width: 100%; + } +} +@media (min-width: 1024px) and (max-width: 1199px) { + .single-solution { + width: calc(100% - 32px); + } } @media screen and (max-width: 1023px) { .single-solution { - margin-inline: 0; + width: calc(100% - 32px); } } .single-solution .left-content img { diff --git a/static/assets/sass/pages/_solutions.scss b/static/assets/sass/pages/_solutions.scss index e18ac7b935..9d526ca20e 100644 --- a/static/assets/sass/pages/_solutions.scss +++ b/static/assets/sass/pages/_solutions.scss @@ -28,14 +28,30 @@ } .single-solution { background-color: $ac-white; - margin-inline: 100px; border-radius: 16px; margin-bottom: 32px; box-shadow: 1px 2px 10px rgba(0,0,0,.1); + width: calc(100% - 200px); + margin: 0 auto 32px auto; - @include touch { - margin-inline: 0; - } + @media (min-width: 1400px) and (max-width: 1600px) { + width: calc(100% - 50px); + } + + @media (min-width: 1250px) and (max-width: 1399px) { + width: calc(100% - 32px); + } + + @media (min-width: 1100px) and (max-width: 1249px) { + width: 100%; + } + + @media (min-width: 1024px) and (max-width: 1199px) { + width: calc(100% - 32px); + } + @media screen and (max-width: 1023px) { + width: calc(100% - 32px); + } .left-content { img {