Skip to content

Commit 27c4754

Browse files
Alek99Alek Petuskey
andauthored
pricing update (#1192)
* pricing update * Address comments * Address comments --------- Co-authored-by: Alek Petuskey <[email protected]>
1 parent 4c1c3a9 commit 27c4754

File tree

6 files changed

+15
-87
lines changed

6 files changed

+15
-87
lines changed

pcweb/github.py

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,8 @@
11
"""Github stars count for the reflex repository."""
22

3-
import asyncio
4-
import httpx
5-
63
import reflex as rx
7-
import contextlib
8-
9-
GITHUB_API_URL = "https://api.github.com/repos/reflex-dev/reflex"
10-
11-
12-
def get_stars_on_build():
13-
"""Fetch the stars when app is built as default"""
14-
resp = httpx.get(GITHUB_API_URL)
15-
resp.raise_for_status()
16-
data = resp.json()
17-
return int(data.get("stargazers_count", 21000))
18-
19-
20-
REFLEX_STAR_COUNT = get_stars_on_build()
21-
224

23-
async def fetch_count():
24-
"""Fetch the stars count of the reflex repository."""
25-
try:
26-
while True:
27-
with contextlib.suppress(Exception):
28-
global REFLEX_STAR_COUNT
29-
data = httpx.get(GITHUB_API_URL).json()
30-
REFLEX_STAR_COUNT = int(data["stargazers_count"])
31-
await asyncio.sleep(3600)
32-
except asyncio.CancelledError:
33-
pass
5+
REFLEX_STAR_COUNT = 21500
346

357

368
class GithubStarState(rx.State):

pcweb/pages/pricing/faq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ def faq() -> rx.Component:
129129
class_name="max-w-[40rem] flex justify-center items-center flex-col mx-auto w-full gap-2",
130130
),
131131
sales_button(),
132-
class_name="flex flex-col gap-8 w-full max-w-[64.19rem] 2xl:border-x border-slate-4 2xl:border-b pb-[6rem]",
132+
class_name="flex flex-col gap-8 w-full max-w-[64.19rem] 2xl:border-x border-slate-4 2xl:border-b pb-[6rem] pt-16",
133133
)

pcweb/pages/pricing/header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
def header() -> rx.Component:
66
return rx.box(
77
rx.el.h1(
8-
"Find a plan that's right for you",
8+
"Pricing that scales with you",
99
class_name="gradient-heading font-semibold text-4xl xl:text-5xl text-center",
1010
),
1111
rx.el.h2(

pcweb/pages/pricing/pricing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def pricing() -> rx.Component:
2525
plan_cards(),
2626
comparison_table_hosting(),
2727
comparison_table_oss(),
28-
calculator_section(),
2928
faq(),
3029
class_name="flex flex-col relative justify-center items-center w-full",
3130
),

pcweb/pages/pricing/table.py

Lines changed: 12 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
display: grid !important;
2727
grid-template-columns: minmax(100px, 1fr) repeat(4, minmax(100px, 1fr)) !important;
2828
padding: 1rem 2.5rem;
29-
gap: 6rem !important;
29+
gap: 1rem !important;
3030
}
3131
.rt-ScrollAreaViewport {
3232
padding-top: 2rem;
@@ -35,10 +35,8 @@
3535

3636
FRAMEWORK_SECTION = [
3737
("Open Source Framework", True, True, True, True),
38-
("Templates", True, True, True, True),
3938
("One Click Auth", False, False, True, True),
4039
("Embed Reflex Apps", False, False, True, True),
41-
("Built-in Testing", False, False, True, True),
4240
]
4341

4442
REFLEX_BRANDING_SECTION = [
@@ -49,30 +47,17 @@
4947
("Number of Generations", "5/month", "100/month/seat", "250/month/seat", "Custom"),
5048
]
5149

52-
DATABASE_SECTION = [
53-
("Connect your own SQL DB", True, True, True, True),
54-
("Database Editor UI", False, False, True, True),
55-
("Database Migration Tool", False, False, True, True),
56-
]
57-
5850
HOSTING_TEXT_SECTION = [
59-
("Compute Limits", "1 CPU, .5GB", "5 CPU, 10GB", "Custom", "Custom"),
6051
("Regions", "Single", "Multiple", "Multiple", "Multiple"),
61-
("Build logs", "7 day", "30 days", "90 days", "Custom"),
62-
("Runtime logs", "1 day", "7 days", "30 days", "Custom"),
52+
("Logs", "1 day", "30 days", "90 days", "Custom"),
6353
]
6454

6555
HOSTING_BOOLEAN_SECTION = [
6656
("CLI Deployments", True, True, True, True),
57+
("Automatic CI / CD Deploy (Github)", True, True, True, True),
6758
("Custom Domains", False, True, True, True),
68-
("Automatic CI / CD Deploy (Github)", False, False, True, True),
69-
("Secrets", True, True, True, True),
70-
("Secret Manager", False, False, True, True),
71-
("App Analytics", False, False, True, True),
72-
("Traces", False, False, True, True),
73-
("Custom Alerts", False, False, True, True),
74-
("Rollbacks", False, False, True, True),
75-
("Large File Support", False, False, True, True),
59+
("Secret Manager", False, True, True, True),
60+
("App Analytics", False, True, True, True),
7661
("On Prem Hosting", False, False, False, True),
7762
]
7863

@@ -81,8 +66,6 @@
8166
("HTTP/SSL", True, True, True, True),
8267
("DDos Protection", True, True, True, True),
8368
("2 Factor Auth", True, True, True, True),
84-
("Rich Permissions Control", False, False, True, True),
85-
("Connect to Analytics Vendors", False, False, True, True),
8669
("Audit Logs", False, False, False, True),
8770
("SSO", False, False, False, True),
8871
]
@@ -92,10 +75,8 @@
9275
]
9376

