Skip to content

Commit

Permalink
Updates content in donation platforms section/partial
Browse files Browse the repository at this point in the history
  • Loading branch information
matyikriszta committed Jan 17, 2024
1 parent 9317ec6 commit 70160f3
Show file tree
Hide file tree
Showing 14 changed files with 133 additions and 97 deletions.
Binary file added app/assets/images/GitHub_Logo_White.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/amazon-smile-logo.png
Binary file not shown.
Binary file added app/assets/images/give-as-you-live.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/views/dashboard/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

.py-4.py-lg-5.bg-light
.container
= render partial: 'shared/donation_platforms'
= render partial: 'shared/donation_platforms', locals: { title: t('homepage.donation_platforms.title') }

.container.py-4.py-lg-5
.row
Expand Down
56 changes: 33 additions & 23 deletions app/views/shared/_donation_platforms.html.haml
Original file line number Diff line number Diff line change
@@ -1,33 +1,43 @@
- title = local_assigns[:title] ? local_assigns[:title] : t("donation_platforms.title")

.row
.col.mb-3
%h2= t("donation_platforms.title")
%h2.h1= title

.row.d-flex
.d-flex.col-sm-12.col-md-6.col-lg-3
.card.mt-1.border-0
%div.card-header.bg-white.border-0.pb-0.pt-4
= image_tag("logo.png", style: "max-height: 50px;", alt: "codebar logo", class: "mw-100")
%div.card-body
.card.mt-3.mt-lg-0.border-0
.card-header.bg-white.border-0.p-0.ratio.ratio-21x9
.bg-white.rounded-top.p-3.d-flex.align-items-center
= image_tag("logo.png", alt: "codebar logo", class: "mw-100")
.card-body
%h3.h6= link_to(t("donation_platforms.donation_form.title"), new_donation_path)
%p= t("donation_platforms.donation_form.text")
%p.card-text= t("donation_platforms.donation_form.text")
.d-flex.col-sm-12.col-md-6.col-lg-3
.card.mt-1.border-0
%div.card-header.bg-white.border-0.pb-0.pt-4
= image_tag("amazon-smile-logo.png", style: "max-height: 50px;", alt: "Amazon Smile logo", class: "mw-100")
%div.card-body
%h3.h6= link_to(t("donation_platforms.amazon_smile.title"), "https://smile.amazon.co.uk")
%p= t("donation_platforms.amazon_smile.text")
.card.mt-3.mt-lg-0.border-0
.card-header.bg-white.border-0.p-0.ratio.ratio-21x9
.bg-dark.rounded-top
= image_tag("give-as-you-live.png", alt: "Give as you Live logo", class: "mw-100 rounded-top")
.card-body
%h3.h6= link_to(t("donation_platforms.give_as_you_live.title"), "https://www.giveasyoulive.com/")
%p.card-text= t("donation_platforms.give_as_you_live.text")
.d-flex.col-sm-12.col-md-6.col-lg-3
.card.mt-1.border-0
%div.card-header.bg-white.border-0.pb-0.pt-4
= image_tag("open-collective-logo.png", style: "max-height: 50px;", alt: "Open Collective logo", class: "mw-100")
%div.card-body
.card.mt-3.mt-lg-0.border-0
.card-header.bg-white.border-0.p-0.ratio.ratio-21x9
.bg-white.rounded-top.p-3.d-flex.align-items-center
= image_tag("open-collective-logo.png", alt: "Open Collective logo", class: "mw-100")
.card-body
%h3.h6= link_to(t("donation_platforms.open_collective.title"), "https://opencollective.com/codebar")
%p= t("donation_platforms.open_collective.text")
%p.card-text= t("donation_platforms.open_collective.text")
.d-flex.col-sm-12.col-md-6.col-lg-3
.card.mt-1.border-0
%div.card-header.bg-white.border-0.pb-0.pt-4
= image_tag("benevity-logo.png", style: "max-height: 50px;", alt: "Benevity logo", class: "mw-100")
%div.card-body
%h3.h6= link_to(t("donation_platforms.benevity.title"), "https://www.benevity.com/")
%p= t("donation_platforms.benevity.text")
.card.mt-3.mt-lg-0.border-0
.card-header.bg-white.border-0.p-0.ratio.ratio-21x9
.bg-dark.rounded-top
= image_tag("GitHub_Logo_White.png", alt: "Github Sponsors logo", class: "mw-100")
.card-body
%h3.h6= link_to(t("donation_platforms.github_sponsors.title"), "https://github.com/sponsors")
%p.card-text= t("donation_platforms.github_sponsors.text")

