Parcourir la source

Merge pull request #2744 from overleaf/pr-add-visa-notice-tos

Add ToS link for new Visa free trial rules in the subscription form.

GitOrigin-RevId: 607f1057cee40b61b7910cb2afc1648dacfe49b6
Eric Mc Sween il y a 6 ans
Parent
commit
5c6ddfd53a

+ 10 - 0
services/web/app/views/subscriptions/new.pug

@@ -214,6 +214,16 @@ block content
 														| {{ monthlyBilling ? '#{translate("upgrade_cc_btn")}' : '#{translate("upgrade_now")}'}}
 													span(ng-if="paymentMethod.value !== 'credit_card'") #{translate("upgrade_paypal_btn")}
 
+											p.tos-agreement-notice
+												| By subscribing, you agree to our
+												|
+												a(
+													href="/legal#Terms"
+													target="_blank"
+													rel="noopener noreferrer"
+												) terms of service
+												| .
+
 					div.three-d-secure-container.card.card-highlighted.card-border(ng-show="threeDSecureFlow")
 						.alert.alert-info.small(aria-live="assertive")
 							strong #{translate('card_must_be_authenticated_by_3dsecure')}

+ 15 - 0
services/web/frontend/stylesheets/app/base.less

@@ -128,3 +128,18 @@
 .grecaptcha-badge {
   display: none;
 }
+
+.tos-agreement-notice {
+  text-align: center;
+  margin-top: (@line-height-computed / 4);
+  margin-bottom: 0;
+  font-size: @font-size-small;
+  &.tos-agreement-notice-homepage {
+    margin-top: (@line-height-computed / 2);
+    color: #fff;
+    & > a {
+      color: #fff;
+      text-decoration: underline;
+    }
+  }
+}