File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 22import reflex_ui as ui
33from 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
77CREDITS_PER_HOUR_CPU = 0.2
88CREDITS_PER_HOUR_GB = 0.5
@@ -207,6 +207,17 @@ def compute_table_base() -> rx.Component:
207207
208208def 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 )
Original file line number Diff line number Diff line change 66from pcweb .pages .pricing .calculator import calculator_section
77from pcweb .pages .pricing .faq import faq
88from pcweb .pages .pricing .plan_cards import plan_cards
9- from pcweb .pages .pricing .slider_calculator import MachineState , slider_calculator
109from pcweb .pages .pricing .table import tiers_tables
1110
1211pricing_path = "/pricing"
1615 route = pricing_path ,
1716 title = "Reflex · Pricing" ,
1817 meta = hosting_meta_tags ,
19- on_load = MachineState .reset_machines ,
2018)
2119def 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" ,
You can’t perform that action at this time.
0 commit comments