-
-
Notifications
You must be signed in to change notification settings - Fork 199
feat: split how-to-support-us page into separate volunteer, fundraise, and donate pages #2493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
mroderick
wants to merge
1
commit into
codebar:master
Choose a base branch
from
mroderick:split-up-how-to-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| class DonationsController < ApplicationController | ||
| def new | ||
| redirect_to I18n.t('services.donations'), allow_other_host: true | ||
| redirect_to donate_path | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| .py-4.py-lg-5.bg-primary | ||
| .container | ||
| .row.align-items-center | ||
| .col-12.col-md-6 | ||
| %h1.display-2.text-white.lh-1.mb-4 | ||
| Donate | ||
| %br | ||
| to codebar | ||
| %p.text-white.lead.mb-4 | ||
| Your donation helps us continue running free coding workshops for people from underrepresented groups in tech. | ||
| .col-12.col-md-6 | ||
| = image_tag 'how-to-support-us/codebar-festival-2023.jpg', alt: '', class: 'mw-100 rounded' | ||
|
|
||
| .py-4.py-lg-5 | ||
| .container | ||
| = render partial: 'shared/donation_platforms' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| .py-4.py-lg-5.bg-primary | ||
| .container | ||
| .row.align-items-center | ||
| .col-12.col-md-6 | ||
| %h1.display-2.text-white.lh-1.mb-4 | ||
| Fundraise | ||
| %br | ||
| for codebar | ||
| %p.text-white.lead.mb-4 | ||
| Join our team at a physical challenge event and help keep our workshops running. | ||
| .col-12.col-md-6 | ||
| = image_tag 'how-to-support-us/hackney-half.jpeg', alt: t('pages.how_to_support_us.fundraise.image_alt'), class: 'mw-100 rounded' | ||
|
|
||
| .py-4.py-lg-5 | ||
| .container | ||
| .row.mb-5 | ||
| .col-12.col-lg-8 | ||
| %p.lead | ||
| = t('pages.how_to_support_us.fundraise.description_html', email: 'hello@codebar.io') | ||
| .row | ||
| .col-12.col-lg-4 | ||
| .ratio.shadow{style: '--bs-aspect-ratio: 150%;'} | ||
| %iframe{title: 'Royal Parks Half Marathon', src: '//runforcharity.com/codebar/royal-parks-half-marathon/registration'} | ||
| .col-12.col-lg-4 | ||
| .ratio.shadow{style: '--bs-aspect-ratio: 150%;'} | ||
| %iframe{title: 'Brighton Marathon April 2026', src: '//runforcharity.com/codebar/the-brighton-marathon/1744707816740.9279'} | ||
| .col-12.col-lg-4 | ||
| .ratio.shadow{style: '--bs-aspect-ratio: 150%;'} | ||
| %iframe{title: 'Hackney Half May 2026', src: '//runforcharity.com/codebar/hackney-half/1747652084027971'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| .py-4.py-lg-5.bg-primary | ||
| .container | ||
| .row.align-items-center | ||
| .col-12.col-md-6 | ||
| %h1.display-2.text-white.lh-1.mb-4 | ||
| Volunteer | ||
| %br | ||
| with us | ||
| %p.text-white.lead.mb-4 | ||
| Use your skills to help people from groups underrepresented in tech break into the industry. | ||
| %ul.list-inline | ||
| %li.list-inline-item | ||
| = link_to t('pages.how_to_support_us.volunteer.become_a_coach.title'), '#become-a-coach', class: 'btn btn-light' | ||
| %li.list-inline-item | ||
| = link_to t('pages.how_to_support_us.volunteer.become_an_organiser.title'), '#become-an-organiser', class: 'btn btn-light' | ||
| .col-12.col-md-6 | ||
| = image_tag 'how-to-support-us/become-a-coach.jpg', alt: '', class: 'mw-100 rounded' | ||
|
|
||
| .py-4.py-lg-5#become-a-coach | ||
| .container | ||
| .row.mb-5 | ||
| .col | ||
| %h2.h1.text-center= t('pages.how_to_support_us.volunteer.become_a_coach.title') | ||
| .row.justify-content-center | ||
| .col-12.col-lg-9 | ||
| %p.lead.text-center.mb-5 | ||
| = t('pages.how_to_support_us.volunteer.become_a_coach.description') | ||
| .text-center | ||
| = link_to registration_path(member_type: 'coach'), class: 'btn btn-primary btn-lg text-decoration-none' do | ||
| = t('members.sign_up_as_coach') | ||
| %i.fab.fa-github | ||
|
|
||
| .py-4.py-lg-5.bg-light#become-an-organiser | ||
| .container | ||
| .row.mb-5 | ||
| .col | ||
| %h2.h1.text-center= t('pages.how_to_support_us.volunteer.become_an_organiser.title') | ||
| .row.justify-content-center | ||
| .col-12.col-lg-9 | ||
| %p.lead.text-center.mb-5 | ||
| = t('pages.how_to_support_us.volunteer.become_an_organiser.description') | ||
| .text-center | ||
| = mail_to 'hello@codebar.io', t('pages.how_to_support_us.volunteer.become_an_organiser.link'), subject: "I'd like to become a codebar organiser for [city] chapter", class: 'btn btn-primary btn-lg text-decoration-none' | ||
|
|
||
| .py-4.py-lg-5#other-skills | ||
| .container | ||
| .row.mb-5 | ||
| .col | ||
| %h2.h1.text-center= t('pages.how_to_support_us.volunteer.volunteer.title') | ||
| .row.justify-content-center | ||
| .col-12.col-lg-9 | ||
| %p.lead.text-center.mb-5 | ||
| = t('pages.how_to_support_us.volunteer.volunteer.description') | ||
| .text-center | ||
| = mail_to 'hello@codebar.io', t('pages.how_to_support_us.volunteer.volunteer.link'), subject: "I'd like to volunteer with codebar", class: 'btn btn-primary btn-lg text-decoration-none' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we're moving away from i18n?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that was an oversight :)