|
1 | 1 | - title = local_assigns[:title] ? local_assigns[:title] : t("donation_platforms.title") |
2 | 2 |
|
3 | | -.row |
4 | | - .col.mb-3 |
| 3 | +.row.justify-content-center |
| 4 | + .col-12.col-md-7.text-center.mb-3 |
5 | 5 | %h2.h1= title |
| 6 | + %p= t("donation_platforms.description") |
6 | 7 |
|
7 | 8 | .row.d-flex |
8 | 9 | .d-flex.col-sm-12.col-md-6.col-lg-3 |
9 | 10 | .card.mt-3.mt-lg-0.shadow |
10 | 11 | .card-header.bg-white.border-0.p-0.ratio.ratio-21x9 |
11 | 12 | .bg-white.rounded-top.p-3.d-flex.align-items-center |
12 | | - = image_tag("logo.png", alt: "codebar logo", class: "mw-100") |
| 13 | + = image_tag("logo.png", alt:t("donation_platforms.donation_form.image_alt"), class: "mw-100") |
13 | 14 | .card-body |
14 | 15 | %h3.h6= link_to(t("donation_platforms.donation_form.title"), new_donation_path) |
15 | 16 | %p.card-text= t("donation_platforms.donation_form.text") |
16 | 17 | .d-flex.col-sm-12.col-md-6.col-lg-3 |
17 | 18 | .card.mt-3.mt-lg-0.shadow |
18 | 19 | .card-header.bg-white.border-0.p-0.ratio.ratio-21x9 |
19 | 20 | .bg-dark.rounded-top |
20 | | - = image_tag("give-as-you-live.png", alt: "Give as you Live logo", class: "mw-100 rounded-top") |
| 21 | + = image_tag("give-as-you-live.png", alt: t("donation_platforms.give_as_you_live.image_alt"), class: "mw-100 rounded-top") |
21 | 22 | .card-body |
22 | 23 | %h3.h6= link_to(t("donation_platforms.give_as_you_live.title"), "https://www.giveasyoulive.com/join/codebar?utm_source=charitytoolkit&utm_content=233896&utm_medium=post&utm_campaign=CTGenericCampaign") |
23 | 24 | %p.card-text= t("donation_platforms.give_as_you_live.text") |
24 | 25 | .d-flex.col-sm-12.col-md-6.col-lg-3 |
25 | 26 | .card.mt-3.mt-lg-0.shadow |
26 | 27 | .card-header.bg-white.border-0.p-0.ratio.ratio-21x9 |
27 | 28 | .bg-white.rounded-top.p-3.d-flex.align-items-center |
28 | | - = image_tag("open-collective-logo.png", alt: "Open Collective logo", class: "mw-100") |
| 29 | + = image_tag("open-collective-logo.png", alt: t("donation_platforms.open_collective.image_alt"), class: "mw-100") |
29 | 30 | .card-body |
30 | 31 | %h3.h6= link_to(t("donation_platforms.open_collective.title"), "https://opencollective.com/codebar") |
31 | 32 | %p.card-text= t("donation_platforms.open_collective.text") |
32 | 33 | .d-flex.col-sm-12.col-md-6.col-lg-3 |
33 | 34 | .card.mt-3.mt-lg-0.shadow |
34 | 35 | .card-header.bg-white.border-0.p-0.ratio.ratio-21x9 |
35 | 36 | .bg-dark.rounded-top |
36 | | - = image_tag("GitHub_Logo_White.png", alt: "Github Sponsors logo", class: "mw-100") |
| 37 | + = image_tag("GitHub_Logo_White.png", alt: t("donation_platforms.github_sponsors.image_alt"), class: "mw-100") |
37 | 38 | .card-body |
38 | 39 | %h3.h6= link_to(t("donation_platforms.github_sponsors.title"), "https://github.com/sponsors/codebar") |
39 | 40 | %p.card-text= t("donation_platforms.github_sponsors.text") |
40 | 41 |
|
41 | 42 | - if local_assigns[:with_button] |
42 | 43 | .d-flex.justify-content-center.mt-4 |
43 | | - = link_to t("donation_platforms.link"), how_to_support_us_path, class: 'btn btn-primary btn-lg' |
| 44 | + = link_to t("donation_platforms.link"), how_to_support_us_path, class: "btn btn-primary btn-lg" |
0 commit comments