From e2361fba6d0ee5d97d4c9347473bc96d0c1fe826 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 26 Jan 2026 12:29:14 +0100 Subject: [PATCH 1/2] ENG-8726: Remove pricing slider --- pcweb/pages/pricing/calculator.py | 15 +++++++++++++-- pcweb/pages/pricing/pricing.py | 3 +-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/pcweb/pages/pricing/calculator.py b/pcweb/pages/pricing/calculator.py index e89f104be..3d4140345 100644 --- a/pcweb/pages/pricing/calculator.py +++ b/pcweb/pages/pricing/calculator.py @@ -2,7 +2,7 @@ import reflex_ui as ui from reflex.experimental.client_state import ClientStateVar -collapsed_calculator_cs = ClientStateVar.create("collapsed_calculator", default=True) +collapsed_calculator_cs = ClientStateVar.create("collapsed_calculator", default=False) CREDITS_PER_HOUR_CPU = 0.2 CREDITS_PER_HOUR_GB = 0.5 @@ -207,6 +207,17 @@ def compute_table_base() -> rx.Component: def calculator_section() -> rx.Component: return rx.el.section( + rx.el.div( + rx.el.h1( + "Hosting Calculator", + class_name="text-slate-12 lg:text-3xl text-2xl font-semibold text-center", + ), + rx.el.h2( + "Only pay for what you use, nothing more.", + class_name="text-slate-9 text-2xl font-semibold text-center", + ), + class_name="flex flex-col gap-1 justify-center border-b border-slate-4 w-full mx-auto px-6 pb-[4.5rem]", + ), compute_table(), rx.el.div( rx.cond( @@ -238,5 +249,5 @@ def calculator_section() -> rx.Component: ), class_name="w-full p-2 relative", ), - class_name="flex flex-col w-full max-w-[64.19rem] 2xl:border-x border-slate-4 2xl:border-b pb-[6rem] justify-center items-center", + class_name="flex flex-col w-full max-w-[64.19rem] 2xl:border-x border-slate-4 2xl:border-b pb-[6rem] pt-[4.5rem] justify-center items-center", ) diff --git a/pcweb/pages/pricing/pricing.py b/pcweb/pages/pricing/pricing.py index 351935696..237dd6f5e 100644 --- a/pcweb/pages/pricing/pricing.py +++ b/pcweb/pages/pricing/pricing.py @@ -6,7 +6,7 @@ from pcweb.pages.pricing.calculator import calculator_section from pcweb.pages.pricing.faq import faq from pcweb.pages.pricing.plan_cards import plan_cards -from pcweb.pages.pricing.slider_calculator import MachineState, slider_calculator +from pcweb.pages.pricing.slider_calculator import MachineState from pcweb.pages.pricing.table import tiers_tables pricing_path = "/pricing" @@ -29,7 +29,6 @@ def pricing() -> rx.Component: rx.box( plan_cards(), tiers_tables(), - slider_calculator(), calculator_section(), faq(), class_name="flex flex-col relative justify-center items-center w-full", From 71eab6268a41ac7ab4cd0253ba79dd21af09ee76 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 26 Jan 2026 12:31:07 +0100 Subject: [PATCH 2/2] remove event --- pcweb/pages/pricing/pricing.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pcweb/pages/pricing/pricing.py b/pcweb/pages/pricing/pricing.py index 237dd6f5e..cbb55c5ce 100644 --- a/pcweb/pages/pricing/pricing.py +++ b/pcweb/pages/pricing/pricing.py @@ -6,7 +6,6 @@ from pcweb.pages.pricing.calculator import calculator_section from pcweb.pages.pricing.faq import faq from pcweb.pages.pricing.plan_cards import plan_cards -from pcweb.pages.pricing.slider_calculator import MachineState from pcweb.pages.pricing.table import tiers_tables pricing_path = "/pricing" @@ -16,7 +15,6 @@ route=pricing_path, title="Reflex ยท Pricing", meta=hosting_meta_tags, - on_load=MachineState.reset_machines, ) def pricing() -> rx.Component: """Get the Pricing landing page."""