Skip to content

Commit

Permalink
Merge pull request #15 from coreruleset/fix-sponsor-images
Browse files Browse the repository at this point in the history
fix: sponsors images
  • Loading branch information
dune73 authored Mar 24, 2024
2 parents 401800d + 8b9b96d commit 2cfe48a
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 4 deletions.
9 changes: 9 additions & 0 deletions assets/scss/_sponsors.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
.gold-sponsor {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}
.silver-sponsor {
display: flex;
justify-content: center;
align-items: center;
width: 80%;
}
.bronze-sponsor {
display: flex;
justify-content: center;
align-items: center;
width: 60%;
}
3 changes: 2 additions & 1 deletion data/sponsors.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
gold:
usp:
logo: "images/sponsors/usp.png"
logo: "images/sponsors/usp.svg"
name: "United Security Providers"
link: "https://united-security-providers.com"
google:
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ <h2>Call for Sponsors</h2>
your company or organization, then please get in touch with our sponsoring contact
CRS co-lead Christian Folini via firstname dot lastname at owasp dot org.

{{ $colnum := 2 }}
{{ $width := 900 }}
{{ range $name, $kind := .Site.Data.sponsors }}
<h3>{{ strings.FirstUpper $name }} Sponsors</h3>
{{ $colnum := 2 }}
<div class="columns columns-{{ $colnum }}">
{{ range $kind }}
<div class="column {{ lower $name }}-sponsor">
<a href="{{ .link }}">
<img
caption="{{ .caption }}"
width="300"
height="150"
width="{{ div $width $colnum}}"
loading="lazy"
src="{{ relURL .logo }}"
link="{{ .link }}"
Expand Down
62 changes: 62 additions & 0 deletions static/images/sponsors/usp.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 2cfe48a

Please sign in to comment.