Skip to content

Commit c71a7a9

Browse files
committed
updates
1 parent 72644d5 commit c71a7a9

File tree

10 files changed

+200
-153
lines changed

10 files changed

+200
-153
lines changed

assets/tailwind-theme.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,16 @@
896896

897897
@layer base {
898898

899+
button,
900+
[role='button'] {
901+
cursor: pointer;
902+
}
903+
904+
button:disabled,
905+
[role='button']:disabled {
906+
cursor: default;
907+
}
908+
899909
body {
900910
@apply isolate bg-slate-1 font-sans antialiased;
901911
}

pcweb/components/docpage/navbar/typesense.py

Lines changed: 148 additions & 128 deletions
Large diffs are not rendered by default.

pcweb/components/icons/patterns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def hosting_patterns() -> rx.Component:
7979
rx.image(
8080
src="/hosting/light/hosting_patterns.svg",
8181
alt="Reflex Hosting Patterns",
82-
class_name="dark:hidden desktop-only absolute top-0 z-[-1] w-[1028px] h-[478px] pointer-events-none shrink-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
82+
class_name="dark:hidden lg:flex hidden absolute top-0 z-[-1] w-[1028px] h-[478px] pointer-events-none shrink-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
8383
+ rx.cond(
8484
HostingBannerState.show_banner,
8585
" lg:mt-[24rem] mt-[3.5rem]",
@@ -89,7 +89,7 @@ def hosting_patterns() -> rx.Component:
8989
rx.image(
9090
src="/hosting/dark/hosting_patterns.svg",
9191
alt="Reflex Hosting Patterns",
92-
class_name="dark:flex hidden lg:flex absolute top-0 z-[-1] w-[1028px] h-[478px] pointer-events-none shrink-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
92+
class_name="hidden dark:flex lg:dark:flex absolute top-0 z-[-1] w-[1028px] h-[478px] pointer-events-none shrink-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2"
9393
+ rx.cond(
9494
HostingBannerState.show_banner,
9595
" lg:mt-[24rem] mt-[3.5rem]",

pcweb/components/new_button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_variant_bg_cn(variant: str) -> str:
2222
str: The background color class name.
2323
2424
"""
25-
return f"enabled:bg-gradient-to-b from-[--{variant}-9] to-[--{variant}-10] dark:to-[--{variant}-9] hover:to-[--{variant}-9] dark:hover:to-[--{variant}-10] disabled:hover:bg-[--{variant}-9]"
25+
return f"enabled:bg-gradient-to-b from-(--{variant}-9) to-(--{variant}-10) dark:to-(--{variant}-9) hover:to-(--{variant}-9) dark:hover:to-(--{variant}-10) disabled:hover:bg-(--{variant}-9)"
2626

2727

2828
BUTTON_STYLES: Dict[str, Dict[str, Dict[str, str]]] = {

pcweb/pages/framework/views/backend_features.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def backend_grid() -> rx.Component:
158158
title="It's just Python",
159159
description="Define and manage state with Python classes and functions",
160160
icon="python",
161+
class_name="lg:!border-l !border-slate-3",
161162
),
162163
backend_card(
163164
title="PyPI",
@@ -168,11 +169,13 @@ def backend_grid() -> rx.Component:
168169
title="Database management",
169170
description="Use our built-in database or connect your own with a single line",
170171
icon="backend_db",
172+
class_name="lg:!border-l lg:!border-b-0 !border-slate-3",
171173
),
172174
backend_card(
173175
title="Auth",
174176
description="Secure your app with any auth provider - no vendor lock-in",
175177
icon="backend_auth",
178+
class_name="lg:!border-b-0",
176179
),
177180
backend_card(
178181
title="Check out the docs",

pcweb/pages/framework/views/footer_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def newsletter() -> rx.Component:
143143
class_name="font-small text-slate-9",
144144
),
145145
newletter_input(),
146-
class_name="flex flex-col items-center lg:items-start gap-4 self-stretch p-10",
146+
class_name="flex flex-col items-center lg:items-start gap-4 self-stretch p-10 lg:border-r border-slate-3",
147147
),
148148
)
149149

@@ -195,7 +195,7 @@ def footer_index() -> rx.Component:
195195
class_name="font-small text-slate-9",
196196
),
197197
menu_socials(),
198-
class_name="flex flex-col items-center lg:items-start gap-4 self-stretch p-10",
198+
class_name="flex flex-col items-center lg:items-start gap-4 self-stretch p-10 lg:border-l border-slate-3",
199199
),
200200
newsletter(),
201201
class_name="grid grid-cols-1 lg:grid-cols-3 gap-0 grid-rows-2 w-full divide-y divide-slate-3 lg:divide-x border-t border-slate-3 lg:border-t-0",

pcweb/pages/framework/views/os_newsletter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def os_card() -> rx.Component:
2929
href=GITHUB_URL,
3030
class_name="relative w-full lg:w-auto",
3131
),
32-
class_name="flex flex-col gap-8 w-full p-10 pb-12 lg:!border-l !border-slate-3 lg:!border-t items-center lg:items-start text-center lg:text-start",
32+
class_name="lg:!border-b-0 flex flex-col gap-8 w-full p-10 pb-12 lg:!border-l !border-slate-3 items-center lg:items-start text-center lg:text-start",
3333
)
3434

3535

pcweb/pages/framework/views/stats.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@ def stats_grid() -> rx.Component:
2626
icon="star",
2727
class_name="lg:!border-l !border-slate-3",
2828
),
29-
stat_card(stat=f"{CONTRIBUTORS:,}+", text="Contributors", icon="fork"),
29+
stat_card(
30+
stat=f"{CONTRIBUTORS:,}+",
31+
text="Contributors",
32+
icon="fork",
33+
class_name="lg:!border-l !border-slate-3",
34+
),
3035
stat_card(
3136
stat=f"{DISCORD_USERS:,}+",
3237
text="Discord",
3338
icon="discord_navbar",
3439
class_name="lg:!border-r !border-slate-3",
3540
),
36-
class_name="grid grid-cols-1 lg:grid-cols-3 gap-0 grid-rows-1 w-full divide-slate-3 lg:divide-x !border-t-0 divide-y lg:divide-y-0",
41+
class_name="grid grid-cols-1 lg:grid-cols-3 gap-0 grid-rows-1 w-full divide-slate-3 lg:divide-x !border-t-0 divide-y lg:divide-y-0 lg:border-b border-slate-3",
3742
)
3843

3944

pcweb/pages/pricing/header.py

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
from pcweb.components.new_button import button
1212
from pcweb.constants import CAL_REQUEST_DEMO_URL
1313
from pcweb.pages.framework.views.companies import pricing_page_companies
14-
from pcweb.telemetry.postog_metrics import DemoEvent, send_data_to_posthog, send_data_to_slack
14+
from pcweb.telemetry.postog_metrics import (
15+
DemoEvent,
16+
send_data_to_posthog,
17+
send_data_to_slack,
18+
)
1519

1620
ThankYouDialogState = ClientStateVar.create("thank_you_dialog_state", False)
1721

@@ -134,7 +138,7 @@ def submit(self, form_data: dict[str, Any]):
134138
linkedin_url = form_data.get("linkedin_url", "").strip()
135139
if linkedin_url:
136140
# Basic LinkedIn URL validation
137-
linkedin_pattern = r'^https?://(www\.)?linkedin\.com/(in|company)/.+$'
141+
linkedin_pattern = r"^https?://(www\.)?linkedin\.com/(in|company)/.+$"
138142

139143
if not re.match(linkedin_pattern, linkedin_url):
140144
self.banned_linkedin = True
@@ -191,8 +195,10 @@ def submit(self, form_data: dict[str, Any]):
191195
# Send to PostHog for all submissions
192196
yield QuoteFormState.send_demo_event(form_data)
193197

194-
yield rx.call_script(f"try {{ ko.identify('{email}'); }} catch(e) {{ console.warn('Koala identify failed:', e); }}")
195-
198+
yield rx.call_script(
199+
f"try {{ ko.identify('{email}'); }} catch(e) {{ console.warn('Koala identify failed:', e); }}"
200+
)
201+
196202
if self.is_small_company():
197203
yield ThankYouDialogState.push(True)
198204
yield rx.redirect("/pricing?lead=1")
@@ -209,7 +215,6 @@ def submit(self, form_data: dict[str, Any]):
209215

210216
return rx.redirect(cal_url)
211217

212-
213218
@rx.event(background=True)
214219
async def send_demo_event(self, form_data: dict[str, Any]):
215220
first_name = form_data.get("first_name", "")
@@ -227,10 +232,10 @@ async def send_demo_event(self, form_data: dict[str, Any]):
227232
referral_source=self.referral_source,
228233
phone_number=form_data.get("phone_number", ""),
229234
)
230-
235+
231236
# Send to PostHog (existing)
232237
await send_data_to_posthog(demo_event)
233-
238+
234239
# Send to Slack (new)
235240
try:
236241
await send_data_to_slack(demo_event)
@@ -347,8 +352,7 @@ def thank_you_modal() -> rx.Component:
347352
size="icon-sm",
348353
type="button",
349354
class_name="focus:outline-none",
350-
on_click=ThankYouDialogState.set_value(False)
351-
355+
on_click=ThankYouDialogState.set_value(False),
352356
),
353357
),
354358
class_name="flex flex-row items-center gap-2 justify-between w-full",
@@ -357,19 +361,16 @@ def thank_you_modal() -> rx.Component:
357361
"We've received your submission and our team will get back to you soon. We appreciate your interest in Reflex!",
358362
class_name="text-slate-9 font-medium text-sm",
359363
),
360-
class_name="flex flex-col w-full gap-y-4"
364+
class_name="flex flex-col w-full gap-y-4",
361365
),
362366
class_name="w-full",
363367
on_interact_outside=ThankYouDialogState.set_value(False),
364368
on_escape_key_down=ThankYouDialogState.set_value(False),
365-
366369
),
367-
open=ThankYouDialogState.value
370+
open=ThankYouDialogState.value,
368371
)
369372

370373

371-
372-
373374
def custom_quote_form() -> rx.Component:
374375
"""Custom quote form component with clean, maintainable structure."""
375376
return rx.box(
@@ -507,7 +508,15 @@ def custom_quote_form() -> rx.Component:
507508
select_field(
508509
"Number of employees",
509510
"num_employees",
510-
["1", "2-5", "6-10", "11-50", "51-100", "101-500", "500+"], # Updated options
511+
[
512+
"1",
513+
"2-5",
514+
"6-10",
515+
"11-50",
516+
"51-100",
517+
"101-500",
518+
"500+",
519+
], # Updated options
511520
"500+",
512521
required=True,
513522
state_var="num_employees",
@@ -541,7 +550,7 @@ def custom_quote_form() -> rx.Component:
541550
on_submit=QuoteFormState.submit,
542551
reset_on_submit=True,
543552
),
544-
class_name="relative bg-slate-1 p-6 sm:p-8 rounded-2xl border-2 border-[--violet-9] shadow-lg w-full max-w-md mx-auto lg:max-w-none lg:mx-0",
553+
class_name="relative bg-slate-1 p-6 sm:p-8 rounded-2xl border-2 border-violet-9 shadow-lg w-full max-w-md mx-auto lg:max-w-none lg:mx-0",
545554
),
546555
class_name="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-16 max-w-7xl mx-auto items-start",
547556
),

pcweb/whitelist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- Incorrect: WHITELISTED_PAGES = ["/docs/getting-started/introduction/"]
1111
"""
1212

13-
WHITELISTED_PAGES = ["/"]
13+
WHITELISTED_PAGES = []
1414

1515

1616
def _check_whitelisted_path(path: str):

0 commit comments

Comments
 (0)