- if local_assigns[:with_button]
.d-flex.justify-content-center.mt-4
= link_to t("donation_platforms.link"), how_to_support_us_path, class: 'btn btn-primary btn-lg'
19 changes: 11 additions & 8 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ de:
title: "Chapters"
events:
upcoming: "Upcoming Events"
donation_platforms:
title: "How to support us"
mailer:
workshop_invitation:
attending:
Expand Down Expand Up @@ -593,16 +595,17 @@ de:
link_to_job: Link to job post
expiry_date: Application closing date
donation_platforms:
title: "How to support us"
title: "Donate"
link: "Find out how else to support us"
donation_form:
title: "Use the donation page"
text: "Support us with one-time or regular donation through the donation form on our website."
amazon_smile:
title: "Amazon Smile"
text: "Pick us as your charitable organisation while shopping on Amazon. This allows us to receive 0.5% of the net purchase price of eligible purchases as a donation."
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
github_sponsors:
title: "Github Sponsors"
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
open_collective:
title: "Open Collective"
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
benevity:
title: "Benevity"
text: "Benevity is a platform enabling corporate social responsibility and employee engagement. We receive a donation from your employer with every hour you volunteer with us."
give_as_you_live:
title: "Give as you Live"
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
19 changes: 11 additions & 8 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ en:
description: Get regular updates about the codebar community. Be informed about upcoming events, jobs, scholarships and other learning opportunities.
events:
upcoming: "Upcoming Events"
donation_platforms:
title: "How to support us"
mailer:
workshop_invitation:
attending:
Expand Down Expand Up @@ -825,19 +827,20 @@ en:
slack_html: https://slack.codebar.io
discord_invitation: https://discord.gg/Eru89Rk
donation_platforms:
title: "How to support us"
title: "Donate"
link: "Find out how else to support us"
donation_form:
title: "Use the donation page"
text: "Support us with a one-time or recurring donation through the donation form on our website."
amazon_smile:
title: "Amazon Smile"
text: "Pick us as your charitable organisation while shopping on Amazon. This allows us to receive 0.5% of the net purchase price of eligible purchases as a donation."
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
github_sponsors:
title: "Github Sponsors"
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
open_collective:
title: "Open Collective"
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
benevity:
title: "Benevity"
text: "Benevity is a platform enabling corporate social responsibility and employee engagement. We receive a donation from your employer with every hour you volunteer with us."
give_as_you_live:
title: "Give as you Live"
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
services:
donations: https://codebar.enthuse.com/donate/#!/

