Skip to content

Commit

Permalink
web: Moved internal naming to adopters. (#1307)
Browse files Browse the repository at this point in the history
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
  • Loading branch information
bwplotka authored Jul 11, 2019
1 parent 34872e4 commit 40829e6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/contributing/how-to-contribute-to-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ Keep `menu` the same as sub-directory the file is in. This will help to manage a

Show new menu section in main page by changing `website/layouts/_default/baseof.html` file.

## Logos
## Adopters Logos

We'd love to showcase your company's logo on our main page and README!
Requirements for the company:
* it is using Thanos on production
* it is a legal registered company
* it is happy to announce that you use Thanos publicly

If all those are met, add yourself in [`website/data/sponsors.yml`](/website/data/sponsors.yml) like so:
If all those are met, add yourself in [`website/data/adopters.yml`](/website/data/adopters.yml) like so:

```yml
- name: My Awesome Company
Expand Down
2 changes: 1 addition & 1 deletion website/data/sponsors.yml → website/data/adopters.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sponsors:
adopters:
- name: Monzo
url: https://www.monzo.com
logo: monzo.png
Expand Down
12 changes: 6 additions & 6 deletions website/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,24 @@ <h4 class="font-weight-bold">Downsampling & Compaction</h4>
<h2 class="heading-big text-center">Founded By</h2>
<div class="row">
<div class="col-6 offset-3 col-sm-6 offset-sm-3 col-md-4 offset-md-4">
<div class="img-sponsor">
<div class="img-adopter">
<a href="https://improbable.io" rel="nofollow" target="_blank"><img src="{{ "/logos/improbable.png" | relURL }}" class="img-fluid" alt="Improbable"></a>
</div>
</div>
</div>
<h2 class="heading-big text-center">Used By</h2>
<div class="row">
{{ range $sponsor := sort $.Site.Data.sponsors.sponsors "name" }}
{{ if $sponsor.logo }}
{{ range $adopter := sort $.Site.Data.adopters.adopters "name" }}
{{ if $adopter.logo }}
<div class="col-6 col-sm-6 col-md-3">
<div class="img-sponsor">
<a href="{{ $sponsor.url }}" rel="nofollow" target="_blank"><img src="{{ (printf "/logos/%s" $sponsor.logo) | relURL }}" alt="{{ $sponsor.name }}"></a>
<div class="img-adopter">
<a href="{{ $adopter.url }}" rel="nofollow" target="_blank"><img src="{{ (printf "/logos/%s" $adopter.logo) | relURL }}" alt="{{ $adopter.name }}"></a>
</div>
</div>
{{ end }}
{{ end }}
<div class="col-6 col-sm-6 col-md-3">
<div class="img-sponsor">
<div class="img-adopter">
<a class="text-center text-muted" href="{{ "contributing/how-to-contribute-to-docs.md#logos" | relURL }}">Your Company</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions website/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pre {
color: #6D41FF;
}

.img-sponsor {
.img-adopter {
padding: 25px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,.1);
Expand All @@ -64,7 +64,7 @@ pre {
height: 100px;
}

.img-sponsor img {
.img-adopter img {
max-width: 100%;
max-height: 100%;
}
Expand Down

0 comments on commit 40829e6

Please sign in to comment.