Skip to content

Commit 777a831

Browse files
LineIndentAlek99
andauthored
ENG-6287: bring back banner (#1426)
* bring back banner * update message --------- Co-authored-by: Alek99 <[email protected]>
1 parent 9f68db2 commit 777a831

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pcweb/components/docpage/navbar/navbar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from .search import search_bar
2222
from ..sidebar import SidebarState
2323
from ...link_button import resources_button
24-
24+
from pcweb.components.hosting_banner import hosting_banner
2525

2626
def resource_item(text: str, url: str, icon: str, index):
2727
return rx.el.li(
@@ -520,7 +520,7 @@ def new_component_section() -> rx.Component:
520520
@rx.memo
521521
def navbar() -> rx.Component:
522522
return rx.box(
523-
# hosting_banner(),
523+
hosting_banner(),
524524
rx.el.header(
525525
new_component_section(),
526526
class_name="flex flex-row items-center gap-12 bg-slate-1 shadow-[inset_0_-1px_0_0_var(--c-slate-3)] px-4 lg:px-6 w-screen h-[48px] lg:h-[65px]",

pcweb/components/hosting_banner.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def glow() -> rx.Component:
1414

1515

1616
class HostingBannerState(rx.State):
17-
show_banner: bool = False
17+
show_banner: bool = True
1818

1919
def hide_banner(self):
2020
self.show_banner = False
@@ -32,19 +32,19 @@ def hosting_banner() -> rx.Component:
3232
"Reflex Build – ",
3333
# Descriptive text: hidden on small, inline on md+
3434
rx.el.span(
35-
"Build internal apps with AI.",
35+
"Prompt to production app, in seconds.",
3636
class_name="hidden md:inline-block text-slate-12 font-medium text-sm",
3737
),
3838
# Mobile CTA: inline on small, hidden on md+
3939
rx.el.span(
40-
"Try for Free!",
40+
"Early Access",
4141
class_name="inline-block md:hidden text-slate-12 font-medium text-sm",
4242
),
4343
class_name="text-slate-12 font-semibold text-sm z-[1]",
4444
),
4545
# Standalone CTA button: hidden on small, inline on md+
4646
rx.el.button(
47-
"Try for Free!",
47+
"Get Early Access",
4848
class_name=(
4949
"hidden md:inline-block "
5050
"text-green-11 h-[1.5rem] rounded-md bg-green-4 "
@@ -56,7 +56,7 @@ def hosting_banner() -> rx.Component:
5656
)
5757
),
5858
glow(),
59-
href=REFLEX_BUILD_URL,
59+
href="/pricing",
6060
underline="none",
6161
is_external=True,
6262
),

0 commit comments

Comments
 (0)