19 changes: 11 additions & 8 deletions config/locales/en_AU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ en-AU:
title: "Chapters"
events:
upcoming: "Upcoming Events"
donation_platforms:
title: "How to support us"
mailer:
workshop_invitation:
attending:
Expand Down Expand Up @@ -594,16 +596,17 @@ en-AU:
link_to_job: Link to job post
expiry_date: Application closing date
donation_platforms:
title: "How to support us"
title: "Donate"
link: "Find out how else to support us"
donation_form:
title: "Use the donation page"
text: "Support us with a one-time or recurring donation through the donation form on our website."
amazon_smile:
title: "Amazon Smile"
text: "Pick us as your charitable organisation while shopping on Amazon. This allows us to receive 0.5% of the net purchase price of eligible purchases as a donation."
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
github_sponsors:
title: "Github Sponsors"
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
open_collective:
title: "Open Collective"
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
benevity:
title: "Benevity"
text: "Benevity is a platform enabling corporate social responsibility and employee engagement. We receive a donation from your employer with every hour you volunteer with us."
give_as_you_live:
title: "Give as you Live"
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
19 changes: 11 additions & 8 deletions config/locales/en_GB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ en-GB:
title: "Chapters"
events:
upcoming: "Upcoming Events"
donation_platforms:
title: "How to support us"
mailer:
workshop_invitation:
attending:
Expand Down Expand Up @@ -594,16 +596,17 @@ en-GB:
link_to_job: Link to job post
expiry_date: Application closing date
donation_platforms:
title: "How to support us"
title: "Donate"
link: "Find out how else to support us"
donation_form:
title: "Use the donation page"
text: "Support us with a one-time or recurring donation through the donation form on our website."
amazon_smile:
title: "Amazon Smile"
text: "Pick us as your charitable organisation while shopping on Amazon. This allows us to receive 0.5% of the net purchase price of eligible purchases as a donation."
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
github_sponsors:
title: "Github Sponsors"
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
open_collective:
title: "Open Collective"
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
benevity:
title: "Benevity"
text: "Benevity is a platform enabling corporate social responsibility and employee engagement. We receive a donation from your employer with every hour you volunteer with us."
give_as_you_live:
title: "Give as you Live"
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
19 changes: 11 additions & 8 deletions config/locales/en_US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ en-US:
title: "Chapters"
events:
upcoming: "Upcoming Events"
donation_platforms:
title: "How to support us"
mailer:
workshop_invitation:
attending:
Expand Down Expand Up @@ -592,16 +594,17 @@ en-US:
link_to_job: Link to job post
expiry_date: Application closing date
donation_platforms:
title: "How to support us"
title: "Donate"
link: "Find out how else to support us"
donation_form:
title: "Use the donation page"
text: "Support us with a one-time or recurring donation through the donation form on our website."
amazon_smile:
title: "Amazon Smile"
text: "Pick us as your charitable organisation while shopping on Amazon. This allows us to receive 0.5% of the net purchase price of eligible purchases as a donation."
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
github_sponsors:
title: "Github Sponsors"
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
open_collective:
title: "Open Collective"
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
benevity:
title: "Benevity"
text: "Benevity is a platform enabling corporate social responsibility and employee engagement. We receive a donation from your employer with every hour you volunteer with us."
give_as_you_live:
title: "Give as you Live"
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
20 changes: 11 additions & 9 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ es:
workshop_email_subject: "Respecto a la realización de un taller"
chapters:
title: "Capítulos"
donation_platforms:
title: "How to support us"
mailer:
workshop_invitation:
attending:
Expand Down Expand Up @@ -593,17 +595,17 @@ es:
link_to_job: Enlace a la publicación de empleo
expiry_date: Fecha de cierre de la solicitud
donation_platforms:
title: "Como apoyarnos"
title: "Donate"
link: "Find out how else to support us"
donation_form:
title: "Usa la página de donaciones"
text: "Apóyenos con una donación única o recurrente a través del formulario de donación en nuestro sitio web."
amazon_smile:
title: "Amazon Smile"
text: "Elíjanos como su organización benéfica mientras compra en Amazon. Esto nos permite recibir el 0,5% del precio de compra neto de las compras elegibles como donación."
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
github_sponsors:
title: "Github Sponsors"
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
open_collective:
title: "Open Collective"
text: "Configure una contribución recurrente o haga una donación única con Open Collective."
benevity:
title: "Benevity"
text: "Benevity es una plataforma que permite la responsabilidad social corporativa y el compromiso de los empleados. Recibimos una donación de su empleador por cada hora que se ofrece como voluntario con nosotros.
"
give_as_you_live:
title: "Give as you Live"
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
19 changes: 11 additions & 8 deletions config/locales/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ fi:
title: "Chapters"
events:
upcoming: "Upcoming Events"
donation_platforms:
title: "How to support us"
mailer:
workshop_invitation:
attending:
Expand Down Expand Up @@ -594,16 +596,17 @@ fi:
link_to_job: Link to job post
expiry_date: Application closing date
donation_platforms:
title: "How to support us"
title: "Donate"
link: "Find out how else to support us"
donation_form:
title: "Use the donation page"
text: "Support us with a one-time or recurring donation through the donation form on our website."
amazon_smile:
title: "Amazon Smile"
text: "Pick us as your charitable organisation while shopping on Amazon. This allows us to receive 0.5% of the net purchase price of eligible purchases as a donation."
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
github_sponsors:
title: "Github Sponsors"
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
open_collective:
title: "Open Collective"
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
benevity:
title: "Benevity"
text: "Benevity is a platform enabling corporate social responsibility and employee engagement. We receive a donation from your employer with every hour you volunteer with us."
give_as_you_live:
title: "Give as you Live"
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
19 changes: 11 additions & 8 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ fr:
title: "Chapters"
events:
upcoming: "Upcoming Events"
donation_platforms:
title: "How to support us"
mailer:
workshop_invitation:
attending:
Expand Down Expand Up @@ -592,16 +594,17 @@ fr:
link_to_job: Link to job post
expiry_date: Application closing date
donation_platforms:
title: "How to support us"
title: "Donate"
link: "Find out how else to support us"
donation_form:
title: "Use the donation page"
text: "Support us with a one-time or recurring donation through the donation form on our website."
amazon_smile:
title: "Amazon Smile"
text: "Pick us as your charitable organisation while shopping on Amazon. This allows us to receive 0.5% of the net purchase price of eligible purchases as a donation."
text: "Consider making a lasting impact through codebar with a one-time donation or a monthly recurring contribution. Your support, whether a single gift or ongoing commitment, fuels our efforts to create an inclusive tech industry and provides consistent opportunities for learning and growth for members of groups underrepresented in the tech industry."
github_sponsors:
title: "Github Sponsors"
text: "Support codebar's mission directly through GitHub Sponsors. Join us in shaping the future of technology through your generous donation."
open_collective:
title: "Open Collective"
text: "Setup a recurring contribution or make a one-time donation through Open Collective."
benevity:
title: "Benevity"
text: "Benevity is a platform enabling corporate social responsibility and employee engagement. We receive a donation from your employer with every hour you volunteer with us."
give_as_you_live:
title: "Give as you Live"
text: "Give as you Live is a platform enabling you to raise funds for your favourite charity with your everyday online shopping."
Loading

0 comments on commit 70160f3

Please sign in to comment.