From 0aaef90c26ac01348d48c2f1f6e3c4759e0aa663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Tue, 8 Oct 2024 22:38:14 +0200 Subject: [PATCH 1/6] Add `_data/sponsors_gold.csv` --- _data/sponsor_logos_gold.csv | 3 +++ _data/sponsor_logos_l.csv | 2 -- scripts/merge.cr | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 _data/sponsor_logos_gold.csv diff --git a/_data/sponsor_logos_gold.csv b/_data/sponsor_logos_gold.csv new file mode 100644 index 00000000..aa8adb9f --- /dev/null +++ b/_data/sponsor_logos_gold.csv @@ -0,0 +1,3 @@ +logo,name,url,last_payment,all_time,since,level +sponsors/buy_google_reviews.jpg,Buy Google Reviews,https://buyreviewz.com/buy-google-reviews,$750,"$1,500","Aug 7, 2024",750 +sponsors/buy_instagram_followers_thunderclapit.png,Buy Instagram Followers Thunderclapit,https://thunderclap.it/buy-instagram-followers,$750,"$1,500","Aug 7, 2024",750 diff --git a/_data/sponsor_logos_l.csv b/_data/sponsor_logos_l.csv index 82bdf228..c59b5198 100644 --- a/_data/sponsor_logos_l.csv +++ b/_data/sponsor_logos_l.csv @@ -1,5 +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/buy_google_reviews.jpg,Buy Google Reviews,https://buyreviewz.com/buy-google-reviews,$750,"$1,500","Aug 7, 2024",750 -sponsors/buy_instagram_followers_thunderclapit.png,Buy Instagram Followers Thunderclapit,https://thunderclap.it/buy-instagram-followers,$750,"$1,500","Aug 7, 2024",750 diff --git a/scripts/merge.cr b/scripts/merge.cr index 2ee01ae4..7ad893ee 100644 --- a/scripts/merge.cr +++ b/scripts/merge.cr @@ -75,7 +75,8 @@ 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 >= 750 }) +write_csv("sponsor_logos_l.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) }) From 2e358630051649070bd0ea895e910d802e160052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Tue, 8 Oct 2024 22:56:43 +0200 Subject: [PATCH 2/6] Remove contrast filter in top-sponsor logos --- _sass/components/_top-sponsors.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_sass/components/_top-sponsors.scss b/_sass/components/_top-sponsors.scss index ed532029..fe2bd08b 100644 --- a/_sass/components/_top-sponsors.scss +++ b/_sass/components/_top-sponsors.scss @@ -8,14 +8,14 @@ @extend .ui-link; --top-sponsors-icon-width: 11ch; - --top-sponsors-icon-filter: #{"contrast(2) grayscale()"}; + --top-sponsors-icon-filter: #{"grayscale()"}; --link-color: var(--primary-text); --link-hover-color: var(--light-text); &--s { --top-sponsors-icon-width: 7ch; - --top-sponsors-icon-filter: #{"contrast(0.4) grayscale()"}; + --top-sponsors-icon-filter: #{"grayscale()"}; --link-color: var(--lighter-text); font-size: font-size(xsmall); } From 0f2b76ac8e35628b93a139924e719fef59643123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Tue, 8 Oct 2024 22:57:51 +0200 Subject: [PATCH 3/6] Add `top-sponsors--gold` --- _includes/components/top-sponsors-icons.html | 7 +++++++ _sass/components/_top-sponsors.scss | 17 ++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/_includes/components/top-sponsors-icons.html b/_includes/components/top-sponsors-icons.html index 9316e896..9fac0726 100644 --- a/_includes/components/top-sponsors-icons.html +++ b/_includes/components/top-sponsors-icons.html @@ -6,6 +6,13 @@ {%- endfor %} +
+ {%- for sponsor in site.data.sponsor_logos_gold %} + + {{- sponsor.name }} + + {%- endfor %} +
{%- for sponsor in site.data.sponsor_logos_s %} diff --git a/_sass/components/_top-sponsors.scss b/_sass/components/_top-sponsors.scss index fe2bd08b..3e918b2e 100644 --- a/_sass/components/_top-sponsors.scss +++ b/_sass/components/_top-sponsors.scss @@ -1,20 +1,31 @@ .top-sponsors { display: flex; flex-wrap: wrap; - gap: var(--padding-md); + gap: var(--padding-sm); justify-content: center; margin-top: var(--block-flow-md); @extend .ui-link; - --top-sponsors-icon-width: 11ch; + --top-sponsors-icon-width: 12ch; --top-sponsors-icon-filter: #{"grayscale()"}; --link-color: var(--primary-text); --link-hover-color: var(--light-text); + &--corporate { + gap: var(--padding-md); + } + + &--gold { + --top-sponsors-icon-width: 10ch; + --top-sponsors-icon-filter: #{"grayscale()"}; + --link-color: var(--lighter-text); + font-size: font-size(xsmall); + } + &--s { - --top-sponsors-icon-width: 7ch; + --top-sponsors-icon-width: 6ch; --top-sponsors-icon-filter: #{"grayscale()"}; --link-color: var(--lighter-text); font-size: font-size(xsmall); From 91d5ab5b800302e4c401be3451d092afcba632b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Tue, 8 Oct 2024 23:00:08 +0200 Subject: [PATCH 4/6] Rename to `sponsor_logos_corporate` and `sponsor_logos_silver` --- .../{sponsor_logos_l.csv => sponsor_logos_corporate.csv} | 4 ++-- _data/{sponsor_logos_s.csv => sponsor_logos_silver.csv} | 0 _includes/components/top-sponsors-icons.html | 8 ++++---- _includes/pages/sponsors/sponsor-cards.html | 2 +- _sass/components/_top-sponsors.scss | 2 +- scripts/merge.cr | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) rename _data/{sponsor_logos_l.csv => sponsor_logos_corporate.csv} (59%) rename _data/{sponsor_logos_s.csv => sponsor_logos_silver.csv} (100%) diff --git a/_data/sponsor_logos_l.csv b/_data/sponsor_logos_corporate.csv similarity index 59% rename from _data/sponsor_logos_l.csv rename to _data/sponsor_logos_corporate.csv index c59b5198..b2b71806 100644 --- a/_data/sponsor_logos_l.csv +++ b/_data/sponsor_logos_corporate.csv @@ -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 diff --git a/_data/sponsor_logos_s.csv b/_data/sponsor_logos_silver.csv similarity index 100% rename from _data/sponsor_logos_s.csv rename to _data/sponsor_logos_silver.csv diff --git a/_includes/components/top-sponsors-icons.html b/_includes/components/top-sponsors-icons.html index 9fac0726..cca785e2 100644 --- a/_includes/components/top-sponsors-icons.html +++ b/_includes/components/top-sponsors-icons.html @@ -1,5 +1,5 @@ -
- {%- for sponsor in site.data.sponsor_logos_l %} + -
- {%- for sponsor in site.data.sponsor_logos_s %} +
+ {%- for sponsor in site.data.sponsor_logos_silver %} {{- sponsor.name }} diff --git a/_includes/pages/sponsors/sponsor-cards.html b/_includes/pages/sponsors/sponsor-cards.html index e371734b..4f58e89b 100644 --- a/_includes/pages/sponsors/sponsor-cards.html +++ b/_includes/pages/sponsors/sponsor-cards.html @@ -1,5 +1,5 @@
    - {%- for sp in site.data.sponsor_logos_l %} + {%- for sp in site.data.sponsor_logos_corporate %}