instruction stringlengths 0 1k | input stringlengths 1 1k | output stringlengths 10 6.51k |
|---|---|---|
import reflex as rx
from pcweb import constants
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import markdown_with_shiki
from pcweb.templates.webpage import webpage
@rx.memo
def h_comp_error(text: rx.Var[str]) -> rx.Component:
return rx.el.h3(
text,
class_name="font-smbold text-slate-12 text-start",
)
@rx.memo
def h4_comp_error(text: rx.Var[str]) -> rx.Component:
return rx.el.h4(
text,
class_name="font-smbold text-slate-12 text-start",
)
@rx.memo
|
@rx.memo
def markdown_error(text: str):
return markdown_with_shiki(
text,
class_name="font-small text-slate-11 text-start markdown-code",
)
def error_message(
heading: str, error_code: str, solution: rx.Component, error_type: str = ""
) -> rx.Component:
return rx.box(
rx.accordion.root(
rx.accordion.item(
rx.accordion.header(
rx.accordion.trigger(
rx.box(
rx.box(
h_comp_error(text=heading),
rx.code(error_type, class_name="code-error-style")
if error_type != ""
else rx.fragment(),
class_name="flex flex-row gap-2 items-center",
),
rx.text(
error_code,
class_name="font-co | def code_block_error(code: str):
return rx.box(
rx._x.code_block(
code,
language="python",
class_name="code-block !bg-slate-1",
),
# class_name="!font-code",
) |
import reflex as rx
from pcweb import constants
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import markdown_with_shiki
from pcweb.templates.webpage import webpage
@rx.memo
def h_comp_error(text: rx.Var[str]) -> rx.Component:
return rx.el.h3(
text,
class_name="font-smbold text-slate-12 text-start",
)
@rx.memo
def h4_comp_error(text: rx.Var[str]) -> rx.Component:
return rx.el.h4(
text,
class_name="font-smbold text-slate-12 text-start",
)
@rx.memo
def code_block_error(code: str):
return rx.box(
rx._x.code_block(
code,
language="python",
class_name="code-block !bg-slate-1",
),
# class_name="!font-code",
)
@rx.memo
|
def error_message(
heading: str, error_code: str, solution: rx.Component, error_type: str = ""
) -> rx.Component:
return rx.box(
rx.accordion.root(
rx.accordion.item(
rx.accordion.header(
rx.accordion.trigger(
rx.box(
rx.box(
h_comp_error(text=heading),
rx.code(error_type, class_name="code-error-style")
if error_type != ""
else rx.fragment(),
class_name="flex flex-row gap-2 items-center",
),
rx.text(
error_code,
class_name="font-code text-violet-9 text-pretty font-medium",
),
class_name="flex flex-col gap-2.5 text-start",
| def markdown_error(text: str):
return markdown_with_shiki(
text,
class_name="font-small text-slate-11 text-start markdown-code",
) |
.ul(
rx.el.li("Ensure that reflex is imported before sqlmodel."),
class_name="list-disc pl-4",
),
],
error_type="Python Error",
),
error_message(
heading="ImportError: couldn't import psycopg",
error_code="ImportError: couldn't import psycopg 'python' implementation: libpq library not found | couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary' | couldn't import psycopg 'c' implementation: No module named 'psycopg_c'",
solution=[
h4_comp_error(
text="This is caused by not installing the correct psycopg package. Solution is to add the `psycopg[binary]==3.2.3` package to your requirements.txt file."
),
],
error_type="Import Error",
),
class_name="flex flex-col gap-6 w-full",
)
@webpage(path="/errors", title="Common Errors · Reflex")
| def errors() -> rx.Component:
return rx.el.section(
rx.box(
h1_title(title="Common Errors"),
rx.box(
rx.el.h2(
"We've compiled a list of the most common errors users face when using Reflex. If you have encountered an error that isn't answered here, feel free to reach out to us on our ",
rx.link(
"Discord",
underline="always",
href=constants.DISCORD_URL,
class_name="text-violet-9",
),
".",
),
class_name="font-md text-balance text-slate-10",
),
class_name="section-header",
),
errors_content(),
id="common-errors",
class_name="section-content",
) | |
from pcweb.components.webpage.comps import h1_title
from pcweb.constants import CONTRIBUTING_URL, DISCORD_URL
from pcweb.flexdown import markdown_with_shiki
from pcweb.pages.docs import hosting, wrapping_react
from pcweb.pages.gallery import gallery
from pcweb.templates.docpage import doclink
from pcweb.templates.webpage import webpage
faq_items = [
{
"Q": "What is Reflex?",
"A": rx.text(
"Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. It offers the ease of use and accessibility of low-code frameworks, combined with the flexibility, performance, and customizability of traditional web development. Reflex is designed to be easy to get started with for those with no previous web development experience."
),
},
{
"Q": "What can I build with Reflex?",
"A": rx.box(
rx.text(
"With Reflex, data scientists and software engineers can cre | import reflex as rx | |
import reflex as rx
|
from pcweb.constants import CONTRIBUTING_URL, DISCORD_URL
from pcweb.flexdown import markdown_with_shiki
from pcweb.pages.docs import hosting, wrapping_react
from pcweb.pages.gallery import gallery
from pcweb.templates.docpage import doclink
from pcweb.templates.webpage import webpage
faq_items = [
{
"Q": "What is Reflex?",
"A": rx.text(
"Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. It offers the ease of use and accessibility of low-code frameworks, combined with the flexibility, performance, and customizability of traditional web development. Reflex is designed to be easy to get started with for those with no previous web development experience."
),
},
{
"Q": "What can I build with Reflex?",
"A": rx.box(
rx.text(
"With Reflex, data scientists and software engineers can create high-quality web applications quickly and easily | from pcweb.components.webpage.comps import h1_title |
import reflex as rx
from pcweb.components.webpage.comps import h1_title
|
from pcweb.flexdown import markdown_with_shiki
from pcweb.pages.docs import hosting, wrapping_react
from pcweb.pages.gallery import gallery
from pcweb.templates.docpage import doclink
from pcweb.templates.webpage import webpage
faq_items = [
{
"Q": "What is Reflex?",
"A": rx.text(
"Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. It offers the ease of use and accessibility of low-code frameworks, combined with the flexibility, performance, and customizability of traditional web development. Reflex is designed to be easy to get started with for those with no previous web development experience."
),
},
{
"Q": "What can I build with Reflex?",
"A": rx.box(
rx.text(
"With Reflex, data scientists and software engineers can create high-quality web applications quickly and easily without needing to learn specific web development technolo | from pcweb.constants import CONTRIBUTING_URL, DISCORD_URL |
import reflex as rx
from pcweb.components.webpage.comps import h1_title
from pcweb.constants import CONTRIBUTING_URL, DISCORD_URL
|
from pcweb.pages.docs import hosting, wrapping_react
from pcweb.pages.gallery import gallery
from pcweb.templates.docpage import doclink
from pcweb.templates.webpage import webpage
faq_items = [
{
"Q": "What is Reflex?",
"A": rx.text(
"Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. It offers the ease of use and accessibility of low-code frameworks, combined with the flexibility, performance, and customizability of traditional web development. Reflex is designed to be easy to get started with for those with no previous web development experience."
),
},
{
"Q": "What can I build with Reflex?",
"A": rx.box(
rx.text(
"With Reflex, data scientists and software engineers can create high-quality web applications quickly and easily without needing to learn specific web development technologies. Whether you want to build a single purpos | from pcweb.flexdown import markdown_with_shiki |
import reflex as rx
from pcweb.components.webpage.comps import h1_title
from pcweb.constants import CONTRIBUTING_URL, DISCORD_URL
from pcweb.flexdown import markdown_with_shiki
|
from pcweb.pages.gallery import gallery
from pcweb.templates.docpage import doclink
from pcweb.templates.webpage import webpage
faq_items = [
{
"Q": "What is Reflex?",
"A": rx.text(
"Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. It offers the ease of use and accessibility of low-code frameworks, combined with the flexibility, performance, and customizability of traditional web development. Reflex is designed to be easy to get started with for those with no previous web development experience."
),
},
{
"Q": "What can I build with Reflex?",
"A": rx.box(
rx.text(
"With Reflex, data scientists and software engineers can create high-quality web applications quickly and easily without needing to learn specific web development technologies. Whether you want to build a single purpose user interface for a data science project/internal | from pcweb.pages.docs import hosting, wrapping_react |
import reflex as rx
from pcweb.components.webpage.comps import h1_title
from pcweb.constants import CONTRIBUTING_URL, DISCORD_URL
from pcweb.flexdown import markdown_with_shiki
from pcweb.pages.docs import hosting, wrapping_react
|
from pcweb.templates.docpage import doclink
from pcweb.templates.webpage import webpage
faq_items = [
{
"Q": "What is Reflex?",
"A": rx.text(
"Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. It offers the ease of use and accessibility of low-code frameworks, combined with the flexibility, performance, and customizability of traditional web development. Reflex is designed to be easy to get started with for those with no previous web development experience."
),
},
{
"Q": "What can I build with Reflex?",
"A": rx.box(
rx.text(
"With Reflex, data scientists and software engineers can create high-quality web applications quickly and easily without needing to learn specific web development technologies. Whether you want to build a single purpose user interface for a data science project/internal app, or a large multi-page web app, Refl | from pcweb.pages.gallery import gallery |
import reflex as rx
from pcweb.components.webpage.comps import h1_title
from pcweb.constants import CONTRIBUTING_URL, DISCORD_URL
from pcweb.flexdown import markdown_with_shiki
from pcweb.pages.docs import hosting, wrapping_react
from pcweb.pages.gallery import gallery
|
from pcweb.templates.webpage import webpage
faq_items = [
{
"Q": "What is Reflex?",
"A": rx.text(
"Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. It offers the ease of use and accessibility of low-code frameworks, combined with the flexibility, performance, and customizability of traditional web development. Reflex is designed to be easy to get started with for those with no previous web development experience."
),
},
{
"Q": "What can I build with Reflex?",
"A": rx.box(
rx.text(
"With Reflex, data scientists and software engineers can create high-quality web applications quickly and easily without needing to learn specific web development technologies. Whether you want to build a single purpose user interface for a data science project/internal app, or a large multi-page web app, Reflex has the tools and features to handle both | from pcweb.templates.docpage import doclink |
import reflex as rx
from pcweb.components.webpage.comps import h1_title
from pcweb.constants import CONTRIBUTING_URL, DISCORD_URL
from pcweb.flexdown import markdown_with_shiki
from pcweb.pages.docs import hosting, wrapping_react
from pcweb.pages.gallery import gallery
from pcweb.templates.docpage import doclink
|
faq_items = [
{
"Q": "What is Reflex?",
"A": rx.text(
"Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. It offers the ease of use and accessibility of low-code frameworks, combined with the flexibility, performance, and customizability of traditional web development. Reflex is designed to be easy to get started with for those with no previous web development experience."
),
},
{
"Q": "What can I build with Reflex?",
"A": rx.box(
rx.text(
"With Reflex, data scientists and software engineers can create high-quality web applications quickly and easily without needing to learn specific web development technologies. Whether you want to build a single purpose user interface for a data science project/internal app, or a large multi-page web app, Reflex has the tools and features to handle both and scale up as your project grows."
| from pcweb.templates.webpage import webpage |
from reflex.utils.format import to_snake_case, to_title_case
from pcweb.templates.docpage import docpage, h1_comp, text_comp_2
def component_card(name: str, link: str, section: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=f"/components_previews/{section.lower()}/light/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:hidden",
),
rx.image(
src=f"/components_previews/{section.lower()}/dark/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:block hidden",
),
rx.box(
rx.text(
to_title_case(to_snake_case(name), sep=" "),
class_name="truncate font-base text-slate-12", | import reflex as rx | |
import reflex as rx
|
from pcweb.templates.docpage import docpage, h1_comp, text_comp_2
def component_card(name: str, link: str, section: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=f"/components_previews/{section.lower()}/light/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:hidden",
),
rx.image(
src=f"/components_previews/{section.lower()}/dark/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:block hidden",
),
rx.box(
rx.text(
to_title_case(to_snake_case(name), sep=" "),
class_name="truncate font-base text-slate-12",
),
rx.icon("chevron-right", | from reflex.utils.format import to_snake_case, to_title_case |
import reflex as rx
from reflex.utils.format import to_snake_case, to_title_case
|
def component_card(name: str, link: str, section: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=f"/components_previews/{section.lower()}/light/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:hidden",
),
rx.image(
src=f"/components_previews/{section.lower()}/dark/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:block hidden",
),
rx.box(
rx.text(
to_title_case(to_snake_case(name), sep=" "),
class_name="truncate font-base text-slate-12",
),
rx.icon("chevron-right", size=14, class_name="!text-slate-9"),
class_name="b | from pcweb.templates.docpage import docpage, h1_comp, text_comp_2 |
review of {name}",
class_name="object-contain object-center h-full w-full dark:hidden",
),
rx.image(
src=f"/components_previews/{section.lower()}/dark/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:block hidden",
),
rx.box(
rx.text(
to_title_case(to_snake_case(name), sep=" "),
class_name="truncate font-base text-slate-12",
),
rx.icon("chevron-right", size=14, class_name="!text-slate-9"),
class_name="bottom-0 absolute flex flex-row justify-between w-full px-4 py-2 items-center",
),
class_name="rounded-xl border overflow-hidden relative box-border shadow-large bg-slate-2 hover:bg-slate-3 transition-bg border-slate-5",
),
href=link,
)
|
def create_previews(
path: str,
description: str,
component_category: str,
prefix: str = "",
type: str = "core",
):
@docpage(
right_sidebar=False,
set_path=f"/docs/library{prefix.rstrip('/')}/" + path.strip("/") + "/",
page_title=component_category + " Library",
)
def page() -> rx.Component:
from pcweb.components.docpage.sidebar.sidebar_items import get_component_link
component_list = get_component_list(type)
return rx.box(
rx.box(
h1_comp(text=to_title_case(to_snake_case(component_category), sep=" ")),
text_comp_2(
text=description,
),
class_name="flex flex-col w-full",
),
rx.box(
*[
component_card(
name=component[0],
link=get_component_link(
component_category,
| def get_component_list(component_type: str = "core"):
from pcweb.pages.docs import component_list, graphing_components
if component_type == "core":
return component_list
elif component_type == "graphing":
return graphing_components
else:
raise ValueError(f"Unknown component type: {component_type}") |
ain object-center h-full w-full dark:hidden",
),
rx.image(
src=f"/components_previews/{section.lower()}/dark/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:block hidden",
),
rx.box(
rx.text(
to_title_case(to_snake_case(name), sep=" "),
class_name="truncate font-base text-slate-12",
),
rx.icon("chevron-right", size=14, class_name="!text-slate-9"),
class_name="bottom-0 absolute flex flex-row justify-between w-full px-4 py-2 items-center",
),
class_name="rounded-xl border overflow-hidden relative box-border shadow-large bg-slate-2 hover:bg-slate-3 transition-bg border-slate-5",
),
href=link,
)
def get_component_list(component_type: str = "core"):
|
if component_type == "core":
return component_list
elif component_type == "graphing":
return graphing_components
else:
raise ValueError(f"Unknown component type: {component_type}")
def create_previews(
path: str,
description: str,
component_category: str,
prefix: str = "",
type: str = "core",
):
@docpage(
right_sidebar=False,
set_path=f"/docs/library{prefix.rstrip('/')}/" + path.strip("/") + "/",
page_title=component_category + " Library",
)
def page() -> rx.Component:
from pcweb.components.docpage.sidebar.sidebar_items import get_component_link
component_list = get_component_list(type)
return rx.box(
rx.box(
h1_comp(text=to_title_case(to_snake_case(component_category), sep=" ")),
text_comp_2(
text=description,
),
class_name="flex flex-col w-full",
),
| from pcweb.pages.docs import component_list, graphing_components |
rx.image(
src=f"/components_previews/{section.lower()}/dark/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:block hidden",
),
rx.box(
rx.text(
to_title_case(to_snake_case(name), sep=" "),
class_name="truncate font-base text-slate-12",
),
rx.icon("chevron-right", size=14, class_name="!text-slate-9"),
class_name="bottom-0 absolute flex flex-row justify-between w-full px-4 py-2 items-center",
),
class_name="rounded-xl border overflow-hidden relative box-border shadow-large bg-slate-2 hover:bg-slate-3 transition-bg border-slate-5",
),
href=link,
)
def get_component_list(component_type: str = "core"):
from pcweb.pages.docs import component_list, graphing_components
|
def create_previews(
path: str,
description: str,
component_category: str,
prefix: str = "",
type: str = "core",
):
@docpage(
right_sidebar=False,
set_path=f"/docs/library{prefix.rstrip('/')}/" + path.strip("/") + "/",
page_title=component_category + " Library",
)
def page() -> rx.Component:
from pcweb.components.docpage.sidebar.sidebar_items import get_component_link
component_list = get_component_list(type)
return rx.box(
rx.box(
h1_comp(text=to_title_case(to_snake_case(component_category), sep=" ")),
text_comp_2(
text=description,
),
class_name="flex flex-col w-full",
),
rx.box(
*[
component_card(
name=component[0],
link=get_component_link(
component_category,
| if component_type == "core":
return component_list
elif component_type == "graphing":
return graphing_components
else:
raise ValueError(f"Unknown component type: {component_type}") |
n.lower()}/dark/{name.lower()}.svg",
loading="lazy",
alt=f"Image preview of {name}",
class_name="object-contain object-center h-full w-full dark:block hidden",
),
rx.box(
rx.text(
to_title_case(to_snake_case(name), sep=" "),
class_name="truncate font-base text-slate-12",
),
rx.icon("chevron-right", size=14, class_name="!text-slate-9"),
class_name="bottom-0 absolute flex flex-row justify-between w-full px-4 py-2 items-center",
),
class_name="rounded-xl border overflow-hidden relative box-border shadow-large bg-slate-2 hover:bg-slate-3 transition-bg border-slate-5",
),
href=link,
)
def get_component_list(component_type: str = "core"):
from pcweb.pages.docs import component_list, graphing_components
if component_type == "core":
return component_list
|
def create_previews(
path: str,
description: str,
component_category: str,
prefix: str = "",
type: str = "core",
):
@docpage(
right_sidebar=False,
set_path=f"/docs/library{prefix.rstrip('/')}/" + path.strip("/") + "/",
page_title=component_category + " Library",
)
def page() -> rx.Component:
from pcweb.components.docpage.sidebar.sidebar_items import get_component_link
component_list = get_component_list(type)
return rx.box(
rx.box(
h1_comp(text=to_title_case(to_snake_case(component_category), sep=" ")),
text_comp_2(
text=description,
),
class_name="flex flex-col w-full",
),
rx.box(
*[
component_card(
name=component[0],
link=get_component_link(
component_category,
| elif component_type == "graphing":
return graphing_components
else:
raise ValueError(f"Unknown component type: {component_type}") |
class_name="bottom-0 absolute flex flex-row justify-between w-full px-4 py-2 items-center",
),
class_name="rounded-xl border overflow-hidden relative box-border shadow-large bg-slate-2 hover:bg-slate-3 transition-bg border-slate-5",
),
href=link,
)
def get_component_list(component_type: str = "core"):
from pcweb.pages.docs import component_list, graphing_components
if component_type == "core":
return component_list
elif component_type == "graphing":
return graphing_components
else:
raise ValueError(f"Unknown component type: {component_type}")
def create_previews(
path: str,
description: str,
component_category: str,
prefix: str = "",
type: str = "core",
):
@docpage(
right_sidebar=False,
set_path=f"/docs/library{prefix.rstrip('/')}/" + path.strip("/") + "/",
page_title=component_category + " Library",
)
def page() -> rx.Component:
|
component_list = get_component_list(type)
return rx.box(
rx.box(
h1_comp(text=to_title_case(to_snake_case(component_category), sep=" ")),
text_comp_2(
text=description,
),
class_name="flex flex-col w-full",
),
rx.box(
*[
component_card(
name=component[0],
link=get_component_link(
component_category,
component,
prefix.strip("/") + "/" if prefix.strip("/") else "",
),
section=component_category,
)
for component in component_list[component_category]
],
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3",
),
class_name="flex flex-col | from pcweb.components.docpage.sidebar.sidebar_items import get_component_link |
-center",
),
class_name="rounded-xl border overflow-hidden relative box-border shadow-large bg-slate-2 hover:bg-slate-3 transition-bg border-slate-5",
),
href=link,
)
def get_component_list(component_type: str = "core"):
from pcweb.pages.docs import component_list, graphing_components
if component_type == "core":
return component_list
elif component_type == "graphing":
return graphing_components
else:
raise ValueError(f"Unknown component type: {component_type}")
def create_previews(
path: str,
description: str,
component_category: str,
prefix: str = "",
type: str = "core",
):
@docpage(
right_sidebar=False,
set_path=f"/docs/library{prefix.rstrip('/')}/" + path.strip("/") + "/",
page_title=component_category + " Library",
)
def page() -> rx.Component:
from pcweb.components.docpage.sidebar.sidebar_items import get_component_link
|
return rx.box(
rx.box(
h1_comp(text=to_title_case(to_snake_case(component_category), sep=" ")),
text_comp_2(
text=description,
),
class_name="flex flex-col w-full",
),
rx.box(
*[
component_card(
name=component[0],
link=get_component_link(
component_category,
component,
prefix.strip("/") + "/" if prefix.strip("/") else "",
),
section=component_category,
)
for component in component_list[component_category]
],
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3",
),
class_name="flex flex-col h-full mb-10",
)
return page
# Core | component_list = get_component_list(type) |
ids": {
"path": "tables-and-data-grids",
"description": "Powerful table components for organizing and displaying data efficiently. Includes versatile options like standard tables, interactive datatables, and editable data grids. Perfect for creating responsive, user-friendly interfaces that present information clearly and allow for easy data manipulation.",
"component_category": "Tables-And-Data-Grids",
},
"typography": {
"path": "typography",
"description": "Components that help with typography, such as headings, paragraphs, and lists. These are useful for creating responsive and interactive user interfaces.",
"component_category": "Typography",
},
"state": {
"path": "state",
"description": "Components that help with state, such as state variables, state hooks, and state management. These are useful for creating responsive and interactive user interfaces.",
"component_category": "State",
},
}
|
# Graphing Components
graphing_components_dict = {
"charts": {
"path": "charts",
"description": "Components for creating various types of charts and graphs. These are useful for data visualization and presenting complex information in an easily understandable format.",
"component_category": "Charts",
},
"general": {
"path": "general",
"description": "General-purpose graphing components that provide foundational elements for creating custom visualizations. These components offer flexibility and can be combined to create more complex graphical representations.",
"component_category": "General",
},
"other-charts": {
"path": "other-charts",
"description": "Other graphing components that provide additional functionality and customization options for creating custom visualizations. These components can be used to enhance the graphical representation of data and improve user experience.",
"component_ | library_previews = [
create_previews(
path=value["path"],
description=value["description"],
component_category=value["component_category"],
type="core",
)
for key, value in core_components_dict.items()
] |
onents_dict = {
"charts": {
"path": "charts",
"description": "Components for creating various types of charts and graphs. These are useful for data visualization and presenting complex information in an easily understandable format.",
"component_category": "Charts",
},
"general": {
"path": "general",
"description": "General-purpose graphing components that provide foundational elements for creating custom visualizations. These components offer flexibility and can be combined to create more complex graphical representations.",
"component_category": "General",
},
"other-charts": {
"path": "other-charts",
"description": "Other graphing components that provide additional functionality and customization options for creating custom visualizations. These components can be used to enhance the graphical representation of data and improve user experience.",
"component_category": "Other-Charts",
},
}
|
components_previews_pages = library_previews + graphing_previews
| graphing_previews = [
create_previews(
path=value["path"],
description=value["description"],
component_category=value["component_category"],
prefix="/graphing",
type="graphing",
)
for key, value in graphing_components_dict.items()
] |
harts",
},
"general": {
"path": "general",
"description": "General-purpose graphing components that provide foundational elements for creating custom visualizations. These components offer flexibility and can be combined to create more complex graphical representations.",
"component_category": "General",
},
"other-charts": {
"path": "other-charts",
"description": "Other graphing components that provide additional functionality and customization options for creating custom visualizations. These components can be used to enhance the graphical representation of data and improve user experience.",
"component_category": "Other-Charts",
},
}
graphing_previews = [
create_previews(
path=value["path"],
description=value["description"],
component_category=value["component_category"],
prefix="/graphing",
type="graphing",
)
for key, value in graphing_components_dict.items()
]
| components_previews_pages = library_previews + graphing_previews | |
from pcweb.flexdown import markdown_with_shiki
from pcweb.templates.webpage import webpage
contents = f"""
# Page Not Found
The page at `{rx.State.router.page.raw_path}` doesn't exist.
"""
@webpage(path="/404", title="Page Not Found · Reflex.dev", add_as_page=False)
def page404():
return rx.box(
markdown_with_shiki(contents),
class_name="h-[80vh] w-full flex flex-col items-center justify-center",
)
| import reflex as rx | |
import reflex as rx
from pcweb.flexdown import markdown_with_shiki
|
contents = f"""
# Page Not Found
The page at `{rx.State.router.page.raw_path}` doesn't exist.
"""
@webpage(path="/404", title="Page Not Found · Reflex.dev", add_as_page=False)
def page404():
return rx.box(
markdown_with_shiki(contents),
class_name="h-[80vh] w-full flex flex-col items-center justify-center",
)
| from pcweb.templates.webpage import webpage |
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(tr | import httpx | |
import httpx
|
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, | import reflex as rx |
import httpx
import reflex as rx
|
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
| from pcweb.components.button import button |
import httpx
import reflex as rx
from pcweb.components.button import button
|
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
| from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL |
import httpx
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
|
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
c | from pcweb.templates.webpage import webpage |
import httpx
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
|
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
content,
class_name="bg-white-1 p-4 rounded-[1.625rem] w-[26rem]",
),
)
def form() -> rx.Component:
input_class_name = "box-border border-slate-5 foc | self.is_loading = True |
import httpx
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
|
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
content,
class_name="bg-white-1 p-4 rounded-[1.625rem] w-[26rem]",
),
)
def form() -> rx.Component:
input_class_name = "box-border border-slate-5 focus:border-violet-9 focus:border-1 bg-slate-1 p-[0.5rem_0.75rem] border rounded-[10px] w-full font-small text-slate-11 placeholder:text-slate-9 outline-none focus:outline-none"
return rx.box(
rx.form(
rx.box(
| response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
) |
import httpx
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
|
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
content,
class_name="bg-white-1 p-4 rounded-[1.625rem] w-[26rem]",
),
)
def form() -> rx.Component:
input_class_name = "box-border border-slate-5 focus:border-violet-9 focus:border-1 bg-slate-1 p-[0.5rem_0.75rem] border rounded-[10px] w-full font-small text-slate-11 placeholder:text-slate-9 outline-none focus:outline-none"
return rx.box(
rx.form(
rx.box(
rx.text(
"Contact the Sales Team",
| self.is_loading = False |
import httpx
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
|
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
content,
class_name="bg-white-1 p-4 rounded-[1.625rem] w-[26rem]",
),
)
def form() -> rx.Component:
input_class_name = "box-border border-slate-5 focus:border-violet-9 focus:border-1 bg-slate-1 p-[0.5rem_0.75rem] border rounded-[10px] w-full font-small text-slate-11 placeholder:text-slate-9 outline-none focus:outline-none"
return rx.box(
rx.form(
rx.box(
rx.text(
"Contact the Sales Team",
class_name="text-2xl text-slat | self.email_sent = True |
import httpx
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
|
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
content,
class_name="bg-white-1 p-4 rounded-[1.625rem] w-[26rem]",
),
)
def form() -> rx.Component:
input_class_name = "box-border border-slate-5 focus:border-violet-9 focus:border-1 bg-slate-1 p-[0.5rem_0.75rem] border rounded-[10px] w-full font-small text-slate-11 placeholder:text-slate-9 outline-none focus:outline-none"
return rx.box(
rx.form(
rx.box(
rx.text(
"Contact the Sales Team",
class_name="text-2xl text-slate-12 font-bold leading-6 scroll-m-[7rem]",
id="form-title",
),
rx.text(
| self.is_loading = False |
import httpx
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
|
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
content,
class_name="bg-white-1 p-4 rounded-[1.625rem] w-[26rem]",
),
)
def form() -> rx.Component:
input_class_name = "box-border border-slate-5 focus:border-violet-9 focus:border-1 bg-slate-1 p-[0.5rem_0.75rem] border rounded-[10px] w-full font-small text-slate-11 placeholder:text-slate-9 outline-none focus:outline-none"
return rx.box(
rx.form(
rx.box(
rx.text(
"Contact the Sales Team",
class_name="text-2xl text-slate-12 font-bold leading-6 scroll-m-[7rem]",
id="form-title",
),
rx.text(
"Explore custom plans and pricing",
| self.email_sent = False |
import httpx
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL
from pcweb.templates.webpage import webpage
class FormState(rx.State):
is_loading: bool = False
email_sent: bool = False
@rx.event
async def submit(self, form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
|
def form() -> rx.Component:
input_class_name = "box-border border-slate-5 focus:border-violet-9 focus:border-1 bg-slate-1 p-[0.5rem_0.75rem] border rounded-[10px] w-full font-small text-slate-11 placeholder:text-slate-9 outline-none focus:outline-none"
return rx.box(
rx.form(
rx.box(
rx.text(
"Contact the Sales Team",
class_name="text-2xl text-slate-12 font-bold leading-6 scroll-m-[7rem]",
id="form-title",
),
rx.text(
"Explore custom plans and pricing",
class_name="font-base text-slate-9",
),
class_name="flex flex-col gap-2 mb-4 items-start",
),
rx.box(
rx.hstack(
rx.el.input(
name="first_name",
type="text",
placeholder="First name *",
| def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
content,
class_name="bg-white-1 p-4 rounded-[1.625rem] w-[26rem]",
),
) |
form_data: dict):
self.is_loading = True
yield
try:
with httpx.Client() as client:
response = client.post(
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL,
json=form_data,
)
response.raise_for_status()
self.is_loading = False
self.email_sent = True
yield rx.toast.success("Demo request submitted successfully!")
except httpx.HTTPError:
self.is_loading = False
self.email_sent = False
yield rx.toast.error("Failed to submit request. Please try again later.")
def dialog(trigger: rx.Component, content: rx.Component) -> rx.Component:
return rx.dialog.root(
rx.dialog.trigger(
trigger,
),
rx.dialog.content(
content,
class_name="bg-white-1 p-4 rounded-[1.625rem] w-[26rem]",
),
)
def form() -> rx.Component:
|
return rx.box(
rx.form(
rx.box(
rx.text(
"Contact the Sales Team",
class_name="text-2xl text-slate-12 font-bold leading-6 scroll-m-[7rem]",
id="form-title",
),
rx.text(
"Explore custom plans and pricing",
class_name="font-base text-slate-9",
),
class_name="flex flex-col gap-2 mb-4 items-start",
),
rx.box(
rx.hstack(
rx.el.input(
name="first_name",
type="text",
placeholder="First name *",
required=True,
class_name=input_class_name,
),
rx.el.input(
name="last_name",
type="text",
placeholder="Last nam | input_class_name = "box-border border-slate-5 focus:border-violet-9 focus:border-1 bg-slate-1 p-[0.5rem_0.75rem] border rounded-[10px] w-full font-small text-slate-11 placeholder:text-slate-9 outline-none focus:outline-none" |
import reflex_ui as ui
from pcweb.components.docpage.navbar import navbar
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.docs import getting_started
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
def to_be_booked_title():
return rx.box(
rx.heading(
"Call Request Received!",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Our team will reach out to you shortly over email to schedule your call.",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
)
@rx.page(
route="/to-be-booked",
title="Call Request Received | Reflex",
meta=create_meta_tags(
title="Call Request Received | Reflex",
description="Your request has been received. Our team will reach out to you shortly via em | import reflex as rx | |
import reflex as rx
|
from pcweb.components.docpage.navbar import navbar
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.docs import getting_started
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
def to_be_booked_title():
return rx.box(
rx.heading(
"Call Request Received!",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Our team will reach out to you shortly over email to schedule your call.",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
)
@rx.page(
route="/to-be-booked",
title="Call Request Received | Reflex",
meta=create_meta_tags(
title="Call Request Received | Reflex",
description="Your request has been received. Our team will reach out to you shortly via email to schedule your ca | import reflex_ui as ui |
import reflex as rx
import reflex_ui as ui
|
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.docs import getting_started
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
def to_be_booked_title():
return rx.box(
rx.heading(
"Call Request Received!",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Our team will reach out to you shortly over email to schedule your call.",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
)
@rx.page(
route="/to-be-booked",
title="Call Request Received | Reflex",
meta=create_meta_tags(
title="Call Request Received | Reflex",
description="Your request has been received. Our team will reach out to you shortly via email to schedule your call.",
image="/previews/index_preview.webp",
| from pcweb.components.docpage.navbar import navbar |
import reflex as rx
import reflex_ui as ui
from pcweb.components.docpage.navbar import navbar
|
from pcweb.pages.docs import getting_started
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
def to_be_booked_title():
return rx.box(
rx.heading(
"Call Request Received!",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Our team will reach out to you shortly over email to schedule your call.",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
)
@rx.page(
route="/to-be-booked",
title="Call Request Received | Reflex",
meta=create_meta_tags(
title="Call Request Received | Reflex",
description="Your request has been received. Our team will reach out to you shortly via email to schedule your call.",
image="/previews/index_preview.webp",
),
)
def to_be_booked() -> rx.Component:
| from pcweb.meta.meta import create_meta_tags |
import reflex as rx
import reflex_ui as ui
from pcweb.components.docpage.navbar import navbar
from pcweb.meta.meta import create_meta_tags
|
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
def to_be_booked_title():
return rx.box(
rx.heading(
"Call Request Received!",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Our team will reach out to you shortly over email to schedule your call.",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
)
@rx.page(
route="/to-be-booked",
title="Call Request Received | Reflex",
meta=create_meta_tags(
title="Call Request Received | Reflex",
description="Your request has been received. Our team will reach out to you shortly via email to schedule your call.",
image="/previews/index_preview.webp",
),
)
def to_be_booked() -> rx.Component:
return rx.box(
index_colors(),
| from pcweb.pages.docs import getting_started |
import reflex as rx
import reflex_ui as ui
from pcweb.components.docpage.navbar import navbar
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.docs import getting_started
|
from pcweb.pages.framework.views.footer_index import footer_index
def to_be_booked_title():
return rx.box(
rx.heading(
"Call Request Received!",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Our team will reach out to you shortly over email to schedule your call.",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
)
@rx.page(
route="/to-be-booked",
title="Call Request Received | Reflex",
meta=create_meta_tags(
title="Call Request Received | Reflex",
description="Your request has been received. Our team will reach out to you shortly via email to schedule your call.",
image="/previews/index_preview.webp",
),
)
def to_be_booked() -> rx.Component:
return rx.box(
index_colors(),
navbar(),
rx.el.section(
to_be_boo | from pcweb.pages.framework.index_colors import index_colors |
import reflex as rx
import reflex_ui as ui
from pcweb.components.docpage.navbar import navbar
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.docs import getting_started
from pcweb.pages.framework.index_colors import index_colors
|
def to_be_booked_title():
return rx.box(
rx.heading(
"Call Request Received!",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Our team will reach out to you shortly over email to schedule your call.",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
)
@rx.page(
route="/to-be-booked",
title="Call Request Received | Reflex",
meta=create_meta_tags(
title="Call Request Received | Reflex",
description="Your request has been received. Our team will reach out to you shortly via email to schedule your call.",
image="/previews/index_preview.webp",
),
)
def to_be_booked() -> rx.Component:
return rx.box(
index_colors(),
navbar(),
rx.el.section(
to_be_booked_title(),
rx.box(
ui.button(
| from pcweb.pages.framework.views.footer_index import footer_index |
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page | from pcweb.route import Route | |
from pcweb.route import Route
|
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if | from .affiliates import affiliates as affiliates |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
|
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.ad | from .blog import blog_routes |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
|
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*do | from .booked import booked as booked |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
|
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_rout | from .customers.data.customers import customers_routes |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
|
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .customers.landing import customers as customers |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
|
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .databricks.databricks import databricks_page as databricks_page |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
|
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .demo.book_demo import book_demo as book_demo |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
|
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .docs import doc_routes |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
|
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .errors import errors as errors |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
|
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .faq import faq as faq |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
|
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .framework.framework import framework as framework |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
|
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .gallery import gallery as gallery |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
|
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .gallery.apps import gallery_apps_routes |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
|
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .hosting.hosting import hosting_landing as hosting_landing |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
|
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .landing.landing import landing as landing |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
|
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .page404 import page404 as page404 |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
|
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .pricing.pricing import pricing as pricing |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
|
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .sales import sales as sales |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
|
from .to_be_booked import to_be_booked as to_be_booked
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .security.security import security_page as security_page |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
|
from .use_cases.use_cases import use_cases_page as use_cases_page
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .to_be_booked import to_be_booked as to_be_booked |
from pcweb.route import Route
from .affiliates import affiliates as affiliates
from .blog import blog_routes
from .booked import booked as booked
from .customers.data.customers import customers_routes
from .customers.landing import customers as customers
from .databricks.databricks import databricks_page as databricks_page
from .demo.book_demo import book_demo as book_demo
from .docs import doc_routes
from .errors import errors as errors
from .faq import faq as faq
from .framework.framework import framework as framework
from .gallery import gallery as gallery
from .gallery.apps import gallery_apps_routes
from .hosting.hosting import hosting_landing as hosting_landing
from .landing.landing import landing as landing
from .page404 import page404 as page404
from .pricing.pricing import pricing as pricing
from .sales import sales as sales
from .security.security import security_page as security_page
from .to_be_booked import to_be_booked as to_be_booked
|
routes = [
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],
*blog_routes,
*doc_routes,
*customers_routes,
*gallery_apps_routes,
]
| from .use_cases.use_cases import use_cases_page as use_cases_page |
from pcweb.components.button import button
from pcweb.components.docpage.navbar import navbar
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
from pcweb.pages.hosting.views.features import grid
meta_tags = [
{"property": "og:url", "content": "https://reflex.dev/affiliates/"},
{"property": "og:type", "content": "website"},
{"property": "og:title", "content": "Reflex Affiliates · Earn by sharing Reflex"},
{
"property": "og:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"property": "og:image", "content": "/previews/affiliates_preview.webp"},
{"name": "twitter:card", "content": "summary_large_image"},
{"property": "twitter:domain", "content": "reflex.dev"},
{"property": "twitter:url", "content": "https://reflex.dev/affiliates/"},
{"name": "twitter:title", "content": "Reflex Affiliate Program"},
{
"nam | import reflex as rx | |
import reflex as rx
|
from pcweb.components.docpage.navbar import navbar
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
from pcweb.pages.hosting.views.features import grid
meta_tags = [
{"property": "og:url", "content": "https://reflex.dev/affiliates/"},
{"property": "og:type", "content": "website"},
{"property": "og:title", "content": "Reflex Affiliates · Earn by sharing Reflex"},
{
"property": "og:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"property": "og:image", "content": "/previews/affiliates_preview.webp"},
{"name": "twitter:card", "content": "summary_large_image"},
{"property": "twitter:domain", "content": "reflex.dev"},
{"property": "twitter:url", "content": "https://reflex.dev/affiliates/"},
{"name": "twitter:title", "content": "Reflex Affiliate Program"},
{
"name": "twitter:description",
"content" | from pcweb.components.button import button |
import reflex as rx
from pcweb.components.button import button
|
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
from pcweb.pages.hosting.views.features import grid
meta_tags = [
{"property": "og:url", "content": "https://reflex.dev/affiliates/"},
{"property": "og:type", "content": "website"},
{"property": "og:title", "content": "Reflex Affiliates · Earn by sharing Reflex"},
{
"property": "og:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"property": "og:image", "content": "/previews/affiliates_preview.webp"},
{"name": "twitter:card", "content": "summary_large_image"},
{"property": "twitter:domain", "content": "reflex.dev"},
{"property": "twitter:url", "content": "https://reflex.dev/affiliates/"},
{"name": "twitter:title", "content": "Reflex Affiliate Program"},
{
"name": "twitter:description",
"content": "Join the Reflex affiliate program and earn rewar | from pcweb.components.docpage.navbar import navbar |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.docpage.navbar import navbar
|
from pcweb.pages.framework.views.footer_index import footer_index
from pcweb.pages.hosting.views.features import grid
meta_tags = [
{"property": "og:url", "content": "https://reflex.dev/affiliates/"},
{"property": "og:type", "content": "website"},
{"property": "og:title", "content": "Reflex Affiliates · Earn by sharing Reflex"},
{
"property": "og:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"property": "og:image", "content": "/previews/affiliates_preview.webp"},
{"name": "twitter:card", "content": "summary_large_image"},
{"property": "twitter:domain", "content": "reflex.dev"},
{"property": "twitter:url", "content": "https://reflex.dev/affiliates/"},
{"name": "twitter:title", "content": "Reflex Affiliate Program"},
{
"name": "twitter:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"name": "twitter:image", "content": | from pcweb.pages.framework.index_colors import index_colors |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.docpage.navbar import navbar
from pcweb.pages.framework.index_colors import index_colors
|
from pcweb.pages.hosting.views.features import grid
meta_tags = [
{"property": "og:url", "content": "https://reflex.dev/affiliates/"},
{"property": "og:type", "content": "website"},
{"property": "og:title", "content": "Reflex Affiliates · Earn by sharing Reflex"},
{
"property": "og:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"property": "og:image", "content": "/previews/affiliates_preview.webp"},
{"name": "twitter:card", "content": "summary_large_image"},
{"property": "twitter:domain", "content": "reflex.dev"},
{"property": "twitter:url", "content": "https://reflex.dev/affiliates/"},
{"name": "twitter:title", "content": "Reflex Affiliate Program"},
{
"name": "twitter:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"name": "twitter:image", "content": "/previews/affiliates_preview.webp"},
]
def affiliates_title():
| from pcweb.pages.framework.views.footer_index import footer_index |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.docpage.navbar import navbar
from pcweb.pages.framework.index_colors import index_colors
from pcweb.pages.framework.views.footer_index import footer_index
|
meta_tags = [
{"property": "og:url", "content": "https://reflex.dev/affiliates/"},
{"property": "og:type", "content": "website"},
{"property": "og:title", "content": "Reflex Affiliates · Earn by sharing Reflex"},
{
"property": "og:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"property": "og:image", "content": "/previews/affiliates_preview.webp"},
{"name": "twitter:card", "content": "summary_large_image"},
{"property": "twitter:domain", "content": "reflex.dev"},
{"property": "twitter:url", "content": "https://reflex.dev/affiliates/"},
{"name": "twitter:title", "content": "Reflex Affiliate Program"},
{
"name": "twitter:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"name": "twitter:image", "content": "/previews/affiliates_preview.webp"},
]
def affiliates_title():
return rx.box(
rx.heading(
" | from pcweb.pages.hosting.views.features import grid |
ndex import footer_index
from pcweb.pages.hosting.views.features import grid
meta_tags = [
{"property": "og:url", "content": "https://reflex.dev/affiliates/"},
{"property": "og:type", "content": "website"},
{"property": "og:title", "content": "Reflex Affiliates · Earn by sharing Reflex"},
{
"property": "og:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"property": "og:image", "content": "/previews/affiliates_preview.webp"},
{"name": "twitter:card", "content": "summary_large_image"},
{"property": "twitter:domain", "content": "reflex.dev"},
{"property": "twitter:url", "content": "https://reflex.dev/affiliates/"},
{"name": "twitter:title", "content": "Reflex Affiliate Program"},
{
"name": "twitter:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"name": "twitter:image", "content": "/previews/affiliates_preview.webp"},
]
|
def feature_card(icon: str, title: str, description: str) -> rx.Component:
return rx.box(
rx.box(
rx.box(
rx.icon(tag=icon, class_name="!text-slate-12 !size-5"),
rx.text(title, class_name="text-slate-12 text-base font-medium"),
class_name="flex flex-row gap-2 items-center",
),
rx.text(
description, class_name="text-slate-9 font-medium text-sm text-start"
),
class_name="flex flex-col gap-2 w-[22rem] h-[9rem] px-1 lg:px-8 py-6",
),
class_name="border-slate-3 border-b box-border",
)
def step_box(step_number: str) -> rx.Component:
"""Helper function to create a step number box with consistent styling."""
return rx.box(
rx.box(
color=rx.color("accent", 5),
class_name="w-full h-[5rem] flex items-center justify-center p-3 col-start-2 row-span-full row-start-1 bg-[size:10px_10px] bg-fixed bg-[ima | def affiliates_title():
return rx.box(
rx.heading(
"Reflex Affiliate Program",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Become a Reflex partner in under 5 minutes and start earning 50% of your referrals’ subscription revenue for their first six months—join today!",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
) |
: "twitter:card", "content": "summary_large_image"},
{"property": "twitter:domain", "content": "reflex.dev"},
{"property": "twitter:url", "content": "https://reflex.dev/affiliates/"},
{"name": "twitter:title", "content": "Reflex Affiliate Program"},
{
"name": "twitter:description",
"content": "Join the Reflex affiliate program and earn rewards today.",
},
{"name": "twitter:image", "content": "/previews/affiliates_preview.webp"},
]
def affiliates_title():
return rx.box(
rx.heading(
"Reflex Affiliate Program",
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
),
rx.text(
"Become a Reflex partner in under 5 minutes and start earning 50% of your referrals’ subscription revenue for their first six months—join today!",
class_name="font-md text-balance text-slate-9",
),
class_name="section-header",
)
|
def step_box(step_number: str) -> rx.Component:
"""Helper function to create a step number box with consistent styling."""
return rx.box(
rx.box(
color=rx.color("accent", 5),
class_name="w-full h-[5rem] flex items-center justify-center p-3 col-start-2 row-span-full row-start-1 bg-[size:10px_10px] bg-fixed bg-[image:repeating-linear-gradient(315deg,currentColor_0,currentColor_1px,_transparent_0,_transparent_50%)]",
),
display=["none" if i <= 3 else "flex" for i in range(6)],
color=rx.color("accent", 4),
class_name="w-full h-[5rem] flex items-center justify-center py-3 col-start-2 row-span-full row-start-1 bg-[size:10px_10px] bg-fixed bg-[image:repeating-linear-gradient(-315deg,currentColor_0,currentColor_1px,_transparent_0,_transparent_50%)]",
)
def spacer() -> rx.Component:
"""Helper function to create a consistent height spacer."""
return rx.box(class_name="h-[4rem]")
def features() -> rx.Compon | def feature_card(icon: str, title: str, description: str) -> rx.Component:
return rx.box(
rx.box(
rx.box(
rx.icon(tag=icon, class_name="!text-slate-12 !size-5"),
rx.text(title, class_name="text-slate-12 text-base font-medium"),
class_name="flex flex-row gap-2 items-center",
),
rx.text(
description, class_name="text-slate-9 font-medium text-sm text-start"
),
class_name="flex flex-col gap-2 w-[22rem] h-[9rem] px-1 lg:px-8 py-6",
),
class_name="border-slate-3 border-b box-border",
) |
),
class_name="flex flex-col gap-2 w-[22rem] h-[9rem] px-1 lg:px-8 py-6",
),
class_name="border-slate-3 border-b box-border",
)
def step_box(step_number: str) -> rx.Component:
"""Helper function to create a step number box with consistent styling."""
return rx.box(
rx.box(
color=rx.color("accent", 5),
class_name="w-full h-[5rem] flex items-center justify-center p-3 col-start-2 row-span-full row-start-1 bg-[size:10px_10px] bg-fixed bg-[image:repeating-linear-gradient(315deg,currentColor_0,currentColor_1px,_transparent_0,_transparent_50%)]",
),
display=["none" if i <= 3 else "flex" for i in range(6)],
color=rx.color("accent", 4),
class_name="w-full h-[5rem] flex items-center justify-center py-3 col-start-2 row-span-full row-start-1 bg-[size:10px_10px] bg-fixed bg-[image:repeating-linear-gradient(-315deg,currentColor_0,currentColor_1px,_transparent_0,_transparent_50%)]",
)
|
def features() -> rx.Component:
return rx.el.section(
grid(),
rx.box(
rx.box(
feature_card(
"frame",
"Submit Your Application",
"Provide your basic info to get a unique affiliate link.",
),
feature_card(
"audio-lines",
"Track Your Referrals",
"Log in to your Affiliate Dashboard to see clicks, sign‑ups, and revenue data.", # noqa: RUF001
),
spacer(),
class_name="flex flex-col pt-8 lg:border-r border-slate-3",
),
rx.box(
# Right column with steps 1 and 3
spacer(),
feature_card(
"share-2",
"Share Reflex",
"Post your link anywhere—blog posts, social media, email newsletters, even your YouTube channel.",
| def spacer() -> rx.Component:
"""Helper function to create a consistent height spacer."""
return rx.box(class_name="h-[4rem]") |
),
class_name="flex flex-col",
),
rx.box(
feature_card(
"dollar-sign",
"Get Paid",
"We'll send you 50% of each referred user's subscription revenue for their first six months.",
),
class_name="flex flex-col",
),
class_name="grid grid-cols-1 md:grid-cols-2 gap-4",
),
rx.box(
rx.link(
button("Become a Partner", variant="primary", size="xl"),
href="https://cal.com/team/reflex/affiliate-program",
is_external=True,
class_name="p-3 border border-slate-3 rounded-[1.375rem] border-solid lg:mt-0 mt-4",
),
class_name="flex items-center justify-center",
),
class_name="flex flex-col justify-center",
)
@rx.page(
route="/affiliates",
title="Affiliates · Reflex",
meta=meta_tags,
)
| def affiliates() -> rx.Component:
return rx.box(
index_colors(),
navbar(),
rx.el.section(
affiliates_title(),
rx.box(
features(),
class_name="hidden lg:block", # Hide by default, show on lg screens and up
),
rx.box(
features_small_screen(),
class_name="block lg:hidden", # Show by default, hide on lg screens and up
),
id="affiliates",
class_name="section-content",
),
footer_index(),
class_name="flex flex-col w-full max-w-[94.5rem] justify-center items-center mx-auto px-4 lg:px-5 relative overflow-hidden",
) | |
from pcweb.components.icons.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.meta.meta import create_meta_tags
from pcweb.templates.webpage import webpage
from .page import page
from .paths import blog_data
def first_post_card(meta: dict, path: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=meta["image"],
loading="lazy",
alt="Image preview for blog post: " + str(meta["title"]),
class_name="group-hover:scale-105 w-full h-full transition-transform duration-150 ease-out object-center object-cover",
),
class_name="relative flex-shrink-0 w-1/2 h-[18rem] overflow-hidden border-r border-solid border-slate-5",
),
rx.box(
rx.box(
rx.el.h4(
meta["title"],
class_name="font-x-large text-slate-12",
),
rx.moment(
| import reflex as rx | |
import reflex as rx
|
from pcweb.components.webpage.comps import h1_title
from pcweb.meta.meta import create_meta_tags
from pcweb.templates.webpage import webpage
from .page import page
from .paths import blog_data
def first_post_card(meta: dict, path: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=meta["image"],
loading="lazy",
alt="Image preview for blog post: " + str(meta["title"]),
class_name="group-hover:scale-105 w-full h-full transition-transform duration-150 ease-out object-center object-cover",
),
class_name="relative flex-shrink-0 w-1/2 h-[18rem] overflow-hidden border-r border-solid border-slate-5",
),
rx.box(
rx.box(
rx.el.h4(
meta["title"],
class_name="font-x-large text-slate-12",
),
rx.moment(
str(meta["date"]),
f | from pcweb.components.icons.icons import get_icon |
import reflex as rx
from pcweb.components.icons.icons import get_icon
|
from pcweb.meta.meta import create_meta_tags
from pcweb.templates.webpage import webpage
from .page import page
from .paths import blog_data
def first_post_card(meta: dict, path: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=meta["image"],
loading="lazy",
alt="Image preview for blog post: " + str(meta["title"]),
class_name="group-hover:scale-105 w-full h-full transition-transform duration-150 ease-out object-center object-cover",
),
class_name="relative flex-shrink-0 w-1/2 h-[18rem] overflow-hidden border-r border-solid border-slate-5",
),
rx.box(
rx.box(
rx.el.h4(
meta["title"],
class_name="font-x-large text-slate-12",
),
rx.moment(
str(meta["date"]),
format="MMM DD, YYYY",
class_name | from pcweb.components.webpage.comps import h1_title |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from pcweb.components.webpage.comps import h1_title
|
from pcweb.templates.webpage import webpage
from .page import page
from .paths import blog_data
def first_post_card(meta: dict, path: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=meta["image"],
loading="lazy",
alt="Image preview for blog post: " + str(meta["title"]),
class_name="group-hover:scale-105 w-full h-full transition-transform duration-150 ease-out object-center object-cover",
),
class_name="relative flex-shrink-0 w-1/2 h-[18rem] overflow-hidden border-r border-solid border-slate-5",
),
rx.box(
rx.box(
rx.el.h4(
meta["title"],
class_name="font-x-large text-slate-12",
),
rx.moment(
str(meta["date"]),
format="MMM DD, YYYY",
class_name="font-normal text-slate-9 text-sm",
| from pcweb.meta.meta import create_meta_tags |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.meta.meta import create_meta_tags
|
from .page import page
from .paths import blog_data
def first_post_card(meta: dict, path: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=meta["image"],
loading="lazy",
alt="Image preview for blog post: " + str(meta["title"]),
class_name="group-hover:scale-105 w-full h-full transition-transform duration-150 ease-out object-center object-cover",
),
class_name="relative flex-shrink-0 w-1/2 h-[18rem] overflow-hidden border-r border-solid border-slate-5",
),
rx.box(
rx.box(
rx.el.h4(
meta["title"],
class_name="font-x-large text-slate-12",
),
rx.moment(
str(meta["date"]),
format="MMM DD, YYYY",
class_name="font-normal text-slate-9 text-sm",
),
class_name="flex | from pcweb.templates.webpage import webpage |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.meta.meta import create_meta_tags
from pcweb.templates.webpage import webpage
|
from .paths import blog_data
def first_post_card(meta: dict, path: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=meta["image"],
loading="lazy",
alt="Image preview for blog post: " + str(meta["title"]),
class_name="group-hover:scale-105 w-full h-full transition-transform duration-150 ease-out object-center object-cover",
),
class_name="relative flex-shrink-0 w-1/2 h-[18rem] overflow-hidden border-r border-solid border-slate-5",
),
rx.box(
rx.box(
rx.el.h4(
meta["title"],
class_name="font-x-large text-slate-12",
),
rx.moment(
str(meta["date"]),
format="MMM DD, YYYY",
class_name="font-normal text-slate-9 text-sm",
),
class_name="flex flex-col gap-1 p-[0.625r | from .page import page |
import reflex as rx
from pcweb.components.icons.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.meta.meta import create_meta_tags
from pcweb.templates.webpage import webpage
from .page import page
|
def first_post_card(meta: dict, path: str) -> rx.Component:
return rx.link(
rx.box(
rx.image(
src=meta["image"],
loading="lazy",
alt="Image preview for blog post: " + str(meta["title"]),
class_name="group-hover:scale-105 w-full h-full transition-transform duration-150 ease-out object-center object-cover",
),
class_name="relative flex-shrink-0 w-1/2 h-[18rem] overflow-hidden border-r border-solid border-slate-5",
),
rx.box(
rx.box(
rx.el.h4(
meta["title"],
class_name="font-x-large text-slate-12",
),
rx.moment(
str(meta["date"]),
format="MMM DD, YYYY",
class_name="font-normal text-slate-9 text-sm",
),
class_name="flex flex-col gap-1 p-[0.625rem_0.75rem_0rem_0.75rem] w-fu | from .paths import blog_data |
"Read more",
class_name="font-small text-slate-9",
),
get_icon(icon="new_tab", class_name="p-[5px]"),
class_name="flex items-center border-slate-5 bg-slate-1 hover:bg-slate-3 shadow-small pl-[5px] border rounded-md w-auto max-w-full text-slate-9 transition-bg cursor-pointer overflow-hidden",
),
class_name="flex flex-row justify-between items-center gap-1 w-full h-auto",
),
class_name="flex flex-col justify-between p-[0rem_0.75rem_0.75rem_0.75rem] w-full h-full",
),
class_name="flex flex-col gap-[10px] w-full h-full",
),
href=path,
is_external=False,
underline="none",
class_name="box-border flex flex-col flex-shrink-0 border-slate-5 bg-slate-1 shadow-large border border-solid rounded-xl w-full h-[390px] overflow-hidden group",
)
|
def component_grid() -> rx.Component:
posts = []
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/ | def first_post() -> rx.Component:
for path, document in blog_data.items():
if path == next(iter(blog_data.keys())):
return first_post_card(meta=document.metadata, path=f"/blog/{path}") |
class_name="font-small text-slate-9",
),
get_icon(icon="new_tab", class_name="p-[5px]"),
class_name="flex items-center border-slate-5 bg-slate-1 hover:bg-slate-3 shadow-small pl-[5px] border rounded-md w-auto max-w-full text-slate-9 transition-bg cursor-pointer overflow-hidden",
),
class_name="flex flex-row justify-between items-center gap-1 w-full h-auto",
),
class_name="flex flex-col justify-between p-[0rem_0.75rem_0.75rem_0.75rem] w-full h-full",
),
class_name="flex flex-col gap-[10px] w-full h-full",
),
href=path,
is_external=False,
underline="none",
class_name="box-border flex flex-col flex-shrink-0 border-slate-5 bg-slate-1 shadow-large border border-solid rounded-xl w-full h-[390px] overflow-hidden group",
)
def first_post() -> rx.Component:
|
def component_grid() -> rx.Component:
posts = []
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/ | for path, document in blog_data.items():
if path == next(iter(blog_data.keys())):
return first_post_card(meta=document.metadata, path=f"/blog/{path}") |
t-slate-9",
),
get_icon(icon="new_tab", class_name="p-[5px]"),
class_name="flex items-center border-slate-5 bg-slate-1 hover:bg-slate-3 shadow-small pl-[5px] border rounded-md w-auto max-w-full text-slate-9 transition-bg cursor-pointer overflow-hidden",
),
class_name="flex flex-row justify-between items-center gap-1 w-full h-auto",
),
class_name="flex flex-col justify-between p-[0rem_0.75rem_0.75rem_0.75rem] w-full h-full",
),
class_name="flex flex-col gap-[10px] w-full h-full",
),
href=path,
is_external=False,
underline="none",
class_name="box-border flex flex-col flex-shrink-0 border-slate-5 bg-slate-1 shadow-large border border-solid rounded-xl w-full h-[390px] overflow-hidden group",
)
def first_post() -> rx.Component:
for path, document in blog_data.items():
|
def component_grid() -> rx.Component:
posts = []
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/ | if path == next(iter(blog_data.keys())):
return first_post_card(meta=document.metadata, path=f"/blog/{path}") |
class_name="flex items-center border-slate-5 bg-slate-1 hover:bg-slate-3 shadow-small pl-[5px] border rounded-md w-auto max-w-full text-slate-9 transition-bg cursor-pointer overflow-hidden",
),
class_name="flex flex-row justify-between items-center gap-1 w-full h-auto",
),
class_name="flex flex-col justify-between p-[0rem_0.75rem_0.75rem_0.75rem] w-full h-full",
),
class_name="flex flex-col gap-[10px] w-full h-full",
),
href=path,
is_external=False,
underline="none",
class_name="box-border flex flex-col flex-shrink-0 border-slate-5 bg-slate-1 shadow-large border border-solid rounded-xl w-full h-[390px] overflow-hidden group",
)
def first_post() -> rx.Component:
for path, document in blog_data.items():
if path == next(iter(blog_data.keys())):
return first_post_card(meta=document.metadata, path=f"/blog/{path}")
|
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/blog/{path}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = webpage(
path=route,
title=document.metadata["title"] + " · Reflex Blog",
description=document.metadata["description"],
image=document.metadata["image"],
meta=create_meta_tags(
title=document.metadata[" | def component_grid() -> rx.Component:
posts = []
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
) |
order-slate-5 bg-slate-1 hover:bg-slate-3 shadow-small pl-[5px] border rounded-md w-auto max-w-full text-slate-9 transition-bg cursor-pointer overflow-hidden",
),
class_name="flex flex-row justify-between items-center gap-1 w-full h-auto",
),
class_name="flex flex-col justify-between p-[0rem_0.75rem_0.75rem_0.75rem] w-full h-full",
),
class_name="flex flex-col gap-[10px] w-full h-full",
),
href=path,
is_external=False,
underline="none",
class_name="box-border flex flex-col flex-shrink-0 border-slate-5 bg-slate-1 shadow-large border border-solid rounded-xl w-full h-[390px] overflow-hidden group",
)
def first_post() -> rx.Component:
for path, document in blog_data.items():
if path == next(iter(blog_data.keys())):
return first_post_card(meta=document.metadata, path=f"/blog/{path}")
def component_grid() -> rx.Component:
|
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/blog/{path}"
title = rx.utils.format.to_snake_case( | posts = [] |
g-slate-1 hover:bg-slate-3 shadow-small pl-[5px] border rounded-md w-auto max-w-full text-slate-9 transition-bg cursor-pointer overflow-hidden",
),
class_name="flex flex-row justify-between items-center gap-1 w-full h-auto",
),
class_name="flex flex-col justify-between p-[0rem_0.75rem_0.75rem_0.75rem] w-full h-full",
),
class_name="flex flex-col gap-[10px] w-full h-full",
),
href=path,
is_external=False,
underline="none",
class_name="box-border flex flex-col flex-shrink-0 border-slate-5 bg-slate-1 shadow-large border border-solid rounded-xl w-full h-[390px] overflow-hidden group",
)
def first_post() -> rx.Component:
for path, document in blog_data.items():
if path == next(iter(blog_data.keys())):
return first_post_card(meta=document.metadata, path=f"/blog/{path}")
def component_grid() -> rx.Component:
posts = []
|
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/blog/{path}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = webpage(
path=route,
title=document.metadata["title"] + " · Re | for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}")) |
0.75rem_0.75rem_0.75rem] w-full h-full",
),
class_name="flex flex-col gap-[10px] w-full h-full",
),
href=path,
is_external=False,
underline="none",
class_name="box-border flex flex-col flex-shrink-0 border-slate-5 bg-slate-1 shadow-large border border-solid rounded-xl w-full h-[390px] overflow-hidden group",
)
def first_post() -> rx.Component:
for path, document in blog_data.items():
if path == next(iter(blog_data.keys())):
return first_post_card(meta=document.metadata, path=f"/blog/{path}")
def component_grid() -> rx.Component:
posts = []
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
|
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/blog/{path}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = webpage(
path=route,
title=document.metadata["title"] + " · Reflex Blog",
description=document.metadata["description"],
image=document.metadata["image"],
meta=create_meta_tags(
title=document.metadata["title"],
description=document.metadata["description"],
image=document.metadata["image"],
url=f"https://reflex.dev{route}",
),
)(lambda doc=document, route=route: page(doc, route))
# Add the route to the list of routes.
blog_routes.append(comp)
| def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
) |
next(iter(blog_data.keys())):
return first_post_card(meta=document.metadata, path=f"/blog/{path}")
def component_grid() -> rx.Component:
posts = []
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
|
for path, document in blog_data.items():
# Get the docpage component.
route = f"/blog/{path}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = webpage(
path=route,
title=document.metadata["title"] + " · Reflex Blog",
description=document.metadata["description"],
image=document.metadata["image"],
meta=create_meta_tags(
title=document.metadata["title"],
description=document.metadata["description"],
image=document.metadata["image"],
url=f"https://reflex.dev{route}",
),
)(lambda doc=document, route=route: page(doc, route))
# Add the route to the list of routes.
blog_routes.append(comp)
| blog_routes = [blogs] |
og/{path}")
def component_grid() -> rx.Component:
posts = []
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
|
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = webpage(
path=route,
title=document.metadata["title"] + " · Reflex Blog",
description=document.metadata["description"],
image=document.metadata["image"],
meta=create_meta_tags(
title=document.metadata["title"],
description=document.metadata["description"],
image=document.metadata["image"],
url=f"https://reflex.dev{route}",
),
)(lambda doc=document, route=route: page(doc, route))
# Add the route to the list of routes.
blog_routes.append(comp)
| route = f"/blog/{path}" |
grid() -> rx.Component:
posts = []
for path, document in list(blog_data.items()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/blog/{path}"
|
comp = webpage(
path=route,
title=document.metadata["title"] + " · Reflex Blog",
description=document.metadata["description"],
image=document.metadata["image"],
meta=create_meta_tags(
title=document.metadata["title"],
description=document.metadata["description"],
image=document.metadata["image"],
url=f"https://reflex.dev{route}",
),
)(lambda doc=document, route=route: page(doc, route))
# Add the route to the list of routes.
blog_routes.append(comp)
| title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", "")) |
()):
posts.append(card_content(meta=document.metadata, path=f"/blog/{path}"))
return rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 lg:[&>*:first-child]:hidden",
)
@webpage(path="/blog", title="Reflex Blog")
def blogs():
return rx.el.section(
rx.el.header(
h1_title(title="Blog"),
rx.el.h2(
"Reflex is the open-source framework empowering Python developers to build web apps faster.",
class_name="font-md text-balance text-slate-10",
),
class_name="pb-4 section-header",
),
first_post(),
component_grid(),
id="blog",
class_name="section-content",
)
blog_routes = [blogs]
for path, document in blog_data.items():
# Get the docpage component.
route = f"/blog/{path}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
|
# Add the route to the list of routes.
blog_routes.append(comp)
| comp = webpage(
path=route,
title=document.metadata["title"] + " · Reflex Blog",
description=document.metadata["description"],
image=document.metadata["image"],
meta=create_meta_tags(
title=document.metadata["title"],
description=document.metadata["description"],
image=document.metadata["image"],
url=f"https://reflex.dev{route}",
),
)(lambda doc=document, route=route: page(doc, route)) |
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
| import reflex as rx | |
import reflex as rx
|
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[ | from pcweb.components.icons import get_icon |
import reflex as rx
from pcweb.components.icons import get_icon
|
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
| from pcweb.components.webpage.comps import h1_title |
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
|
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : c | from pcweb.flexdown import xd2 as xd |
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
|
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
| from .paths import blog_data |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.