Skip to content

Commit

Permalink
feat(docs): add adopter section in doc main page (#3466)
Browse files Browse the repository at this point in the history
* Add adopter section in doc main page

Signed-off-by: Wilson Wu <[email protected]>

* Add adopters and fix style

Signed-off-by: Wilson Wu <[email protected]>

---------

Signed-off-by: Wilson Wu <[email protected]>
  • Loading branch information
wilsonwu authored May 28, 2024
1 parent 3f7767f commit 57a6ea3
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ For announcement of latest features etc.

{{% /blocks/section %}}

{{< adopters >}}

{{% blocks/lead type="row" color="white" %}}

<img src="/img/cncf.svg" alt="CNCF" width="40%">
Expand Down
2 changes: 2 additions & 0 deletions site/content/zh/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ title: Envoy Gateway

{{% /blocks/section %}}

{{< adopters >}}

{{% blocks/lead type="row" color="white" %}}

<img src="/img/cncf.svg" alt="CNCF" width="40%">
Expand Down
13 changes: 13 additions & 0 deletions site/data/adopters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
adopters:
- name: "AllFactors"
logo: "/logos/allfactors.svg"
url: "https://allfactors.com/"
description: "Routing all customer traffic to our various backends. Every time a new customer signs up we dynamically add a route to a new hostname so Envoy Gateway is deeply integrated with our product."
- name: "Tetrate"
logo: "/logos/tetrate.svg"
url: "https://www.tetrate.io"
description: "Tetrate provides Enterprise Gateway (TEG) to end users, which includes a 100% upstream distribution of Envoy Gateway, and management to deliver applications securely, authenticate user traffic, protect services with rate limiting and WAF, and integrate with your observability stack to monitor and observe activity."
- name: "Airspace Link"
logo: "/logos/airspacelink.svg"
url: "https://airspacelink.com/"
description: "Airspace Link is using Envoy Gateway to route all public APIs to Kubernetes clusters, developers are manipulating routes descriptions using agnostic manifest files, which are then automatically provisioned using Envoy Gateway."
84 changes: 84 additions & 0 deletions site/layouts/shortcodes/adopters.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{{ $adopters := .Site.Data.adopters.adopters }}
<section id="adopters">
<h2 class="adopter-head">Our Adopters</h2>
<div class="adopters-list">
{{ range $adopters }}
<a class="adopter" href="{{ .url }}" target="_blank">
<img src="{{ .logo | relURL }}" alt="{{ .name }} logo">
<div class="adopter-info">
<p>{{ .description }}</p>
</div>
</a>
{{ end }}
</div>
</section>

<style>
#adopters {
text-align: center;
padding: 0px;
}

.adopter-head {
padding: 50px;
}

.adopters-list {
display: flex;
flex-wrap: wrap;
justify-content: flex-start; /* Center items horizontally */
gap: 20px;
max-width: 1200px; /* Adjust to fit the container width */
margin: 0 auto; /* Center the container */
}

.adopter {
position: relative;
flex: 0 1 calc(25% - 20px); /* Adjust width to fit 4 items per row */
max-width: calc(25% - 20px);
box-sizing: border-box;
padding: 20px;
background-color: #f9f9f9;
border-radius: 8px;
text-align: center;
transition: transform 0.3s ease;
display: grid;
place-items: center;
width: 100%;
}

.adopter img {
max-width: 100%;
height: auto;
}

.adopter-info {
display: none;
position: absolute;
bottom: 100%; /* Position above the logo */
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.8);
color: white;
padding: 10px 10px 0px 15px;
border-radius: 5px;
width: 500px; /* Adjust the width as needed */
z-index: 10;
text-align: left;
}

.adopter:hover .adopter-info {
display: block;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
.adopters-list {
justify-content: center; /* Ensure center alignment on mobile */
}
.adopter {
flex: 0 1 100%; /* Each item takes full width */
max-width: 100%;
}
}
</style>
1 change: 1 addition & 0 deletions site/static/logos/airspacelink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions site/static/logos/allfactors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions site/static/logos/tetrate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 57a6ea3

Please sign in to comment.