Skip to content

Commit

Permalink
Add project section and adopters list (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
phillebaba authored Feb 23, 2025
1 parent 38377c3 commit 63c6dcc
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 2 deletions.
1 change: 1 addition & 0 deletions content/project/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<meta http-equiv="refresh" content="0; url=/project/adopters" />
59 changes: 59 additions & 0 deletions content/project/adopters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: Adopters
type: docs
weight: 2
---

<p>These organizations are embracing Spegel in production.<p>
<p>Thank you for being a part of our community! 🌟💖<p>

<style>
.container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-top: 16px;
}

.item {
border-color: #e5e7eb;
border-width: 1px;
background-color: #f3f4f6;
border-radius: 8px;
overflow: hidden;
transition: box-shadow 0.3s ease-in-out;
}

.item:hover {
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.07);
}

.item-image {
background-color: #ffffff;
height: 150px;
margin: 0;
object-fit: contain;
padding: 16px;
width: 100%;
border-radius: 0;
}
</style>

{{% adopters.inline %}}
{{ $adopters := .Site.Data.adopters }}
{{ $sections := slice "projects" "companies" }}
{{ range $sections }}
## {{ . | humanize }}

<div class="container">
{{ range $i, $adopter := index $adopters . }}
<a href="{{ $adopter.link }}" target="_blank" style="text-decoration: none; color: inherit;">
<div class="item">
<image class="item-image" src="{{ $adopter.image }}"/>
<div style="padding: 16px;"><b>{{ $adopter.name }}</b></div>
</div>
</a>
{{ end }}
</div>
{{ end }}
{{% /adopters.inline %}}
17 changes: 17 additions & 0 deletions data/adopters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
projects:
- name: K3S
link: https://k3s.io
image: /images/logos/k3s.svg
- name: RKE2
link: https://docs.rke2.io
image: /images/logos/rke2.png
companies:
- name: National Research Platform
link: https://nationalresearchplatform.org/
image: /images/logos/nrp.webp
- name: Nemlig
link: https://www.nemlig.com/
image: /images/logos/nemlig.svg
- name: Xenit AB
link: https://xenit.se
image: /images/logos/xenit.png
7 changes: 5 additions & 2 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ menu:
- name: Docs
weight: 1
pageRef: /docs
- name: Search
- name: Project
weight: 2
pageRef: /project
- name: Search
weight: 3
params:
type: search
- name: GitHub
weight: 3
weight: 4
url: "https://github.com/spegel-org/spegel"
params:
icon: github
Expand Down
1 change: 1 addition & 0 deletions static/images/logos/k3s.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions static/images/logos/nemlig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/logos/nrp.webp
Binary file not shown.
Binary file added static/images/logos/rke2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/logos/xenit.png
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 63c6dcc

Please sign in to comment.