From d61997373f1c90aa9b62aaef49023fb6f5956d89 Mon Sep 17 00:00:00 2001 From: Davinder Singh Date: Mon, 7 Oct 2024 09:47:29 +0100 Subject: [PATCH] BS5 Migrations CMS - Adding the pattern card at the end of the blog page (#20739) * adding existing pattern card content and styling with commented code to avoid breaking the compiler * removing extra styling that is not needed * using variables * removing event segmentation and adding URLs * adding a translation for tthe ext * adding a translation for explore_all_plans * adding translation sign_up_for_free * adding the card on blog post page * adding card-body to match BS5 and removing extra padding from .cta-card * adding p and removing margin from .font-size-display-xs * removing cta-card-text class * removing margin-top from responsive-button-container and adding the usage of .p-no-text-nodes with p * removing gap and margin responsive-button-container * removing extra padding * adding font-size and line-height to match figma design * changing the breakpoint to lg * removing important keyword * making explore plans button as primary and hiding signup button when user is logged in * removing responsive-button-container * adding count variable in the translation * moving font-size-display-xs one level lower * adding span under p GitOrigin-RevId: a1a16d46a725b547bda6e452ff1c7bef05964690 --- .../web/frontend/stylesheets/bootstrap-5/pages/cms.scss | 8 ++++++++ services/web/locales/en.json | 3 +++ 2 files changed, 11 insertions(+) diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss index 4bff6b6ea4..62b3b309be 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/cms.scss @@ -471,6 +471,14 @@ } } +.card-pattern.cta-card { + .font-size-display-xs { + @include media-breakpoint-down(lg) { + font-size: var(--font-size-08); + } + } +} + .contact-form-error-container { padding-bottom: var(--spacing-08); } diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 76c964798d..fe85f93137 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -458,6 +458,7 @@ "disabling": "Disabling", "disconnected": "Disconnected", "discount_of": "Discount of __amount__", + "discover_why_people_worldwide_trust_overleaf": "Discover why __count__ million people worldwide trust Overleaf with their work.", "dismiss_error_popup": "Dismiss first error alert", "display_deleted_user": "Display deleted users", "do_not_have_acct_or_do_not_want_to_link": "If you don’t have an __appName__ account, or if you don’t want to link to your __institutionName__ account, please click __clickText__.", @@ -609,6 +610,7 @@ "expires_in_days": "Expires in __days__ days", "expires_on": "Expires: __date__", "expiry": "Expiry Date", + "explore_all_plans": "Explore all plans", "export_csv": "Export CSV", "export_project_to_github": "Export Project to GitHub", "failed_to_send_group_invite_to_email": "Failed to send Group invite to <0>__email__. Please try again later.", @@ -1872,6 +1874,7 @@ "showing_x_results": "Showing __x__ results", "showing_x_results_of_total": "Showing __x__ results of __total__", "sign_up": "Sign up", + "sign_up_for_free": "Sign up for free", "sign_up_for_free_account": "Sign up for a free account and receive regular updates", "simple_search_mode": "Simple search", "single_sign_on_sso": "Single Sign-On (SSO)",