From c8362344c8086f8701f9a837801033ad65dd7674 Mon Sep 17 00:00:00 2001 From: Travis Beckham Date: Tue, 19 Sep 2023 16:16:51 -0500 Subject: [PATCH] Fixed mobile layout for companies and features Signed-off-by: Travis Beckham --- 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 89e0eb028a..3078ddc06a 100644 --- a/linkerd.io/assets/scss/styles.scss +++ b/linkerd.io/assets/scss/styles.scss @@ -161,10 +161,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 { @@ -190,6 +205,7 @@ .adopters { position: relative; z-index: 2; + text-align: center; } .logos { width: 3600px; @@ -217,29 +233,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; - } @media screen and (min-width: 768px) { + .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; } } @media screen and (min-width: 1024px) { 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}}