Skip to content

Commit 0e26caf

Browse files
authored
Better layout for companies logos in the website (#3720)
* Better layout for companies logos in the website Signed-off-by: Marco Pracucci <[email protected]> * Improved companies logo box Signed-off-by: Marco Pracucci <[email protected]>
1 parent f4208b5 commit 0e26caf

File tree

10 files changed

+41
-19
lines changed

10 files changed

+41
-19
lines changed

website/assets/scss/_styles_project.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,38 @@
5050
font-size: 1.2rem;
5151
}
5252
}
53+
54+
//
55+
// Adopters logos
56+
//
57+
58+
.adopters-logos {
59+
// Horizontally center logos.
60+
text-align: center;
61+
}
62+
63+
.adopter-logo {
64+
display: inline-block;
65+
margin: 10px;
66+
padding: 10px;
67+
width: 180px;
68+
height: 100px;
69+
overflow: hidden;
70+
71+
// Display a shadow behind the box to let it visually pop up.
72+
border: 1px solid #dedede;
73+
border-radius: 2px;
74+
box-shadow: 5px 5px 5px #dedede;
75+
76+
// Horizontally and vertially center the image.
77+
text-align: center;
78+
line-height: 80px;
79+
80+
> img {
81+
// Fit the image within the container.
82+
height: auto;
83+
width: auto;
84+
max-height: 100%;
85+
max-width: 100%;
86+
}
87+
}

website/assets/scss/_variables_project.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,10 @@ $light: #e9ecef;
5050
}
5151
}
5252

53-
.adopter-img {
54-
background-repeat: no-repeat;
55-
background-size: contain;
56-
background-position: center center;
57-
background-attachment: inherit;
58-
height: 100px;
59-
}
60-
6153
footer {
6254
min-height: unset!important;
6355
}
6456

65-
.logos {
66-
padding: 0!important;
67-
}
68-
6957
.display-1 {
7058
font-size: 1.5rem!important;
7159
font-weight: 700;

website/data/adopters.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
adopters:
33
- name: Aspen Mesh
44
url: https://aspenmesh.io/
5-
logo: aspen-mesh.png
5+
logo: aspen_mesh.png
66
- name: AWS
77
url: https://aws.amazon.com/prometheus/
88
logo: AWS_logo_RGB.png
@@ -11,7 +11,7 @@ adopters:
1111
logo: buoyant.svg
1212
- name: DigitalOcean
1313
url: https://www.digitalocean.com/
14-
logo: digitalocean.png
14+
logo: digital_ocean.png
1515
- name: Electronic Arts
1616
url: https://www.ea.com/
1717
logo: ea.png
@@ -38,7 +38,7 @@ adopters:
3838
logo: platform9.svg
3939
- name: REWE Digital
4040
url: https://rewe-digital.com/
41-
logo: rewe.png
41+
logo: rewe_digital.png
4242
- name: SysEleven
4343
url: https://www.syseleven.de/
4444
logo: syseleven.png

website/layouts/shortcodes/adopters.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
<div class="col pb-5">
99
<p class="h2 companies text-center">Companies using Cortex</p>
1010
</div>
11-
<div class="row logos">
11+
<div class="adopters-logos">
1212
{{ range $adopter := sort $.Site.Data.adopters.adopters "name" }}
1313
{{ if $adopter.logo }}
14-
<a class="col-lg-2 col-md-4 col-sm-6 adopter-img my-3"
15-
style="background-image: url({{ (printf "/logos/%s" $adopter.logo) | relURL }}); margin-left: auto; margin-right: auto;"
16-
href="{{ $adopter.url }}" rel="nofollow" target="_blank" style="display: block;">
14+
<a class="adopter-logo" href="{{ $adopter.url }}" rel="nofollow" target="_blank">
15+
<img src="{{ (printf "/logos/%s" $adopter.logo) | relURL }}" alt="{{ $adopter.name }}" />
1716
</a>
1817
{{ end }}
1918
{{ end }}

website/static/logos/aspen-mesh.png

-2.96 KB
Binary file not shown.

website/static/logos/aspen_mesh.png

9.45 KB
Loading
77.6 KB
Loading

website/static/logos/digitalocean.png

-75.3 KB
Binary file not shown.

website/static/logos/rewe.png

-6.05 KB
Binary file not shown.

website/static/logos/rewe_digital.png

12.7 KB
Loading

0 commit comments

Comments
 (0)