From 6e36f97b1a4a723588f8ec8f6497b35c8bf8eed6 Mon Sep 17 00:00:00 2001 From: Abhigyan Ghosh <30973042+abhigyanghosh30@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:57:26 +0530 Subject: [PATCH] Wd 8751 update the pro subscribe page visuals (#13601) * design change --- .../components/Form/Feature/Feature.test.tsx | 4 +- .../react/components/Form/Feature/Feature.tsx | 478 +++++++++++------- .../subscribe/react/components/Form/Form.tsx | 7 +- .../ProductSummary/ProductSummary.tsx | 4 +- static/sass/_pattern_subscribe.scss | 4 +- static/sass/styles.scss | 42 ++ templates/advantage/subscribe/index.html | 2 +- 7 files changed, 342 insertions(+), 199 deletions(-) diff --git a/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.test.tsx b/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.test.tsx index eeb54082cf3..c31c9736d04 100644 --- a/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.test.tsx +++ b/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.test.tsx @@ -22,8 +22,8 @@ test("Feature section renders correctly", () => { ); - screen.getAllByText("Ubuntu Pro"); - screen.getAllByText("Ubuntu Pro (Infra-only)"); + screen.getAllByText("Pro - all repositories"); + screen.getAllByText("Infra - only limited subset"); }); test("Feature sections disables Infra + Apps if destkop is selected", () => { diff --git a/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.tsx b/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.tsx index 4b8ee020c73..f0950671bf1 100644 --- a/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.tsx +++ b/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.tsx @@ -25,206 +25,314 @@ const Feature = () => { const proDisabled = version === LTSVersions.trusty; return ( -
- - -
- - Security coverage for critical, high and selected medium CVEs for: - -
-
-

- Over 2,300 open source deb packages in Ubuntu Main repository for - 10 years, including: -

-
- Systemd - RabbitMQ - OpenSSL - Ruby - PHP - NGINX - MySQL -
-
-
-

- Over 23,000 open source deb packages in Ubuntu Universe repository - for 10 years, including: -

-
- Apache Tomcat - Agios - NodeJS - Puppet - Redis - Rust - Wordpress -
-
+ <> + + +

What security coverage do you need?

- +
- +

+ Not sure? Run pro security-status to find out which + packages and repositories you are currently using. +

+ +
+
+ +
+ +
+ + +

{feature === Features.pro ? "25,000" : "2,300"}

+ +

+ packages in Ubuntu Main{" "} + {feature === Features.pro ? "and Universe" : ""} +

+ + +
-
+ ); }; diff --git a/static/js/src/advantage/subscribe/react/components/Form/Form.tsx b/static/js/src/advantage/subscribe/react/components/Form/Form.tsx index c306cd5292e..10c74035ed9 100644 --- a/static/js/src/advantage/subscribe/react/components/Form/Form.tsx +++ b/static/js/src/advantage/subscribe/react/components/Form/Form.tsx @@ -76,12 +76,7 @@ const Form = () => {
- -

What security coverage do you need?

- - - - +

diff --git a/static/js/src/advantage/subscribe/react/components/ProductSummary/ProductSummary.tsx b/static/js/src/advantage/subscribe/react/components/ProductSummary/ProductSummary.tsx index 470c76b5f71..03aa6075dc4 100644 --- a/static/js/src/advantage/subscribe/react/components/ProductSummary/ProductSummary.tsx +++ b/static/js/src/advantage/subscribe/react/components/ProductSummary/ProductSummary.tsx @@ -37,7 +37,7 @@ const ProductSummary = () => { return ( <>
{
+