9477
SUPPORT_BOOLEAN_SECTION = [
95-
("White Glove Onboarding", False, False, False, True),
9678
("Support SLAs Available", False, False, False, True),
97-
("Migrate Existing Apps", False, False, False, True),
98-
("Priority Support with Reflex Engineering Team", False, False, False, True),
79+
("Personalized Onboarding", False, False, False, True),
9980
("", "", "", "", ""),
10081
]
10182

@@ -164,7 +145,7 @@ def create_table_row_header(name: list, coming_soon: bool = False) -> rx.Compone
164145
rx.table.column_header_cell("Team", class_name=STYLES["header_cell_sub"]),
165146
rx.table.column_header_cell("Enterprise", class_name=STYLES["header_cell_sub"])
166147
],
167-
class_name="w-full [&>*:not(:first-child)]:text-center bg-slate-2 border border-slate-3 rounded-2xl z-[6] !h-[3.625rem] relative",
148+
class_name="w-full [&>*:not(:first-child)]:text-center bg-slate-2 border border-slate-3 rounded-2xl z-[6] !h-[3.625rem] relative align-content center",
168149
padding_x="5rem !important",
169150
)
170151

@@ -261,44 +242,23 @@ def table_body_hosting() -> rx.Component:
261242

262243
def table_body_oss() -> rx.Component:
263244
return rx.table.root(
264-
rx.el.style(TABLE_STYLE),
265245
rx.table.header(
266-
create_table_row_header("Framework"),
246+
create_table_row_header("AI", coming_soon=True),
267247
class_name="relative",
268248
),
269249
create_table_body(
270-
*[
271-
create_checkmark_row(feature, checks)
272-
for feature, *checks in FRAMEWORK_SECTION
273-
],
274-
*[create_table_row(row) for row in REFLEX_BRANDING_SECTION],
250+
*[create_table_row(row) for row in REFLEX_AI_SECTION],
275251
),
276252
rx.table.header(
277-
create_table_row_header("Database"),
253+
create_table_row_header("Framework"),
278254
class_name="relative",
279255
),
280256
create_table_body(
281257
*[
282258
create_checkmark_row(feature, checks)
283-
for feature, *checks in DATABASE_SECTION
259+
for feature, *checks in FRAMEWORK_SECTION
284260
],
285-
),
286-
rx.table.header(
287-
create_table_row_header("AI", coming_soon=True),
288-
class_name="relative",
289-
),
290-
create_table_body(
291-
*[create_table_row(row) for row in REFLEX_AI_SECTION],
292-
),
293-
create_table_body(
294-
rx.table.row(
295-
rx.table.cell(),
296-
*[
297-
rx.table.cell(create_action_button(text, variant, extra))
298-
for text, variant, extra in PLAN_BUTTONS
299-
],
300-
class_name="w-full [&>*:not(:first-child)]:text-center bg-slate-1 !py-[1.25rem] border-y border-slate-4 !h-[76px] relative",
301-
),
261+
*[create_table_row(row) for row in REFLEX_BRANDING_SECTION],
302262
),
303263
create_table_body(
304264
*[create_table_row(row) for row in ASTERIX_SECTION],

pcweb/pcweb.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import reflex as rx
77
from pcweb import styles
8-
from pcweb.github import fetch_count
98
from pcweb.pages import page404, routes
109
from pcweb.pages.docs import outblocks, exec_blocks
1110
from pcweb.whitelist import _check_whitelisted_path
@@ -144,5 +143,3 @@
144143
app.add_page(lambda: rx.fragment(), route=source, on_load=rx.redirect(target))
145144

146145
app.add_page(page404.component, route=page404.path)
147-
148-
app.register_lifespan_task(fetch_count)

0 commit comments

Comments
 (0)