From 08885872e14e17339896de673c053c79411dd6eb Mon Sep 17 00:00:00 2001 From: Travis Beckham <57149918+travisbeckham@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:53:00 -0500 Subject: [PATCH] Fixed mobile layout for companies and features (#1684) Signed-off-by: Travis Beckham Signed-off-by: Yohan Belval --- linkerd.io/assets/scss/styles.scss | 53 ++++++++++++------- .../layouts/partials/homepage/companies.html | 18 ++++--- .../partials/homepage/features-list.html | 6 +-- 3 files changed, 47 insertions(+), 30 deletions(-) diff --git a/linkerd.io/assets/scss/styles.scss b/linkerd.io/assets/scss/styles.scss index 9f372adf6b..f78130e7c7 100644 --- a/linkerd.io/assets/scss/styles.scss +++ b/linkerd.io/assets/scss/styles.scss @@ -158,10 +158,25 @@ .companies { background-image: linear-gradient(white, $aqua-green, $aqua-green, white); .created-by { + display: flex; + justify-content: center; + margin-bottom: 32px; + text-align: center; img { + display: block; + margin: 0 auto; width: 160px; height: auto; } + @media screen and (min-width: 768px) { + justify-content: flex-start; + text-align: left; + margin-bottom: 0; + padding-right: 8px; + img { + margin: 0; + } + } } } @keyframes logos-1-keyframes { @@ -187,6 +202,7 @@ .adopters { position: relative; z-index: 2; + text-align: center; } .logos { width: 3600px; @@ -214,29 +230,28 @@ height: auto; margin-left: 50px; } - &::before, - &::after { - content: ""; - position: absolute; - top: 35px; - width: 50px; - height: 75px; - z-index: 1; - } - &::before { - background-image: linear-gradient(90deg, $aqua-green, rgba($aqua-green, 0)); - left: 0; - z-index: 1; - } - &::after { - content: ""; - background-image: linear-gradient(-90deg, $aqua-green, rgba($aqua-green, 0)); - right: 0; - } @include from($tablet) { + .adopters { + text-align: left; + } &::before, &::after { + content: ""; + position: absolute; + top: 35px; width: 100px; + height: 75px; + z-index: 1; + } + &::before { + background-image: linear-gradient(90deg, $aqua-green, rgba($aqua-green, 0)); + left: 0; + z-index: 1; + } + &::after { + content: ""; + background-image: linear-gradient(-90deg, $aqua-green, rgba($aqua-green, 0)); + right: 0; } } @include from($desktop) { diff --git a/linkerd.io/layouts/partials/homepage/companies.html b/linkerd.io/layouts/partials/homepage/companies.html index b85b47857b..c2633916c7 100644 --- a/linkerd.io/layouts/partials/homepage/companies.html +++ b/linkerd.io/layouts/partials/homepage/companies.html @@ -1,12 +1,14 @@
-
-
- -

Linkerd was created by

-
- Buoyant -
-
+
+

Adopters

diff --git a/linkerd.io/layouts/partials/homepage/features-list.html b/linkerd.io/layouts/partials/homepage/features-list.html index b0d59bf7f7..cfde0baabd 100644 --- a/linkerd.io/layouts/partials/homepage/features-list.html +++ b/linkerd.io/layouts/partials/homepage/features-list.html @@ -12,13 +12,13 @@

-
-
+
+
{{ .title | safeHTMLAttr }}
-
+
{{.description | markdownify}}