Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/landing/ai_bento/dark/bento1.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/dark/bento1.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/dark/bento2.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/dark/bento2.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/dark/bento3.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/dark/bento3.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/dark/bento4.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/dark/bento4.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/dark/bento5.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/dark/bento5.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/light/bento1.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/light/bento1.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/light/bento2.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/light/bento2.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/light/bento3.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/light/bento3.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/light/bento4.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/light/bento4.webp
Binary file not shown.
Binary file added assets/landing/ai_bento/light/bento5.avif
Binary file not shown.
Binary file removed assets/landing/ai_bento/light/bento5.webp
Binary file not shown.
Binary file modified assets/landing/hosting_features/dark/card.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/landing/hosting_features/light/card.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed assets/landing/patterns/dark/numbers-pattern.webp
Binary file not shown.
Binary file removed assets/landing/patterns/dark/triangle.webp
Binary file not shown.
Binary file removed assets/landing/patterns/dark/wave.webp
Binary file not shown.
Binary file not shown.
Binary file removed assets/landing/patterns/light/numbers-pattern.webp
Binary file not shown.
Binary file removed assets/landing/patterns/light/pattern_ai.webp
Binary file not shown.
Binary file not shown.
Binary file removed assets/landing/patterns/light/pattern_hosting.webp
Binary file not shown.
12 changes: 0 additions & 12 deletions assets/landing/patterns/light/triangle.svg

This file was deleted.

Binary file removed assets/landing/patterns/light/wave.webp
Binary file not shown.
Binary file added assets/landing/products/dark/product_ai.avif
Binary file not shown.
Binary file removed assets/landing/products/dark/product_ai.webp
Binary file not shown.
Binary file not shown.
Binary file removed assets/landing/products/dark/product_framework.webp
Binary file not shown.
Binary file added assets/landing/products/dark/product_hosting.avif
Binary file not shown.
Binary file removed assets/landing/products/dark/product_hosting.webp
Binary file not shown.
Binary file added assets/landing/products/light/product_ai.avif
Binary file not shown.
Binary file removed assets/landing/products/light/product_ai.webp
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file removed assets/landing/products/light/product_hosting.webp
Diff not rendered.
Binary file added assets/landing/video/preview_video.avif
Binary file not shown.
Binary file removed assets/landing/video/preview_video.webp
Diff not rendered.
6 changes: 3 additions & 3 deletions docs/styling/custom-stylesheets.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ This package is included in the default Reflex installation, so you typically do

You can take advantage of Reflex's support for custom stylesheets to add custom fonts to your app.

In this example, we will use the [IBM Plex Mono]({"https://fonts.google.com/specimen/IBM+Plex+Mono"}) font from Google Fonts. First, add the stylesheet with the font to your app. You can get this link from the "Get embed code" section of the Google font page.
In this example, we will use the [JetBrains Mono]({"https://fonts.google.com/specimen/JetBrains+Mono"}) font from Google Fonts. First, add the stylesheet with the font to your app. You can get this link from the "Get embed code" section of the Google font page.

```python
app = rx.App(
stylesheets=[
"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap",
"https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap",
],
)
```
Expand All @@ -152,7 +152,7 @@ Then you can use the font in your component by setting the `font_family` prop.
```python demo
rx.text(
"Check out my font",
font_family="IBM Plex Mono",
font_family="JetBrains Mono",
font_size="1.5em",
)
```
Expand Down
8 changes: 4 additions & 4 deletions pcweb/components/code_card.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import reflex as rx
import reflex_ui as ui
from reflex.experimental.client_state import ClientStateVar

from pcweb.components.icons.hugeicons import hi
from pcweb.components.icons.icons import get_icon


