diff --git a/.rubocop.yml b/.rubocop.yml
index 803c680c4..e1435ea22 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -289,6 +289,13 @@ Rails/FilePath:
Exclude:
- "spec/rails_helper.rb"
+# find_each is an ActiveRecord batch-loading API. In Capybara specs, `page.all`
+# returns a plain Array of elements, so this cop can only produce false positives.
+Rails/FindEach:
+ Enabled: true
+ Exclude:
+ - "spec/**/*"
+
RSpec/MultipleExpectations:
Max: 8
diff --git a/app/views/pages/fundraise.html.haml b/app/views/pages/fundraise.html.haml
index 75ed41951..fb4a8cb39 100644
--- a/app/views/pages/fundraise.html.haml
+++ b/app/views/pages/fundraise.html.haml
@@ -3,27 +3,70 @@
.row.align-items-center
.col-12.col-md-7
%h1.display-2.text-white.lh-1.mb-4
- Fundraise
- %br
- for codebar
- %p.text-white.lead.mb-4
- Take on a physical challenge with codebar and raise the vital funds needed to keep all of our workshops and events free and accessible.
- .col-12.col-md-5
+ = t('pages.how_to_support_us.fundraise.headline')
+ %p.text-white.lead
+ = t('pages.how_to_support_us.fundraise.tagline')
+ .col-12.col-md-4
= image_tag 'how-to-support-us/ilona-london-marathon.jpeg', alt: t('pages.how_to_support_us.fundraise.image_alt'), class: 'mw-100 rounded'
.py-4.py-lg-5
.container
+ :ruby
+ fundraising_events = [
+ {
+ name: 'Barcelona Marathon',
+ blurb: 'A stunning 26.2 miles, finishing on the beach with the sea as your backdrop. A brilliant first overseas challenge for #TeamCodebar.',
+ date: Date.new(2027, 3, 14)
+ },
+ {
+ name: 'HOKA Hackney Half',
+ blurb: "Our biggest team of the year, taking on the London's most electric half marathon. Bring friends, family and plenty of energy.",
+ date: Date.new(2027, 5, 16)
+ },
+ {
+ name: 'Southampton Running Festival 10k',
+ blurb: 'Beginning and ending in the Southampton Common. It’s the perfect route for a PB featuring woodland, grassland, ponds, wetlands, lakes and parkland in the centre of the city.',
+ date: Date.new(2027, 5, 30)
+ },
+ {
+ name: 'Great South Run 2027',
+ blurb: 'The flat, fast coastal ten miles in Portsmouth. Every place you take helps us keep our workshops free.',
+ date: Date.new(2027, 10, 17)
+ }
+ ]
+
.row.mb-5
.col-12.col-lg-9
%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: 'Great South Run', src: 'https://runforcharity.com/charity-registration/codebar/great-south-run/corporate-events'}
- .col-12.col-lg-4
- .ratio.shadow{style: '--bs-aspect-ratio: 150%;'}
- %iframe{title: 'London Landmarks Half Marathon 2027', src: 'https://runforcharity.com/charity-registration/codebar/london-landmarks-half-marathon-2026/codebar-london-landmarks-half-marathon-second-reg-1'}
- .col-12.col-lg-4
- .ratio.shadow{style: '--bs-aspect-ratio: 150%;'}
- %iframe{title: 'Hackney Half May 2027', src: 'https://runforcharity.com/charity-registration/codebar/hoka-hackney-half/corporate-events'}
+
+ .row{ 'data-test': 'fundraising-events' }
+ - fundraising_events.each do |fundraising_event|
+ .col-12.col-lg-4.mb-4
+ .card.mt-3.mt-lg-0.h-100
+ .card-body.d-flex.flex-column
+ %h4= fundraising_event[:name]
+ %p.card-text= fundraising_event[:blurb]
+ %p.card-text.text-muted.mb-3= l(fundraising_event[:date], format: :date)
+ .mt-auto
+ = link_to t('pages.how_to_support_us.fundraise.email_us'), 'mailto:hello@codebar.io', class: 'btn btn-primary'
+
+ .row.mt-5
+ .col-12
+ %h2= t('pages.how_to_support_us.fundraise.own_challenge.title')
+ %p.lead.mt-3.mb-0
+ = t('pages.how_to_support_us.fundraise.own_challenge.description_html')
+
+ .row.mt-5
+ .col-12
+ %h2= t('pages.how_to_support_us.fundraise.why_fundraise.title')
+ %p.lead.mt-3.mb-0
+ = t('pages.how_to_support_us.fundraise.why_fundraise.description_html')
+
+ .row.mt-5{ 'data-test': 'fundraising-impact' }
+ - t('pages.how_to_support_us.fundraise.impact').each do |impact_stat|
+ .col-12.col-lg-4.mb-4
+ .card.mt-3.mt-lg-0.h-100
+ .card-body.d-flex.flex-column
+ %h5= impact_stat[:heading]
+ %p.card-text.mb-0= impact_stat[:body]
diff --git a/config/locales/de.yml b/config/locales/de.yml
index c64f7fa7f..1e1c59819 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -591,8 +591,24 @@ de:
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 72dd30671..2353a4991 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -714,8 +714,24 @@ en:
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/config/locales/en_AU.yml b/config/locales/en_AU.yml
index d0b898137..01f1d61bf 100644
--- a/config/locales/en_AU.yml
+++ b/config/locales/en_AU.yml
@@ -548,8 +548,24 @@ en-AU:
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/config/locales/en_GB.yml b/config/locales/en_GB.yml
index 1f41ff66d..e58c5353d 100644
--- a/config/locales/en_GB.yml
+++ b/config/locales/en_GB.yml
@@ -548,8 +548,24 @@ en-GB:
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/config/locales/en_US.yml b/config/locales/en_US.yml
index c60ac0044..75a5c10ef 100644
--- a/config/locales/en_US.yml
+++ b/config/locales/en_US.yml
@@ -546,8 +546,24 @@ en-US:
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/config/locales/es.yml b/config/locales/es.yml
index 73714aefc..1af86e77e 100644
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -615,8 +615,24 @@ es:
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/config/locales/fi.yml b/config/locales/fi.yml
index 7a9f1ea5f..a537ea81a 100644
--- a/config/locales/fi.yml
+++ b/config/locales/fi.yml
@@ -549,8 +549,24 @@ fi:
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index f8bf7f72a..55f8a9a2b 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -549,8 +549,24 @@ fr:
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/config/locales/no.yml b/config/locales/no.yml
index 5f6566217..999a4d52c 100644
--- a/config/locales/no.yml
+++ b/config/locales/no.yml
@@ -549,8 +549,24 @@
link: Volunteer
fundraise:
title: Fundraise
- description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, sign up with our registration form for your desired event and raise vital funds to help keep our events running. If your event does not appear below, feel free to drop us an email and we would be happy to coordinate with you."
- image_alt: A Black British woman crosses the finish line at the Hackney Half Marathon in London in a shower of confetti while spectators cheer her on.
+ headline: Take on a challenge for codebar
+ tagline: "Run it. Ride it. Swim it. Walk it. Climb it. Whatever your challenge, you can turn it into support for a more inclusive tech industry."
+ description_html: "Join the codebar team with a physical challenge event. Whether you are a runner, swimmer, or cyclist, drop us an email for your desired event and raise vital funds to help keep our workshops running. If your event does not appear below, please drop us an email and we would be happy to coordinate with you."
+ image_alt: Ilona holding her London Marathon medal after running
+ email_us: Email us
+ own_challenge:
+ title: "Got your own challenge?"
+ description_html: 'Running, cycling, swimming or climbing something of your own? We would love to support you, so get in touch and we will help you set up your fundraising page.'
+ why_fundraise:
+ title: 'Why fundraise for codebar?'
+ description_html: 'All of our workshops and events are completely free for everyone who attends. Fundraising with us means more people from underrepresented groups get a safe, practical way into tech, wherever they happen to be.'
+ impact:
+ - heading: "85% of codebar community members say the skills they've learnt have helped them find a job in tech."
+ body: Your fundraising creates real pathways into tech.
+ - heading: 73% of codebar students did not work in tech before they found us.
+ body: "When you fundraise for codebar, you're not just crossing a finish line - you're helping someone else cross theirs."
+ - heading: Over 27,500 people across 36 global locations are now part of the codebar community.
+ body: Every pound you raise helps us reach more people in more places, and keeps our doors open for people who might never have had another route into tech.
codebar_stories_podcast:
image_alt: codebar stories banner
opening: codebar Stories is a new podcast brought to you by codebar, we'll be smashing down the belief that tech isn't for you by sharing real-life stories from members of our community who have transitioned into a new career in tech.
diff --git a/spec/features/viewing_pages_spec.rb b/spec/features/viewing_pages_spec.rb
index 170de32bc..6f365a6b1 100644
--- a/spec/features/viewing_pages_spec.rb
+++ b/spec/features/viewing_pages_spec.rb
@@ -52,4 +52,80 @@
expect(page).to have_text('Page not found')
end
+
+ scenario 'can access and view the fundraise page' do
+ visit fundraise_path
+
+ expect(page).to have_css('h1', text: 'Take on a challenge for codebar')
+ expect(page).to have_text('Barcelona Marathon')
+ expect(page).to have_text('HOKA Hackney Half')
+ expect(page).to have_text('Southampton Running Festival 10k')
+ expect(page).to have_text('Great South Run 2027')
+ expect(page).to have_no_css('iframe')
+ end
+
+ scenario 'every event card has a title, description and date' do
+ visit fundraise_path
+
+ within "[data-test='fundraising-events']" do
+ expect(page).to have_css('.card').at_least(1)
+ page.all('.card').each do |card|
+ within card do
+ expect(page).to have_css('h4', text: /\S/)
+ expect(page).to have_css('p.card-text', text: /\S/)
+ expect(page).to have_css('p.card-text.text-muted', text: /\d{2} \w{3} \d{4}/)
+ end
+ end
+ end
+ end
+
+ scenario 'every event card can be enquired about by email' do
+ visit fundraise_path
+
+ within "[data-test='fundraising-events']" do
+ expect(page).to have_css('.card').at_least(1)
+ page.all('.card').each do |card|
+ within card do
+ expect(page).to have_link('Email us', href: 'mailto:hello@codebar.io')
+ end
+ end
+ end
+ end
+
+ scenario 'visitors are invited to suggest their own challenge' do
+ visit fundraise_path
+
+ expect(page).to have_css('h2', text: 'Got your own challenge?')
+ end
+
+ scenario 'visitors are told why fundraising for codebar matters' do
+ visit fundraise_path
+
+ expect(page).to have_css('h2', text: 'Why fundraise for codebar?')
+ expect(page).to have_text('All of our workshops and events are completely free for everyone who attends.')
+ end
+
+ scenario 'the impact of fundraising is shown in a row of three cards' do
+ visit fundraise_path
+
+ within "[data-test='fundraising-impact']" do
+ expect(page).to have_css('.card').exactly(3).times
+ page.all('.card').each do |card|
+ within card do
+ expect(page).to have_css('h5', text: /\S/)
+ expect(page).to have_css('p.card-text', text: /\S/)
+ end
+ end
+ end
+ end
+
+ scenario 'the impact cards quote the codebar community statistics' do
+ visit fundraise_path
+
+ within "[data-test='fundraising-impact']" do
+ expect(page).to have_text('85% of codebar community members')
+ expect(page).to have_text('73% of codebar students')
+ expect(page).to have_text('Over 27,500 people across 36 global locations')
+ end
+ end
end