From 2b15cb8e9b64f2fa59720090803d91df6f8a6b1a Mon Sep 17 00:00:00 2001 From: M Fahru Date: Thu, 7 Dec 2023 09:59:36 -0700 Subject: [PATCH] Merge pull request #16051 from overleaf/mf-website-redesign-home-checkbox Add newsletter checkbox to new homepage GitOrigin-RevId: 6e056194633a9bf2349d0ebcb599dee0d0d50870 --- .../app/src/Features/StaticPages/HomeController.js | 2 ++ services/web/frontend/stylesheets/app/homepage.less | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/services/web/app/src/Features/StaticPages/HomeController.js b/services/web/app/src/Features/StaticPages/HomeController.js index 8b97d3e291..2013785199 100644 --- a/services/web/app/src/Features/StaticPages/HomeController.js +++ b/services/web/app/src/Features/StaticPages/HomeController.js @@ -63,6 +63,8 @@ module.exports = HomeController = { if (websiteRedesignActive) { return res.render('external/home/website-redesign/index', { onboardingFlowVariant: onboardingFlowAssignment.variant, + hideNewsletterCheckbox: + onboardingFlowAssignment.variant === 'token-confirmation-odc', }) } else { return res.render('external/home/v2', { diff --git a/services/web/frontend/stylesheets/app/homepage.less b/services/web/frontend/stylesheets/app/homepage.less index d342aa8c41..0c5c9cc7c3 100644 --- a/services/web/frontend/stylesheets/app/homepage.less +++ b/services/web/frontend/stylesheets/app/homepage.less @@ -454,6 +454,8 @@ } .tos-agreement-notice { + font-size: 12px; + a { color: @green-60; text-decoration: underline; @@ -461,4 +463,14 @@ } } } + + .home-register-newsletter-checkbox { + font-size: 12px; + margin-top: 10px; + text-align: center; + + input[type='checkbox'] { + margin-top: 2px; + } + } }