Skip to content

Commit bc3a7bf

Browse files
remove intercom replace with an email button (#382)
* remove intercom replace with an email button * remove jwt --------- Co-authored-by: DrewProebstelCfa <dproebstel@codeforamerica.org>
1 parent 10c45ba commit bc3a7bf

16 files changed

Lines changed: 25 additions & 196 deletions

Gemfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ gem "devise"
1313
gem "mailgun-ruby"
1414
gem "aws-sdk-s3"
1515
gem "csv", "~> 3.3"
16-
gem "jwt"
1716
gem "rack-session", ">= 2.1.2"
1817
gem "addressable", ">= 2.9.0"
1918
# Use the Puma web server [https://github.com/puma/puma]
@@ -87,5 +86,3 @@ gem "sentry-rails"
8786
gem "pg-aws_rds_iam"
8887

8988
gem "openssl", ">= 3.3.1"
90-
91-
gem "intercom-rails", "~> 1.0"

Gemfile.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,6 @@ GEM
243243
actionpack (>= 6.0.0)
244244
activesupport (>= 6.0.0)
245245
railties (>= 6.0.0)
246-
intercom-rails (1.1.1)
247-
activesupport (> 4.0)
248-
jwt (>= 2.0)
249246
io-console (0.8.2)
250247
irb (1.18.0)
251248
pp (>= 0.6.0)
@@ -614,9 +611,7 @@ DEPENDENCIES
614611
http_accept_language
615612
i18n-tasks (~> 1.0)
616613
importmap-rails
617-
intercom-rails (~> 1.0)
618614
jbuilder
619-
jwt
620615
mailgun-ruby
621616
openssl (>= 3.3.1)
622617
pg

app/assets/stylesheets/_state-file.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@
838838
}
839839

840840
.us-state-- {
841-
.button--intercom {
841+
.button--contact-us {
842842
background: #fff;
843843
border: 2px solid $color-az-grey;
844844
color: $color-az-grey;
@@ -874,16 +874,12 @@ $state-colors: (
874874
background-color: $state-color;
875875
}
876876

877-
.button--intercom {
877+
.button--contact-us {
878878
background: #fff;
879879
border: 2px solid $state-color;
880880
// icon: state primary color
881881
color: $state-color;
882882
}
883-
884-
.icon-wrapper--intercom {
885-
padding-right: $s10;
886-
}
887883
}
888884

889885
.us-state--nj {

app/assets/stylesheets/application.scss

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ body {
5252
}
5353
}
5454

55-
.open-intercom {
56-
cursor: pointer;
57-
}
58-
5955
.link--delete {
6056
font-size: 1.6rem;
6157
color: inherit;
@@ -315,14 +311,14 @@ ol.with-bullets {
315311
}
316312
}
317313

318-
.intercom-button-container {
314+
.contact-us-button-container {
319315
position: fixed;
320316
bottom: 2rem;
321317
right: 2rem;
322318
z-index: 1000;
323319
}
324320

325-
.button--intercom {
321+
.button--contact-us {
326322
display: flex;
327323
align-items: center;
328324
max-width: 21rem;
@@ -331,7 +327,7 @@ ol.with-bullets {
331327
white-space: nowrap;
332328
}
333329

334-
.intercom-button-icon {
330+
.contact-us-button-icon {
335331
width: 1.6rem;
336332
height: 1.6rem;
337333
margin-right: 0.6rem;

app/services/intercom_jwt.rb

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/views/layouts/_intercom_jwt.html.erb

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/views/layouts/application.html.erb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
2222
<%= javascript_importmap_tags "application" %>
2323
<%= Sentry.get_trace_propagation_meta.html_safe %>
24-
25-
<%= render "layouts/intercom_jwt" %>
26-
<%= intercom_script_tag %>
2724
</head>
2825

2926
<body <% if content_for?(:body_class) %>class="<%= yield :body_class %>"<% end %>>
@@ -43,7 +40,7 @@
4340
</footer>
4441
</div>
4542
</div>
46-
<%= render "shared/intercom_email_button" %>
43+
<%= render "shared/contact_us_button" %>
4744
</div>
4845
</body>
4946
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<div class="contact-us-button-container">
2+
<%= link_to "mailto:#{I18n.t('general.contact_us_email')}",
3+
class: "button button--small button--green button--contact-us" do %>
4+
<%= image_tag("contact-us-chat.svg", "aria-hidden": "true", class: "contact-us-button-icon") %>
5+
<%= I18n.t("general.contact_us_message") %>
6+
<% end %>
7+
</div>

app/views/shared/_intercom_email_button.html.erb

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)