Просмотр исходного кода

Add new university info card in the new plans page (#8676)

GitOrigin-RevId: 7d9ec211930afc2536df36665d6cfc6f2cd7b46b
M Fahru 4 лет назад
Родитель
Сommit
6c7fd1dad0

+ 2 - 0
services/web/app/views/subscriptions/plans-marketing-v2.pug

@@ -35,6 +35,8 @@ block content
 							i.fa.fa-cc-paypal.fa-2x(aria-hidden="true")  
 							span.sr-only Paypal accepted
 
+					include ./plans-marketing/v2/_university_info
+
 					include ./plans-marketing/_quotes
 
 					include ./plans-marketing/v2/_faq

+ 7 - 0
services/web/app/views/subscriptions/plans-marketing/v2/_university_info.pug

@@ -0,0 +1,7 @@
+.row.row-spaced-large.text-centered
+	.col-sm-8.col-sm-offset-2.col-xs-12.card.plans-v2-university-info
+		h3 #{translate('would_you_like_to_see_a_university_subscription')}
+		.row-spaced
+		p #{translate('student_and_faculty_support')}
+		p #{translate('let_us_know_which_university_you_are_from')}
+		button.btn.plans-v2-btn-header.text-capitalize #{translate('show_your_support')}

+ 18 - 0
services/web/frontend/stylesheets/app/plans-v2.less

@@ -1195,3 +1195,21 @@ p.plans-v2-table-discount-highlighted-text {
     }
   }
 }
+
+.plans-v2-university-info {
+  padding: @padding-lg @padding-xxl;
+  background-color: @ol-blue-gray-1;
+  border-radius: 20px;
+
+  p {
+    margin: 0;
+  }
+
+  button {
+    margin-top: @margin-md;
+  }
+
+  @media (max-width: @screen-xs-max) {
+    padding: @padding-lg;
+  }
+}

+ 1 - 0
services/web/frontend/stylesheets/core/variables.less

@@ -143,6 +143,7 @@
 @padding-md: 20px;
 @padding-lg: 30px;
 @padding-xl: 40px;
+@padding-xxl: 50px;
 
 @line-height-large: 1.33;
 @line-height-small: 1.5;

+ 5 - 1
services/web/locales/en.json

@@ -1789,5 +1789,9 @@
   "commons_plan_tooltip": "You’re on the __plan__ plan because of your affiliation with __institution__. Click to find out how you could benefit from Overleaf premium features!",
   "trial_last_day": "This is the last day of your <b>Overleaf Premium</b> trial",
   "trial_remaining_days": "__days__ more days on your <b>Overleaf Premium</b> trial",
-  "get_most_subscription_by_checking_premium_features": "Get the most out of your __appName__ subscription by checking out the list of <0>__appName__’s premium features</0>."
+  "get_most_subscription_by_checking_premium_features": "Get the most out of your __appName__ subscription by checking out the list of <0>__appName__’s premium features</0>.",
+  "would_you_like_to_see_a_university_subscription": "Would you like to see a university-wide __appName__ subscription at your university?",
+  "student_and_faculty_support": "Student and faculty support make a difference!",
+  "let_us_know_which_university_you_are_from": "Let us know which university you are from and we will take care of the rest.",
+  "show_your_support": "Show your support"
 }