Skip to content

Commit

Permalink
Rename to sponsor_logos_corporate and sponsor_logos_silver
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Oct 9, 2024
1 parent 0f2b76a commit 91d5ab5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
logo,name,url,last_payment,all_time,since,level
sponsors/84.png,84codes,https://www.84codes.com/,"€22,000","€391,000","Apr 1, 2018",5000
manas-orange.svg,Manas.Tech,https://manas.tech/,"$5,000","$1,305,000","Jun 19, 2009",5000
sponsors/84.png,84codes,https://www.84codes.com/,"€22,000","€369,000","Apr 1, 2018",5000
manas-orange.svg,Manas.Tech,https://manas.tech/,"$5,000","$1,300,000","Jun 19, 2009",5000
File renamed without changes.
8 changes: 4 additions & 4 deletions _includes/components/top-sponsors-icons.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="top-sponsors top-sponsors--l">
{%- for sponsor in site.data.sponsor_logos_l %}
<div class="top-sponsors top-sponsors--corporate">
{%- for sponsor in site.data.sponsor_logos_corporate %}
<a href="{{ sponsor.url }}" rel="nofollow sponsored">
<img src="/assets/{{ sponsor.logo }}" alt="">
{{- sponsor.name }}
Expand All @@ -13,8 +13,8 @@
</a>
{%- endfor %}
</div>
<div class="top-sponsors top-sponsors--s">
{%- for sponsor in site.data.sponsor_logos_s %}
<div class="top-sponsors top-sponsors--silver">
{%- for sponsor in site.data.sponsor_logos_silver %}
<a href="{{ sponsor.url }}" rel="nofollow sponsored" title="{{- sponsor.name }}">
<img src="/assets/{{ sponsor.logo }}" alt="{{- sponsor.name }}">
</a>
Expand Down
2 changes: 1 addition & 1 deletion _includes/pages/sponsors/sponsor-cards.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ul class="cards-list">
{%- for sp in site.data.sponsor_logos_l %}
{%- for sp in site.data.sponsor_logos_corporate %}
<li class="sponsor-card">
<a href="{{ sp.url }}" class="name" rel="sponsored nofollow">{{ sp.name }}</a>
<img src="/assets/{{ sp.logo }}" alt="Logo of {{sp.name}}">
Expand Down
2 changes: 1 addition & 1 deletion _sass/components/_top-sponsors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
font-size: font-size(xsmall);
}

&--s {
&--silver {
--top-sponsors-icon-width: 6ch;
--top-sponsors-icon-filter: #{"grayscale()"};
--link-color: var(--lighter-text);
Expand Down
4 changes: 2 additions & 2 deletions scripts/merge.cr
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ end
all_sponsors.sort_by! { |s| {-s.last_payment, -s.all_time, s.since, s.name} }

write_csv("sponsors.csv", all_sponsors.select(&.listed?))
write_csv("sponsor_logos_l.csv", all_sponsors.select { |sponsor| sponsor.last_payment.to_i >= 2000 })
write_csv("sponsor_logos_corporate.csv", all_sponsors.select { |sponsor| sponsor.last_payment.to_i >= 2000 })
write_csv("sponsor_logos_gold.csv", all_sponsors.select { |sponsor| sponsor.last_payment.to_i.in?(750...2000) })
# NOTE: It should be 350, but we kept 250 to include PlaceOS
write_csv("sponsor_logos_s.csv", all_sponsors.select { |sponsor| sponsor.last_payment.to_i.in?(250...750) })
write_csv("sponsor_logos_silver.csv", all_sponsors.select { |sponsor| sponsor.last_payment.to_i.in?(250...750) })

def write_csv(filename, sponsors)
open_csv(filename) do |csv|
Expand Down

0 comments on commit 91d5ab5

Please sign in to comment.