Skip to content

Commit d2af804

Browse files
authored
ENG-8726: Remove pricing slider (#1735)
* ENG-8726: Remove pricing slider * remove event
1 parent a1f0aaf commit d2af804

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

pcweb/pages/pricing/calculator.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import reflex_ui as ui
33
from reflex.experimental.client_state import ClientStateVar
44

5-
collapsed_calculator_cs = ClientStateVar.create("collapsed_calculator", default=True)
5+
collapsed_calculator_cs = ClientStateVar.create("collapsed_calculator", default=False)
66

77
CREDITS_PER_HOUR_CPU = 0.2
88
CREDITS_PER_HOUR_GB = 0.5
@@ -207,6 +207,17 @@ def compute_table_base() -> rx.Component:
207207

208208
def calculator_section() -> rx.Component:
209209
return rx.el.section(
210+
rx.el.div(
211+
rx.el.h1(
212+
"Hosting Calculator",
213+
class_name="text-slate-12 lg:text-3xl text-2xl font-semibold text-center",
214+
),
215+
rx.el.h2(
216+
"Only pay for what you use, nothing more.",
217+
class_name="text-slate-9 text-2xl font-semibold text-center",
218+
),
219+
class_name="flex flex-col gap-1 justify-center border-b border-slate-4 w-full mx-auto px-6 pb-[4.5rem]",
220+
),
210221
compute_table(),
211222
rx.el.div(
212223
rx.cond(
@@ -238,5 +249,5 @@ def calculator_section() -> rx.Component:
238249
),
239250
class_name="w-full p-2 relative",
240251
),
241-
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",
252+
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",
242253
)

pcweb/pages/pricing/pricing.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from pcweb.pages.pricing.calculator import calculator_section
77
from pcweb.pages.pricing.faq import faq
88
from pcweb.pages.pricing.plan_cards import plan_cards
9-
from pcweb.pages.pricing.slider_calculator import MachineState, slider_calculator
109
from pcweb.pages.pricing.table import tiers_tables
1110

1211
pricing_path = "/pricing"
@@ -16,7 +15,6 @@
1615
route=pricing_path,
1716
title="Reflex · Pricing",
1817
meta=hosting_meta_tags,
19-
on_load=MachineState.reset_machines,
2018
)
2119
def pricing() -> rx.Component:
2220
"""Get the Pricing landing page."""
@@ -29,7 +27,6 @@ def pricing() -> rx.Component:
2927
rx.box(
3028
plan_cards(),
3129
tiers_tables(),
32-
slider_calculator(),
3330
calculator_section(),
3431
faq(),
3532
class_name="flex flex-col relative justify-center items-center w-full",

0 commit comments

Comments
 (0)