Skip to content

Commit f8c3634

Browse files
authored
Merge branch 'main' into carlos/bg-search
2 parents 404b154 + 6bf129e commit f8c3634

File tree

17 files changed

+110
-215
lines changed

17 files changed

+110
-215
lines changed

assets/tailwind-theme.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "tailwindcss";
2+
@import "tailwindcss-animated";
23

34
@custom-variant dark (&:where(.dark, .dark *));
45

docs/ai_builder/integrations/mcp_installation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import reflex as rx
55
```
66

7+
```md alert warning
8+
# The Reflex MCP integration is currently only available for enterprise customers. Please [book a demo](https://reflex.dev/pricing/) to discuss access.
9+
```
10+
711
To use the Reflex MCP integration, you'll need to configure your AI assistant or coding tool to connect to the Reflex MCP server. No additional Python packages are required on your local machine - the server is hosted and ready to use.
812

913
## Prerequisites

docs/ai_builder/integrations/mcp_overview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import reflex as rx
55
```
66

7+
```md alert warning
8+
# The Reflex MCP integration is currently only available for enterprise customers. Please [book a demo](https://reflex.dev/pricing/) to discuss access.
9+
```
10+
711
The Reflex [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) integration provides AI assistants and coding tools with structured access to Reflex framework documentation and component information. This enables intelligent assistance while developing Reflex applications.
812

913
The Reflex MCP server is deployed at `https://mcp.reflex.dev/mcp` and provides access to component documentation and Reflex documentation through standardized MCP tools.

pcweb/components/docpage/navbar/buttons/sidebar.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import reflex as rx
22
from pcweb.components.icons.icons import get_icon
33
from pcweb.constants import GITHUB_URL, TWITTER_URL, DISCORD_URL
4-
from pcweb.pages.docs import getting_started, hosting
4+
from pcweb.pages.docs import getting_started
5+
from pcweb.pages.hosting.hosting import hosting_landing
56
from pcweb.pages.docs.library import library
67
from pcweb.pages.blog import blogs
78
from pcweb.pages.gallery import gallery
9+
from pcweb.pages.framework.framework import framework
810
from reflex.style import toggle_color_mode
911

1012

@@ -72,8 +74,9 @@ def navbar_sidebar_drawer(trigger) -> rx.Component:
7274
drawer_item("Blog", blogs.path, "blog"),
7375
drawer_item("Case Studies", "/customers", "customers"),
7476
drawer_item("Components", library.path, "library"),
75-
drawer_item("Hosting", hosting.deploy_quick_start.path, "hosting"),
76-
drawer_item("Pricing", "/pricing", "hosting"),
77+
drawer_item("Open Source", framework.path, "open-source"),
78+
drawer_item("Cloud", hosting_landing.path, "hosting"),
79+
drawer_item("Pricing", "/pricing", "pricing"),
7780
drawer_socials(),
7881
rx.el.button(
7982
rx.color_mode.icon(

pcweb/pages/gallery/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def page(document, is_reflex_template: bool) -> rx.Component:
118118
class_name="w-full h-full xl:rounded-md shadow-small",
119119
id="iFrame",
120120
),
121-
class_name="w-full h-[70vh] text-center flex flex-col gap-y-4 items-center text-slate-10",
121+
class_name="w-full h-[80vh] text-center flex flex-col gap-y-4 items-center text-slate-10",
122122
)
123123
)
124124

pcweb/pages/gallery/gallery.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def app_dialog_with_trigger(
5959
),
6060
class_name="flex flex-col w-full h-full gap-y-3",
6161
),
62-
class_name="w-full max-w-[65em] h-[70vh]",
62+
class_name="w-full !max-w-[75em] xl:max-w-[85em] 2xl:max-w-[95em] h-[80vh]",
6363
),
6464
)
6565

@@ -156,12 +156,14 @@ def create_header():
156156
class_name="flex flex-col justify-center items-center gap-6 w-full text-center",
157157
)
158158

159-
160159
@webpage(path="/templates", title="Templates · Reflex")
161160
def gallery() -> rx.Component:
162161
return rx.el.section(
163-
create_header(),
164-
create_grid_with_items(),
162+
rx.box(
163+
create_header(),
164+
create_grid_with_items(),
165+
class_name="w-full !max-w-[94.5rem] mx-auto",
166+
),
165167
id="gallery",
166-
class_name="flex flex-col mx-auto mt-4 mb-20 px-4 lg:px-6 pt-24 lg:pt-52 w-full",
168+
class_name="w-full px-4 pt-24 lg:pt-52 mt-4 mb-20",
167169
)

pcweb/pages/pricing/header.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,5 +564,9 @@ def header() -> rx.Component:
564564
return rx.box(
565565
custom_quote_form(),
566566
class_name="flex flex-col gap-2 justify-center items-center max-w-[64.19rem] 2xl:border-x border-slate-4 w-full -mb-10 "
567-
+ rx.cond(HostingBannerState.show_banner, "pt-[11rem]", "pt-[12rem]"),
567+
+ rx.cond(
568+
HostingBannerState.show_banner,
569+
"pt-[8rem] lg:pt-[11rem]",
570+
"pt-[8rem] lg:pt-[12rem]",
571+
),
568572
)

pcweb/telemetry/pixels.py

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
1-
from __future__ import annotations
1+
"""This module contains the pixel trackers for the website."""
22

3-
import itertools
4-
from typing import TYPE_CHECKING
3+
import reflex as rx
54

6-
from pcweb.telemetry import pixels_google, pixels_koala, pixels_rb2b, pixels_posthog
7-
8-
if TYPE_CHECKING:
9-
import reflex as rx
5+
from reflex_ui.blocks.telemetry import (
6+
get_common_room_trackers,
7+
get_google_analytics_trackers,
8+
get_clearbit_trackers,
9+
get_posthog_trackers,
10+
get_rb2b_trackers,
11+
get_koala_trackers,
12+
)
1013

1114

1215
def get_pixel_website_trackers() -> list[rx.Component]:
13-
return list(
14-
itertools.chain(
15-
pixels_google.get_pixel_website_trackers(),
16-
pixels_koala.get_pixel_website_trackers(),
17-
pixels_rb2b.get_pixel_rb2b_website_trackers(),
18-
pixels_posthog.get_pixel_website_trackers(),
16+
"""Get the pixel trackers for the website."""
17+
18+
return [
19+
get_common_room_trackers(site_id="b608b3c3-5dea-4365-b685-6b6635c7fda5"),
20+
get_koala_trackers(
21+
public_api_key="pk_733c6bff981543743bd2d53b4d7e95cc9b3f",
22+
),
23+
*get_google_analytics_trackers(tracking_id="G-4T7C8ZD9TR"),
24+
get_clearbit_trackers(public_key="pk_3d711a6e26de5ddb47443d8db170d506"),
25+
get_posthog_trackers(
26+
project_id="phc_A0MAR0wCGhXrizWmowRZcYqyZ8PMhPPQW06KEwD43aC"
1927
),
20-
)
28+
*get_rb2b_trackers(),
29+
]

pcweb/telemetry/pixels_clearbit.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

pcweb/telemetry/pixels_google.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)