Skip to content

Commit ef323f2

Browse files
authored
Merge cde4117 into 7723842
2 parents 7723842 + cde4117 commit ef323f2

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

app/views/dashboard/show.html.haml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,6 @@
7979
.row
8080
.medium-offset-1.medium-10.columns
8181
= render partial: 'members/testimonials'
82+
83+
%section.stripe.reverse
84+
= render partial: 'shared/newsletter'
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.row
2+
.medium-10.medium-offset-1.columns
3+
%h2= t('homepage.newsletter.title')
4+
%p= t('homepage.newsletter.description')
5+
6+
-# Mailchimp Signup Form
7+
#mc_embed_signup
8+
%form.validate#mc-embedded-subscribe-form{ action: "https://codebar.us8.list-manage.com/subscribe/post?u=b4652d85b385945c79f2ffa2e&id=3798974cb3",
9+
method: "post",
10+
name: "mc-embedded-subscribe-form",
11+
target: "_blank",
12+
novalidate: true }
13+
#mc_embed_signup_scroll
14+
#indicates-required
15+
%small.right
16+
%span.asterisk *
17+
indicates required
18+
19+
.mc-field-group
20+
%label{ for: "mce-EMAIL" }
21+
Email Address
22+
%span.asterisk *
23+
%input.required.email#mce-EMAIL{ type: 'email', value: '', name: 'EMAIL' }
24+
25+
.clear#mce-responses
26+
.response#mce-error-response{ style: 'display:none' }
27+
.response#mce-success-response{ style: 'display:none' }
28+
29+
-# real people should not fill this in and expect good things - do not remove this or risk form bot signups
30+
%div{ style: 'position: absolute; left: -5000px;', 'aria-hidden': 'true' }
31+
%input{ type: 'text', name: 'b_b4652d85b385945c79f2ffa2e_3798974cb3', tabindex: '-1', value: '' }
32+
.clear
33+
%input.button.small#mc-embedded-subscribe{ type: 'submit', value: 'Subscribe', name: 'subscribe' }
34+
35+
%a{ href: 'https://us8.campaign-archive.com/home/?u=b4652d85b385945c79f2ffa2e&id=3798974cb3' } View previous newsletters.

config/locales/en.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ en:
6868
workshop_email_subject: "Regarding hosting a workshop"
6969
chapters:
7070
title: "Chapters"
71+
newsletter:
72+
title: Subscribe to our newsletter
73+
description: Get regular updates about the codebar community. Be informed about upcoming events, jobs, scholarships and other learning opportunities.
7174
mailer:
7275
workshop_invitation:
7376
attending:

0 commit comments

Comments
 (0)