Expand All @@ -14,12 +14,12 @@ def install_command(
return rx.el.button(
rx.cond(
copied.value,
hi(
"tick-02",
ui.icon(
"Tick02Icon",
size=14,
class_name="ml-[5px] shrink-0",
),
hi("copy-01", size=14, class_name="shrink-0 ml-[5px]"),
ui.icon("Copy01Icon", size=14, class_name="shrink-0 ml-[5px]"),
),
rx.text(
rx.cond(
Expand Down
1 change: 1 addition & 0 deletions pcweb/components/docpage/navbar/buttons/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def navbar_sidebar_button() -> rx.Component:
},
class_name="!text-slate-9 shrink-0",
),
custom_attrs={"aria-label": "Open sidebar"},
),
),
class_name="flex justify-center items-center size-8",
Expand Down
26 changes: 15 additions & 11 deletions pcweb/components/docpage/navbar/navbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
def resource_item(text: str, url: str, icon: str, index):
return rx.el.a(
rx.box(
ui.icon(icon, size=16, class_name="flex-shrink-0 text-slate-9"),
ui.icon(icon, size=16, class_name="flex-shrink-0 text-secondary-11"),
rx.text(
text,
class_name="font-small text-slate-9 truncate text-start w-[150px]",
class_name="font-small text-secondary-11 truncate text-start w-[150px]",
),
rx.icon(
tag="chevron_right",
Expand All @@ -38,7 +38,7 @@ def resource_item(text: str, url: str, icon: str, index):
),
class_name="flex flex-row flex-nowrap items-center gap-4 hover:bg-secondary-3 px-[1.125rem] py-2 rounded-md w-full transition-colors",
),
class_name="w-full text-slate-9 hover:text-slate-9",
class_name="w-full text-secondary-11 hover:text-secondary-11",
to=url,
on_click=SidebarState.set_sidebar_index(index),
)
Expand Down Expand Up @@ -104,7 +104,7 @@ def blog_section_item(date: str, title: str, url: str) -> rx.Component:
rx.moment(
date,
format="MMM DD, YYYY",
class_name="font-medium font-size-[0.8125rem] text-slate-9 truncate leading-[1.25rem] tracking-[-0.01013rem]",
class_name="font-medium font-size-[0.8125rem] text-secondary-11 truncate leading-[1.25rem] tracking-[-0.01013rem]",
),
rx.box(
rx.text(
Expand Down Expand Up @@ -167,7 +167,7 @@ def blog_section() -> rx.Component:
rx.box(
rx.text(
"View all",
class_name="font-small text-slate-9 truncate",
class_name="font-small text-secondary-11 truncate",
),
rx.icon(
tag="chevron-right",
Expand Down Expand Up @@ -218,12 +218,12 @@ def grid_card(
rx.box(
rx.text(title, class_name="text-slate-12 text-base font-semibold"),
rx.el.button(
rx.icon("chevron-right", class_name="text-slate-9 size-4"),
rx.icon("chevron-right", class_name="text-secondary-11 size-4"),
class_name="size-6 group-hover:bg-secondary-3 transition-colors rounded-md flex items-center justify-center",
),
class_name="flex flex-row items-center gap-2 justify-between",
),
rx.text(description, class_name="text-slate-9 text-sm font-medium"),
rx.text(description, class_name="text-secondary-11 text-sm font-medium"),
rx.image(
src=image,
class_name=image_style,
Expand All @@ -238,12 +238,12 @@ def grid_card_unique(title: str, description: str, url: str, component) -> rx.Co
rx.box(
rx.text(title, class_name="text-slate-12 text-base font-semibold"),
rx.el.button(
rx.icon("chevron-right", class_name="text-slate-9 size-4"),
rx.icon("chevron-right", class_name="text-secondary-11 size-4"),
class_name="size-6 group-hover:bg-slate-3 transition-bg rounded-md flex items-center justify-center",
),
class_name="flex flex-row items-center gap-2 justify-between",
),
rx.text(description, class_name="text-slate-9 text-sm font-medium"),
rx.text(description, class_name="text-secondary-11 text-sm font-medium"),
component,
href=url,
is_external=True,
Expand Down Expand Up @@ -359,6 +359,7 @@ def new_menu_trigger(
rx.icon(
"chevron-down",
class_name="chevron size-5 !text-secondary-11 group-hover:!text-secondary-12 py-1 mr-0 transition-all ease-out",
aria_hidden="true",
),
class_name="flex-row items-center gap-x-1 group user-select-none cursor-pointer xl:flex hidden",
on_click=rx.stop_propagation,
Expand All @@ -368,6 +369,7 @@ def new_menu_trigger(
"transform": "rotate(180deg)",
},
},
aria_label=f"{title} menu",
unstyled=True,
)

Expand Down Expand Up @@ -449,7 +451,7 @@ def new_component_section() -> rx.Component:
rx.State.router.page.path.contains("docs")
| rx.State.router.page.path.contains("ai-builder")
| rx.State.router.page.path.contains("cloud"),
rx.el.div(
ui.navigation_menu.list(
ui.navigation_menu.item(
render_=link_item(
"AI Builder",
Expand All @@ -475,7 +477,7 @@ def new_component_section() -> rx.Component:
),
class_name="xl:flex hidden flex-row items-center gap-0 lg:gap-5 2xl:gap-7 m-0 h-full list-none",
),
rx.el.div(
ui.navigation_menu.list(
ui.navigation_menu.item(
render_=link_item(
"AI Builder",
Expand Down Expand Up @@ -528,6 +530,7 @@ def new_component_section() -> rx.Component:
unstyled=True,
),
class_name="flex flex-row items-center gap-0 lg:gap-5 2xl:gap-7 m-0 h-full list-none",
custom_attrs={"role": "menubar"},
),
ui.navigation_menu.list(
ui.navigation_menu.item(search_bar()),
Expand Down Expand Up @@ -565,6 +568,7 @@ def new_component_section() -> rx.Component:
unstyled=True,
),
class_name="flex flex-row gap-2 m-0 h-full list-none items-center",
custom_attrs={"role": "menubar"},
),
ui.navigation_menu.portal(
ui.navigation_menu.positioner(
Expand Down
2 changes: 2 additions & 0 deletions pcweb/components/docpage/navbar/typesense.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ def search_trigger() -> rx.Component:
variant="outline",
size="sm",
class_name="md:w-full text-secondary-11",
id="search-trigger",
custom_attrs={"aria-label": "Search documentation"},
)


Expand Down
60 changes: 0 additions & 60 deletions pcweb/components/icons/hugeicons.py

This file was deleted.

Loading