-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CTA on profile when user has no devices
- Loading branch information
1 parent
e4b314c
commit beec8f8
Showing
7 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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,3 @@ | ||
<div class="bg-white w-100 border border-thick <%= "p-3 pb-5 p-md-3 pb-md-5" unless local_assigns[:no_padding] %>"> | ||
<%= yield %> | ||
</div> |
This file contains 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,3 @@ | ||
<div class="container mx-2 mx-md-auto w-auto w-md-100 mt-0 mt-md-2 md-md-5 g-0"> | ||
<%= yield %> | ||
</div> |
This file contains 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,8 @@ | ||
|
||
<h2><%= t :no_device_cta_heading %></h2> | ||
<p><%= t :no_device_cta_blurb %></p> | ||
<div class="mx-auto w-lg-75 w-100"> | ||
<%= image_tag "smartcitizen-2-2-kit.gif", class: "w-100" %> | ||
<a class="btn btn-primary mb-2 w-100" href="<%= t :no_device_kit_link_url %>"><%= t :no_device_kit_link_text %></a> | ||
<a class="btn btn-secondary w-100" href="<%= t :no_device_onboarding_link_url %>"><%= t :no_device_onboarding_link_text %></a> | ||
</div> |
This file contains 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 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 |
---|---|---|
|
@@ -33,3 +33,9 @@ en: | |
post_delete_user_blurb_html: "If you have deleted your account in error, please contact <a href='mailto:[email protected]'>Smart Citizen support<a> as soon as possible. After 24 hours, your account and all devices will be deleted permanently." | ||
post_delete_user_cta: "Return to the homepage" | ||
post_delete_user_cta_link: "https://smartcitizen.me" | ||
no_device_cta_heading: "You don't yet have any devices!" | ||
no_device_cta_blurb: "Order a SmartCitizen kit to start sensing, or connect one you already have." | ||
no_device_kit_link_url: "https://smartcitizen.me#get-your-kit" | ||
no_device_kit_link_text: "Get your kit" | ||
no_device_onboarding_link_url: "https://start.smartcitizen.me/wizard/landing?lang=eng" | ||
no_device_onboarding_link_text: "Connect an existing kit" |