Skip to content

Commit 6e575e5

Browse files
authored
sign in button (#1451)
1 parent 46087d4 commit 6e575e5

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

pcweb/components/docpage/navbar/navbar.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pcweb.components.button import button
66
from pcweb.components.docpage.navbar.navmenu.navmenu import nav_menu
77
from pcweb.components.hosting_banner import hosting_banner
8-
from pcweb.constants import REFLEX_BUILD_URL
8+
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
99
from pcweb.pages.blog import blogs
1010
from pcweb.pages.blog.paths import blog_data
1111
from pcweb.pages.docs import ai_builder, getting_started
@@ -506,6 +506,19 @@ def new_component_section() -> rx.Component:
506506
nav_menu.item(search_bar()),
507507
nav_menu.item(github()),
508508
nav_menu.item(discord(), class_name="desktop-only"),
509+
nav_menu.item(
510+
rx.link(
511+
button(
512+
"Sign In",
513+
variant="secondary",
514+
class_name="!h-8 !font-small-smbold !rounded-[0.625rem] whitespace-nowrap",
515+
),
516+
underline="none",
517+
is_external=True,
518+
href=f"{REFLEX_CLOUD_URL}/?redirect_url={REFLEX_BUILD_URL}",
519+
),
520+
class_name="desktop-only",
521+
),
509522
nav_menu.item(
510523
rx.link(
511524
button(

pcweb/components/hosting_banner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def hosting_banner() -> rx.Component:
4848
),
4949
# Standalone CTA button: hidden on small, inline on md+
5050
rx.el.button(
51-
"Get Early Access",
51+
"Get Access",
5252
class_name=(
5353
"hidden md:inline-block "
5454
"text-green-11 h-[1.65rem] rounded-md bg-green-4 "

pcweb/pages/landing/views/hero.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def hero() -> rx.Component:
9797
rx.box(
9898
rx.link(
9999
button(
100-
"Get Early Access",
100+
"Get Access",
101101
size="xl",
102102
class_name="w-fit flex flex-row-reverse",
103103
icon=rx.icon("chevron-right", size=16),

pcweb/pages/landing/views/video_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def video_demo() -> rx.Component:
2525
class_name="flex flex-col gap-1.5",
2626
),
2727
rx.link(
28-
button("Get Early Access", size="lg", class_name="w-fit"),
28+
button("Get Access", size="lg", class_name="w-fit"),
2929
href="/pricing",
3030
),
3131
class_name="flex flex-col gap-4 max-lg:items-center max-lg:justify-center max-lg:text-center",

pcweb/pages/pricing/header.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,6 @@ def custom_quote_form() -> rx.Component:
429429
class_name="w-full space-y-6",
430430
on_submit=QuoteFormState.submit,
431431
),
432-
rx.box(
433-
"1 Month Free Trial",
434-
class_name="absolute top-[-0.75rem] left-8 rounded-md bg-[--violet-9] h-[1.5rem] text-sm font-medium text-center px-2 flex items-center justify-center text-[#FCFCFD] z-[10]",
435-
),
436432
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",
437433
),
438434
class_name="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-16 max-w-7xl mx-auto items-start",

pcweb/pages/pricing/plan_cards.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,6 @@ def popular_card(
301301
) -> rx.Component:
302302
"""Popular pricing card component with special styling and effects."""
303303
return rx.box(
304-
# Popular Badge
305-
rx.box(
306-
"1 Month Free Trial",
307-
class_name="absolute top-[-0.75rem] left-8 rounded-md bg-[--violet-9] h-[1.5rem] text-sm font-medium text-center px-2 flex items-center justify-center text-[#FCFCFD] z-[10]",
308-
),
309304
# Card Content with Background Effects
310305
rx.box(
311306
glow(),

0 commit comments

Comments
 (0)