Skip to content

Commit 4ee8121

Browse files
tgberkeleyTom Gotsman
andauthored
badge docs (#1171)
* badge docs * more badge content * add docs to pricing cards * add final pricing docs --------- Co-authored-by: Tom Gotsman <[email protected]>
1 parent d2e46c2 commit 4ee8121

File tree

6 files changed

+56
-2
lines changed

6 files changed

+56
-2
lines changed

docs/hosting/reflex-branding.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
```python exec
2+
from pcweb.pages.docs import hosting
3+
from pcweb.pages.pricing.pricing import pricing_path
4+
```
5+
6+
# Reflex Branding
7+
8+
Remove Reflex branding from your exported or deployed sites.
9+
10+
By default, Reflex branding, such as the "Made in Reflex" badge, will appear on all your published sites.
11+
12+
13+
## How to remove the Reflex branding from your app
14+
15+
You can turn off the Reflex branding, when deploying to Reflex Cloud, by adding the `--badge` flag to the `reflex deploy` command.
16+
17+
In order for this to work a user hosting with Reflex Cloud must be logged in and on a [paid plan]({pricing_path}) (at least pro tier).
18+
19+
20+
```md alert info
21+
# A paid plan is required to remove the Reflex branding.
22+
```
23+
24+
If you are self-hosting check out these instructions on [how to remove the Reflex branding from your self-hosted app]({hosting.self_hosting.path}#remove-reflex-branding-from-your-self-hosted-app).

docs/hosting/self-hosting.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import reflex as rx
33

44
from pcweb.pages.docs import getting_started
5+
from pcweb.pages.pricing.pricing import pricing_path
56
```
67

78
# Self Hosting
@@ -118,3 +119,14 @@ Finally, you can start your Reflex container service as follows.
118119
```bash
119120
docker run -d -p 3000:3000 -p 8000:8000 --name app reflex-project:latest
120121
```
122+
123+
124+
## Remove Reflex branding from your self-hosted app
125+
126+
To remove the Reflex branding, such as the "Made in Reflex" badge, from your self-hosted app, you must add the `--badge` flag to the export command `reflex export --badge` or the run command `reflex run --env prod --badge`.
127+
128+
129+
130+
```md alert info
131+
# A paid [team plan]({pricing_path}) is required to remove the Reflex branding for self-hosted apps.
132+
```

pcweb/components/docpage/sidebar/sidebar_items/learn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def get_sidebar_items_hosting():
209209
hosting.secrets_environment_vars,
210210
hosting.tokens,
211211
hosting.custom_domains,
212+
hosting.reflex_branding,
212213
hosting.deploy_with_github_actions,
213214
],
214215
),

pcweb/pages/pricing/plan_cards.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ def popular_card(
198198
rx.el.li(
199199
rx.icon(feature[0], class_name="!text-violet-9", size=16),
200200
feature[1],
201+
rx.tooltip(
202+
rx.icon("info", class_name="!text-slate-9", size=12),
203+
content=feature[2],
204+
) if len(feature) == 3 else "",
201205
class_name="text-sm font-medium text-slate-11 flex items-center gap-3",
202206
)
203207
for feature in features
@@ -249,6 +253,7 @@ def plan_cards() -> rx.Component:
249253
("clock", "30 days log retention"),
250254
("globe", "Multi-region"),
251255
("brush", "Custom domains"),
256+
("file-badge", "Remove Branding with Reflex Cloud", "Check out the Reflex Branding doc page to learn how to remove the 'Made in Reflex' badge from your app.")
252257
],
253258
"Start with Pro plan",
254259
price="$20/mo + compute",
@@ -264,6 +269,7 @@ def plan_cards() -> rx.Component:
264269
("git-branch", "Create multiple projects"),
265270
("signal", "Full Website Analytics"),
266271
("lock-keyhole", "One Click Auth"),
272+
("file-badge", "Remove Branding for Self-Hosting", "Check out the Remove Reflex Branding section in the Self Hosting doc page to learn how to remove the 'Made in Reflex' badge from your app."),
267273
("circle-plus", "Everything in Pro"),
268274
],
269275
"Contact sales",

pcweb/pages/pricing/pricing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from pcweb.pages.pricing.calculator import calculator_section
1111
from pcweb.meta.meta import hosting_meta_tags
1212

13-
14-
@rx.page(route="/pricing", title="Reflex · Pricing", meta=hosting_meta_tags)
13+
pricing_path = "/pricing"
14+
@rx.page(route=pricing_path, title="Reflex · Pricing", meta=hosting_meta_tags)
1515
def pricing() -> rx.Component:
1616
"""Get the Pricing landing page."""
1717
from pcweb.components.docpage.navbar import navbar

pcweb/pages/pricing/table.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
("Built-in Testing", False, False, True, True),
4242
]
4343

44+
REFLEX_BRANDING_SECTION = [
45+
("Remove Reflex Branding", "", "On Reflex Cloud", "Everywhere *", "Everywhere *"),
46+
]
47+
4448
REFLEX_AI_SECTION = [
4549
("Number of Generations", "5/month", "100/month/seat", "250/month/seat", "Custom"),
4650
]
@@ -102,6 +106,9 @@
102106
("Contact sales", "secondary", "!text-slate-11 !w-fit"),
103107
]
104108

109+
ASTERIX_SECTION = [
110+
("* Everywhere: This includes removing the 'Made in Reflex' badge for self hosted apps.", "", "", "", "")
111+
]
105112

106113
def glow() -> rx.Component:
107114
return rx.table.row(
@@ -264,6 +271,7 @@ def table_body_oss() -> rx.Component:
264271
create_checkmark_row(feature, checks)
265272
for feature, *checks in FRAMEWORK_SECTION
266273
],
274+
*[create_table_row(row) for row in REFLEX_BRANDING_SECTION],
267275
),
268276
rx.table.header(
269277
create_table_row_header("Database"),
@@ -292,6 +300,9 @@ def table_body_oss() -> rx.Component:
292300
class_name="w-full [&>*:not(:first-child)]:text-center bg-slate-1 !py-[1.25rem] border-y border-slate-4 !h-[76px] relative",
293301
),
294302
),
303+
create_table_body(
304+
*[create_table_row(row) for row in ASTERIX_SECTION],
305+
),
295306
class_name="w-full overflow-x-auto max-w-[69.125rem] -mt-[2rem]",
296307
)
297308

0 commit comments

Comments
 (0)