Skip to content

Commit

Permalink
sponsors: keep the ratio of ESWIN logo
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Tsien <[email protected]>
  • Loading branch information
bekcpear committed Aug 12, 2024
1 parent e559681 commit f94919c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
9 changes: 9 additions & 0 deletions assets/ananke/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,15 @@ section.section-container {
height: 80px;
}
}
&.keep-ratio {
padding: 0;
background-color: transparent;
border-radius: 0;
box-shadow: none;
img {
height: 140px;
}
}
}
&.diamond, &.host {
a {
Expand Down
4 changes: 3 additions & 1 deletion content/en/sponsors.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ diamond:
- icon: "/img/logos/0-Diamond/WinChipHead.webp"
url: "https://www.wch.cn"
- icon: "/img/logos/0-Diamond/ESWIN.webp"
url: "https://www.eswin.com"
url: "https://www.eswincomputing.com/"
keepRatio: true
backgroundColor: "white"
- icon: "/img/logos/0-Diamond/SOPHGO.webp"
url: "https://www.sophgo.com"
- icon: "/img/logos/0-Diamond/ZhiHe.webp"
Expand Down
4 changes: 3 additions & 1 deletion content/zh/sponsors.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ diamond:
- icon: "/img/logos/0-Diamond/WinChipHead.webp"
url: "https://www.wch.cn"
- icon: "/img/logos/0-Diamond/ESWIN.webp"
url: "https://www.eswin.com"
url: "https://www.eswincomputing.com/"
keepRatio: true
backgroundColor: "white"
- icon: "/img/logos/0-Diamond/SOPHGO.webp"
url: "https://www.sophgo.com"
- icon: "/img/logos/0-Diamond/ZhiHe.webp"
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/index-sections/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ <h1>{{ .Title | markdownify | emojify }}</h1>
<h2>{{ i18n "diamond" }}</h2>
<div class="sponsors-container diamond">
{{ range .Params.diamond }}
<a target="_blank" href="{{ .url }}">
<img src="{{ (printf "%s?v=%s" .icon (readFile (printf "static%s" .icon) | sha1) ) }}" />
<a target="_blank" href="{{ .url }}"{{if eq true .keepRatio}} class="keep-ratio"{{end}}>
<img {{with .backgroundColor}}style="background-color: {{.}}"{{end}} src="{{ (printf "%s?v=%s" .icon (readFile (printf "static%s" .icon) | sha1) ) }}" />
</a>
{{ end }}
</div>
Expand Down
Binary file modified static/img/logos/0-Diamond/ESWIN.webp
Binary file not shown.

0 comments on commit f94919c

Please sign in to comment.