instruction stringlengths 0 1k | input stringlengths 1 1k | output stringlengths 10 6.51k |
|---|---|---|
s.value,
side="bottom",
),
),
),
min=0,
max=COMPUTE_TABLE_KEYS.length() - 1,
step=1,
value=machine.index,
min_steps_between_values=1,
on_value_change=lambda new_machine_index: rx.cond(
machine.index != new_machine_index,
MachineState.update_machine(index, new_machine_index).throttle(150),
rx.noop(),
),
on_value_committed=lambda new_machine_index: MachineState.update_machine(
index, new_machine_index
),
class_name="w-full max-w-full",
),
on_mouse_enter=machine_tooltip_open_cs.set_value(True),
on_mouse_leave=machine_tooltip_open_cs.set_value(False),
class_name=ui.cn(
ui.card.class_names.ROOT,
"w-full lg:p-6 p-4 flex flex-col gap-4 bg-secondary-1 relative group",
),
)
| def slider_calculator() -> rx.Component:
return rx.el.section(
rx.el.div(
rx.el.h1(
"Pricing Calculator",
class_name="text-slate-12 lg:text-3xl text-2xl font-semibold text-center",
),
rx.el.h2(
"Only pay for what you use, nothing more.",
class_name="text-slate-9 text-2xl font-semibold text-center",
),
class_name="flex flex-col gap-1 justify-center border-b border-slate-4 w-full mx-auto px-6 pb-10",
),
rx.el.div(
rx.el.div(
messages_card(),
rx.foreach(
MachineState.machines,
lambda machine, index: machine_card(machine=machine, index=index),
),
ui.button(
ui.icon("PlusSignIcon"),
"Add App",
variant="secondary",
size="sm",
class_name="w-full",
on_click=MachineState.add_machine,
),
class_name="flex flex-col gap-4 w-full py-6",
),
total_credits_card(),
class_name="flex lg:flex-row flex-col lg:gap-10 gap-6 w-full px-6 h-full",
),
class_name="flex flex-col w-full max-w-[64.19rem] border-t-0 2xl:border-x divide-y divide-slate-4 2xl:border-b pt-[6rem] justify-center items-center",
) | |
import reflex_ui as ui
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.hosting_banner import HostingBannerState
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
CLOUD_HOSTING_FEATURES = [
("Max # Apps", "1", "5", "10"),
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
("Dedicated Machines", False, False, True),
("Custom Domains", "0", "5", "Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
]
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 comp | import reflex as rx | |
import reflex as rx
|
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.hosting_banner import HostingBannerState
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
CLOUD_HOSTING_FEATURES = [
("Max # Apps", "1", "5", "10"),
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
("Dedicated Machines", False, False, True),
("Custom Domains", "0", "5", "Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
]
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, | import reflex_ui as ui |
import reflex as rx
import reflex_ui as ui
|
from pcweb.components.hosting_banner import HostingBannerState
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
CLOUD_HOSTING_FEATURES = [
("Max # Apps", "1", "5", "10"),
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
("Dedicated Machines", False, False, True),
("Custom Domains", "0", "5", "Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
]
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, "On prem, custom"),
("HIPAA BAA", False, False | from reflex_ui.blocks.lemcal import lemcal_dialog |
import reflex as rx
import reflex_ui as ui
from reflex_ui.blocks.lemcal import lemcal_dialog
|
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
CLOUD_HOSTING_FEATURES = [
("Max # Apps", "1", "5", "10"),
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
("Dedicated Machines", False, False, True),
("Custom Domains", "0", "5", "Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
]
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, "On prem, custom"),
("HIPAA BAA", False, False, "On prem, custom"),
]
SUPPORT_FEATURES = [
(
"Cus | from pcweb.components.hosting_banner import HostingBannerState |
import reflex as rx
import reflex_ui as ui
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.hosting_banner import HostingBannerState
|
CLOUD_HOSTING_FEATURES = [
("Max # Apps", "1", "5", "10"),
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
("Dedicated Machines", False, False, True),
("Custom Domains", "0", "5", "Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
]
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, "On prem, custom"),
("HIPAA BAA", False, False, "On prem, custom"),
]
SUPPORT_FEATURES = [
(
"Customer Success",
"Discord/Github Community",
"Di | from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL |
import reflex as rx
import reflex_ui as ui
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.hosting_banner import HostingBannerState
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
|
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, "On prem, custom"),
("HIPAA BAA", False, False, "On prem, custom"),
]
SUPPORT_FEATURES = [
(
"Customer Success",
"Discord/Github Community",
"Discord/Github Community",
"Dedicated Support Channel",
),
(
"Onboarding",
"Documentation",
"Documentation",
"Get a forward deployed engineer to help you get started",
),
]
REFLEX_BUILD_BASIC_FEATURES = [
(
"Credits",
"50 daily credits (up to 150/month)",
"1000 monthly credits",
"Custom",
),
("Agent (10 Credits per msg)", True, True, True),
("Chat (1 Credit)", True, True, True),
]
REFLEX_BUILD | CLOUD_HOSTING_FEATURES = [
("Max # Apps", "1", "5", "10"),
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
("Dedicated Machines", False, False, True),
("Custom Domains", "0", "5", "Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
] |
import reflex as rx
import reflex_ui as ui
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.hosting_banner import HostingBannerState
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
CLOUD_HOSTING_FEATURES = [
("Max # Apps", "1", "5", "10"),
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
("Dedicated Machines", False, False, True),
("Custom Domains", "0", "5", "Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
]
|
SUPPORT_FEATURES = [
(
"Customer Success",
"Discord/Github Community",
"Discord/Github Community",
"Dedicated Support Channel",
),
(
"Onboarding",
"Documentation",
"Documentation",
"Get a forward deployed engineer to help you get started",
),
]
REFLEX_BUILD_BASIC_FEATURES = [
(
"Credits",
"50 daily credits (up to 150/month)",
"1000 monthly credits",
"Custom",
),
("Agent (10 Credits per msg)", True, True, True),
("Chat (1 Credit)", True, True, True),
]
REFLEX_BUILD_FUNCTIONALITY = [
(
"Privacy",
"Public Projects",
"Private Projects",
"Private Projects /Group based controls",
),
(
"Design",
"Custom Designs/Theming",
"Custom Designs/Theming",
"Custom Designs/Theming",
),
("Data", False, False, "Opt out of data training"),
("Collaborators", "Single", "Single", "Multiple Col | SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, "On prem, custom"),
("HIPAA BAA", False, False, "On prem, custom"),
] |
osting_banner import HostingBannerState
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
CLOUD_HOSTING_FEATURES = [
("Max # Apps", "1", "5", "10"),
("Max Machine Size", "1cpu, 1gb", "2cpu, 4gb shared", "Beyond 2cpu, 4gb"),
("Dedicated Machines", False, False, True),
("Custom Domains", "0", "5", "Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
]
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, "On prem, custom"),
("HIPAA BAA", False, False, "On prem, custom"),
]
|
REFLEX_BUILD_BASIC_FEATURES = [
(
"Credits",
"50 daily credits (up to 150/month)",
"1000 monthly credits",
"Custom",
),
("Agent (10 Credits per msg)", True, True, True),
("Chat (1 Credit)", True, True, True),
]
REFLEX_BUILD_FUNCTIONALITY = [
(
"Privacy",
"Public Projects",
"Private Projects",
"Private Projects /Group based controls",
),
(
"Design",
"Custom Designs/Theming",
"Custom Designs/Theming",
"Custom Designs/Theming",
),
("Data", False, False, "Opt out of data training"),
("Collaborators", "Single", "Single", "Multiple Collaborators/Editors"),
("Integration", "Basic 5", "Pro 100+", "Enterprise Integrations"),
("Download App Code", False, True, True),
]
REFLEX_BUILD_DEPLOYMENT = [
(
"Github",
"Public Repo Sync",
"Private Repo Sync",
"Enterprise Repo Sync Github, Gitlab, and Bitbucket.",
),
( | SUPPORT_FEATURES = [
(
"Customer Success",
"Discord/Github Community",
"Discord/Github Community",
"Dedicated Support Channel",
),
(
"Onboarding",
"Documentation",
"Documentation",
"Get a forward deployed engineer to help you get started",
),
] |
"Unlimited"),
("App Metrics", True, True, True),
("Log Retention", "1 hour", "7 day", "90-Day Log History"),
("Multiple Regions", False, True, True),
('"Built with Reflex" Attribution', True, False, False),
("One-click rollbacks", True, True, True),
]
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, "On prem, custom"),
("HIPAA BAA", False, False, "On prem, custom"),
]
SUPPORT_FEATURES = [
(
"Customer Success",
"Discord/Github Community",
"Discord/Github Community",
"Dedicated Support Channel",
),
(
"Onboarding",
"Documentation",
"Documentation",
"Get a forward deployed engineer to help you get started",
),
]
|
REFLEX_BUILD_FUNCTIONALITY = [
(
"Privacy",
"Public Projects",
"Private Projects",
"Private Projects /Group based controls",
),
(
"Design",
"Custom Designs/Theming",
"Custom Designs/Theming",
"Custom Designs/Theming",
),
("Data", False, False, "Opt out of data training"),
("Collaborators", "Single", "Single", "Multiple Collaborators/Editors"),
("Integration", "Basic 5", "Pro 100+", "Enterprise Integrations"),
("Download App Code", False, True, True),
]
REFLEX_BUILD_DEPLOYMENT = [
(
"Github",
"Public Repo Sync",
"Private Repo Sync",
"Enterprise Repo Sync Github, Gitlab, and Bitbucket.",
),
(
"One Click Deploy",
"Reflex Cloud",
"Reflex Cloud",
"Databricks, AWS, Azure, GCP, Other",
),
("SSH access", False, True, True),
]
def table_cell(content: str | rx.Component) -> rx.Component:
if isinstance(content, | REFLEX_BUILD_BASIC_FEATURES = [
(
"Credits",
"50 daily credits (up to 150/month)",
"1000 monthly credits",
"Custom",
),
("Agent (10 Credits per msg)", True, True, True),
("Chat (1 Credit)", True, True, True),
] |
ue, True),
]
SECURITY_FEATURES = [
("SSO/SAML", False, True, True),
("Role-based access control", False, False, True),
("On Premise Deployments", False, False, True),
("Audit Logs", False, False, True),
("HTTP/SSL", True, True, True),
("Web App Firewall", True, True, True),
("SOC 2 compliance", False, False, "On prem, custom"),
("HIPAA BAA", False, False, "On prem, custom"),
]
SUPPORT_FEATURES = [
(
"Customer Success",
"Discord/Github Community",
"Discord/Github Community",
"Dedicated Support Channel",
),
(
"Onboarding",
"Documentation",
"Documentation",
"Get a forward deployed engineer to help you get started",
),
]
REFLEX_BUILD_BASIC_FEATURES = [
(
"Credits",
"50 daily credits (up to 150/month)",
"1000 monthly credits",
"Custom",
),
("Agent (10 Credits per msg)", True, True, True),
("Chat (1 Credit)", True, True, True),
]
|
REFLEX_BUILD_DEPLOYMENT = [
(
"Github",
"Public Repo Sync",
"Private Repo Sync",
"Enterprise Repo Sync Github, Gitlab, and Bitbucket.",
),
(
"One Click Deploy",
"Reflex Cloud",
"Reflex Cloud",
"Databricks, AWS, Azure, GCP, Other",
),
("SSH access", False, True, True),
]
def table_cell(content: str | rx.Component) -> rx.Component:
if isinstance(content, bool):
return rx.el.td(
rx.el.div(
(
rx.icon("check", class_name="text-secondary-12", size=16)
if content
else ""
),
class_name="flex justify-center items-center",
),
class_name="p-4",
)
return rx.el.td(
content,
class_name="text-secondary-12 first:text-secondary-11 font-medium text-sm text-wrap p-4 first:text-left text-center",
)
def table_header_cell(content: st | REFLEX_BUILD_FUNCTIONALITY = [
(
"Privacy",
"Public Projects",
"Private Projects",
"Private Projects /Group based controls",
),
(
"Design",
"Custom Designs/Theming",
"Custom Designs/Theming",
"Custom Designs/Theming",
),
("Data", False, False, "Opt out of data training"),
("Collaborators", "Single", "Single", "Multiple Collaborators/Editors"),
("Integration", "Basic 5", "Pro 100+", "Enterprise Integrations"),
("Download App Code", False, True, True),
] |
cated Support Channel",
),
(
"Onboarding",
"Documentation",
"Documentation",
"Get a forward deployed engineer to help you get started",
),
]
REFLEX_BUILD_BASIC_FEATURES = [
(
"Credits",
"50 daily credits (up to 150/month)",
"1000 monthly credits",
"Custom",
),
("Agent (10 Credits per msg)", True, True, True),
("Chat (1 Credit)", True, True, True),
]
REFLEX_BUILD_FUNCTIONALITY = [
(
"Privacy",
"Public Projects",
"Private Projects",
"Private Projects /Group based controls",
),
(
"Design",
"Custom Designs/Theming",
"Custom Designs/Theming",
"Custom Designs/Theming",
),
("Data", False, False, "Opt out of data training"),
("Collaborators", "Single", "Single", "Multiple Collaborators/Editors"),
("Integration", "Basic 5", "Pro 100+", "Enterprise Integrations"),
("Download App Code", False, True, True),
]
|
def table_cell(content: str | rx.Component) -> rx.Component:
if isinstance(content, bool):
return rx.el.td(
rx.el.div(
(
rx.icon("check", class_name="text-secondary-12", size=16)
if content
else ""
),
class_name="flex justify-center items-center",
),
class_name="p-4",
)
return rx.el.td(
content,
class_name="text-secondary-12 first:text-secondary-11 font-medium text-sm text-wrap p-4 first:text-left text-center",
)
def table_header_cell(content: str | rx.Component) -> rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
| REFLEX_BUILD_DEPLOYMENT = [
(
"Github",
"Public Repo Sync",
"Private Repo Sync",
"Enterprise Repo Sync Github, Gitlab, and Bitbucket.",
),
(
"One Click Deploy",
"Reflex Cloud",
"Reflex Cloud",
"Databricks, AWS, Azure, GCP, Other",
),
("SSH access", False, True, True),
] |
(10 Credits per msg)", True, True, True),
("Chat (1 Credit)", True, True, True),
]
REFLEX_BUILD_FUNCTIONALITY = [
(
"Privacy",
"Public Projects",
"Private Projects",
"Private Projects /Group based controls",
),
(
"Design",
"Custom Designs/Theming",
"Custom Designs/Theming",
"Custom Designs/Theming",
),
("Data", False, False, "Opt out of data training"),
("Collaborators", "Single", "Single", "Multiple Collaborators/Editors"),
("Integration", "Basic 5", "Pro 100+", "Enterprise Integrations"),
("Download App Code", False, True, True),
]
REFLEX_BUILD_DEPLOYMENT = [
(
"Github",
"Public Repo Sync",
"Private Repo Sync",
"Enterprise Repo Sync Github, Gitlab, and Bitbucket.",
),
(
"One Click Deploy",
"Reflex Cloud",
"Reflex Cloud",
"Databricks, AWS, Azure, GCP, Other",
),
("SSH access", False, True, True),
]
|
def table_header_cell(content: str | rx.Component) -> rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
)
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
| def table_cell(content: str | rx.Component) -> rx.Component:
if isinstance(content, bool):
return rx.el.td(
rx.el.div(
(
rx.icon("check", class_name="text-secondary-12", size=16)
if content
else ""
),
class_name="flex justify-center items-center",
),
class_name="p-4",
)
return rx.el.td(
content,
class_name="text-secondary-12 first:text-secondary-11 font-medium text-sm text-wrap p-4 first:text-left text-center",
) |
, True, True, True),
]
REFLEX_BUILD_FUNCTIONALITY = [
(
"Privacy",
"Public Projects",
"Private Projects",
"Private Projects /Group based controls",
),
(
"Design",
"Custom Designs/Theming",
"Custom Designs/Theming",
"Custom Designs/Theming",
),
("Data", False, False, "Opt out of data training"),
("Collaborators", "Single", "Single", "Multiple Collaborators/Editors"),
("Integration", "Basic 5", "Pro 100+", "Enterprise Integrations"),
("Download App Code", False, True, True),
]
REFLEX_BUILD_DEPLOYMENT = [
(
"Github",
"Public Repo Sync",
"Private Repo Sync",
"Enterprise Repo Sync Github, Gitlab, and Bitbucket.",
),
(
"One Click Deploy",
"Reflex Cloud",
"Reflex Cloud",
"Databricks, AWS, Azure, GCP, Other",
),
("SSH access", False, True, True),
]
def table_cell(content: str | rx.Component) -> rx.Component:
|
return rx.el.td(
content,
class_name="text-secondary-12 first:text-secondary-11 font-medium text-sm text-wrap p-4 first:text-left text-center",
)
def table_header_cell(content: str | rx.Component) -> rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
| if isinstance(content, bool):
return rx.el.td(
rx.el.div(
(
rx.icon("check", class_name="text-secondary-12", size=16)
if content
else ""
),
class_name="flex justify-center items-center",
),
class_name="p-4",
) |
App Code", False, True, True),
]
REFLEX_BUILD_DEPLOYMENT = [
(
"Github",
"Public Repo Sync",
"Private Repo Sync",
"Enterprise Repo Sync Github, Gitlab, and Bitbucket.",
),
(
"One Click Deploy",
"Reflex Cloud",
"Reflex Cloud",
"Databricks, AWS, Azure, GCP, Other",
),
("SSH access", False, True, True),
]
def table_cell(content: str | rx.Component) -> rx.Component:
if isinstance(content, bool):
return rx.el.td(
rx.el.div(
(
rx.icon("check", class_name="text-secondary-12", size=16)
if content
else ""
),
class_name="flex justify-center items-center",
),
class_name="p-4",
)
return rx.el.td(
content,
class_name="text-secondary-12 first:text-secondary-11 font-medium text-sm text-wrap p-4 first:text-left text-center",
)
|
def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
)
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
# Add optional id and scroll margin for anchoring
if kwargs.get("anchor"):
header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_na | def table_header_cell(content: str | rx.Component) -> rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
) |
d Bitbucket.",
),
(
"One Click Deploy",
"Reflex Cloud",
"Reflex Cloud",
"Databricks, AWS, Azure, GCP, Other",
),
("SSH access", False, True, True),
]
def table_cell(content: str | rx.Component) -> rx.Component:
if isinstance(content, bool):
return rx.el.td(
rx.el.div(
(
rx.icon("check", class_name="text-secondary-12", size=16)
if content
else ""
),
class_name="flex justify-center items-center",
),
class_name="p-4",
)
return rx.el.td(
content,
class_name="text-secondary-12 first:text-secondary-11 font-medium text-sm text-wrap p-4 first:text-left text-center",
)
def table_header_cell(content: str | rx.Component) -> rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
|
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
)
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
# Add optional id and scroll margin for anchoring
if kwargs.get("anchor"):
header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_name} scroll-mt-24",
id=kwargs.get("anchor"),
)
# Create feature rows
feature_rows = [table_row(*feature_data) for feature_data in features]
return rx.el.table(
rx.el.thead(
header_row,
class_name=(
"sticky bg-slate-1 z-10",
rx.cond(Hosti | def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
) |
lex Cloud",
"Reflex Cloud",
"Databricks, AWS, Azure, GCP, Other",
),
("SSH access", False, True, True),
]
def table_cell(content: str | rx.Component) -> rx.Component:
if isinstance(content, bool):
return rx.el.td(
rx.el.div(
(
rx.icon("check", class_name="text-secondary-12", size=16)
if content
else ""
),
class_name="flex justify-center items-center",
),
class_name="p-4",
)
return rx.el.td(
content,
class_name="text-secondary-12 first:text-secondary-11 font-medium text-sm text-wrap p-4 first:text-left text-center",
)
def table_header_cell(content: str | rx.Component) -> rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
def table_row(*cells, is_header: bool = False) -> rx.Component:
|
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
)
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
# Add optional id and scroll margin for anchoring
if kwargs.get("anchor"):
header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_name} scroll-mt-24",
id=kwargs.get("anchor"),
)
# Create feature rows
feature_rows = [table_row(*feature_data) for feature_data in features]
return rx.el.table(
rx.el.th | if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
) |
if content
else ""
),
class_name="flex justify-center items-center",
),
class_name="p-4",
)
return rx.el.td(
content,
class_name="text-secondary-12 first:text-secondary-11 font-medium text-sm text-wrap p-4 first:text-left text-center",
)
def table_header_cell(content: str | rx.Component) -> rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
|
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
# Add optional id and scroll margin for anchoring
if kwargs.get("anchor"):
header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_name} scroll-mt-24",
id=kwargs.get("anchor"),
)
# Create feature rows
feature_rows = [table_row(*feature_data) for feature_data in features]
return rx.el.table(
rx.el.thead(
header_row,
class_name=(
"sticky bg-slate-1 z-10",
rx.cond(HostingBannerState.show_banner, "top-[161px]", "top-[105px]"),
),
),
rx.el.tbody(
*feature_rows,
class_name="divide-y divide-slate-4 bg-slate-1 border-t border-slate-4",
),
class_name="table-fixed w-full max-w-[64.19rem] border-x border-b border-slate-4 rounded-lg bg-slate-1",
)
def section_header(title: st | header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
) |
nt-medium text-sm text-wrap p-4 first:text-left text-center",
)
def table_header_cell(content: str | rx.Component) -> rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
)
# Create header row
|
# Add optional id and scroll margin for anchoring
if kwargs.get("anchor"):
header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_name} scroll-mt-24",
id=kwargs.get("anchor"),
)
# Create feature rows
feature_rows = [table_row(*feature_data) for feature_data in features]
return rx.el.table(
rx.el.thead(
header_row,
class_name=(
"sticky bg-slate-1 z-10",
rx.cond(HostingBannerState.show_banner, "top-[161px]", "top-[105px]"),
),
),
rx.el.tbody(
*feature_rows,
class_name="divide-y divide-slate-4 bg-slate-1 border-t border-slate-4",
),
class_name="table-fixed w-full max-w-[64.19rem] border-x border-b border-slate-4 rounded-lg bg-slate-1",
)
def section_header(title: str, subtitle: str) -> rx.Component:
"""Create a section header for pricing tables."""
r | header_row = table_row(header_content, *columns, is_header=True) |
rx.Component:
return rx.el.th(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
)
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
# Add optional id and scroll margin for anchoring
|
# Create feature rows
feature_rows = [table_row(*feature_data) for feature_data in features]
return rx.el.table(
rx.el.thead(
header_row,
class_name=(
"sticky bg-slate-1 z-10",
rx.cond(HostingBannerState.show_banner, "top-[161px]", "top-[105px]"),
),
),
rx.el.tbody(
*feature_rows,
class_name="divide-y divide-slate-4 bg-slate-1 border-t border-slate-4",
),
class_name="table-fixed w-full max-w-[64.19rem] border-x border-b border-slate-4 rounded-lg bg-slate-1",
)
def section_header(title: str, subtitle: str) -> rx.Component:
"""Create a section header for pricing tables."""
return rx.box(
rx.el.h3(
title,
class_name="text-slate-12 text-3xl font-semibold text-center",
),
rx.el.p(
subtitle,
class_name="text-slate-9 text-xl font-semibold text-center",
),
| if kwargs.get("anchor"):
header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_name} scroll-mt-24",
id=kwargs.get("anchor"),
) |
(
content,
class_name="text-slate-12 font-semibold text-lg p-4 first:text-left",
)
def table_row(*cells, is_header: bool = False) -> rx.Component:
if is_header:
return rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
)
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
# Add optional id and scroll margin for anchoring
if kwargs.get("anchor"):
|
# Create feature rows
feature_rows = [table_row(*feature_data) for feature_data in features]
return rx.el.table(
rx.el.thead(
header_row,
class_name=(
"sticky bg-slate-1 z-10",
rx.cond(HostingBannerState.show_banner, "top-[161px]", "top-[105px]"),
),
),
rx.el.tbody(
*feature_rows,
class_name="divide-y divide-slate-4 bg-slate-1 border-t border-slate-4",
),
class_name="table-fixed w-full max-w-[64.19rem] border-x border-b border-slate-4 rounded-lg bg-slate-1",
)
def section_header(title: str, subtitle: str) -> rx.Component:
"""Create a section header for pricing tables."""
return rx.box(
rx.el.h3(
title,
class_name="text-slate-12 text-3xl font-semibold text-center",
),
rx.el.p(
subtitle,
class_name="text-slate-9 text-xl font-semibold text-center",
),
| header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_name} scroll-mt-24",
id=kwargs.get("anchor"),
) |
rn rx.el.tr(
*[table_header_cell(cell) for cell in cells],
class_name="px-10",
)
return rx.el.tr(
*[table_cell(cell) for cell in cells],
class_name="bg-slate-1 hover:bg-slate-2",
)
def pricing_table(
title: str, icon: str, columns: list[str], features: list[tuple], **kwargs
) -> rx.Component:
header_content = rx.el.div(
ui.icon(icon, class_name="text-secondary-11", size=20),
rx.el.span(title, class_name="text-secondary-12 font-semibold text-xl"),
class_name="flex items-center gap-2.5 flex-row w-full bg-slate-1",
)
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
# Add optional id and scroll margin for anchoring
if kwargs.get("anchor"):
header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_name} scroll-mt-24",
id=kwargs.get("anchor"),
)
# Create feature rows
|
return rx.el.table(
rx.el.thead(
header_row,
class_name=(
"sticky bg-slate-1 z-10",
rx.cond(HostingBannerState.show_banner, "top-[161px]", "top-[105px]"),
),
),
rx.el.tbody(
*feature_rows,
class_name="divide-y divide-slate-4 bg-slate-1 border-t border-slate-4",
),
class_name="table-fixed w-full max-w-[64.19rem] border-x border-b border-slate-4 rounded-lg bg-slate-1",
)
def section_header(title: str, subtitle: str) -> rx.Component:
"""Create a section header for pricing tables."""
return rx.box(
rx.el.h3(
title,
class_name="text-slate-12 text-3xl font-semibold text-center",
),
rx.el.p(
subtitle,
class_name="text-slate-9 text-xl font-semibold text-center",
),
class_name="flex items-center justify-between flex-col py-[4.5rem] 2xl:border-x border-slate-4 | feature_rows = [table_row(*feature_data) for feature_data in features] |
ow w-full bg-slate-1",
)
# Create header row
header_row = table_row(header_content, *columns, is_header=True)
# Add optional id and scroll margin for anchoring
if kwargs.get("anchor"):
header_row = rx.el.tr(
*header_row.children,
class_name=f"{header_row.class_name} scroll-mt-24",
id=kwargs.get("anchor"),
)
# Create feature rows
feature_rows = [table_row(*feature_data) for feature_data in features]
return rx.el.table(
rx.el.thead(
header_row,
class_name=(
"sticky bg-slate-1 z-10",
rx.cond(HostingBannerState.show_banner, "top-[161px]", "top-[105px]"),
),
),
rx.el.tbody(
*feature_rows,
class_name="divide-y divide-slate-4 bg-slate-1 border-t border-slate-4",
),
class_name="table-fixed w-full max-w-[64.19rem] border-x border-b border-slate-4 rounded-lg bg-slate-1",
)
|
def sticky_pricing_header() -> rx.Component:
def header_item(text: str, button: rx.Component) -> rx.Component:
return rx.el.div(
rx.el.span(
text, class_name="text-secondary-12 font-semibold text-base text-center"
),
button,
class_name="w-full self-center flex flex-col justify-center items-center gap-2",
)
return rx.el.div(
rx.el.div(
# Features column
rx.el.div(
"",
class_name="text-secondary-11 font-semibold text-base text-left flex items-baseline justify-start z-0",
),
# Free column
header_item(
"Hobby",
ui.link(
render_=ui.button(
"Get started",
variant="secondary",
class_name="font-semibold w-full",
),
to=REFLEX_BUILD_URL,
| def section_header(title: str, subtitle: str) -> rx.Component:
"""Create a section header for pricing tables."""
return rx.box(
rx.el.h3(
title,
class_name="text-slate-12 text-3xl font-semibold text-center",
),
rx.el.p(
subtitle,
class_name="text-slate-9 text-xl font-semibold text-center",
),
class_name="flex items-center justify-between flex-col py-[4.5rem] 2xl:border-x border-slate-4 max-w-[64.19rem] mx-auto w-full gap-1",
) |
"sticky bg-slate-1 z-10",
rx.cond(HostingBannerState.show_banner, "top-[161px]", "top-[105px]"),
),
),
rx.el.tbody(
*feature_rows,
class_name="divide-y divide-slate-4 bg-slate-1 border-t border-slate-4",
),
class_name="table-fixed w-full max-w-[64.19rem] border-x border-b border-slate-4 rounded-lg bg-slate-1",
)
def section_header(title: str, subtitle: str) -> rx.Component:
"""Create a section header for pricing tables."""
return rx.box(
rx.el.h3(
title,
class_name="text-slate-12 text-3xl font-semibold text-center",
),
rx.el.p(
subtitle,
class_name="text-slate-9 text-xl font-semibold text-center",
),
class_name="flex items-center justify-between flex-col py-[4.5rem] 2xl:border-x border-slate-4 max-w-[64.19rem] mx-auto w-full gap-1",
)
def sticky_pricing_header() -> rx.Component:
|
return rx.el.div(
rx.el.div(
# Features column
rx.el.div(
"",
class_name="text-secondary-11 font-semibold text-base text-left flex items-baseline justify-start z-0",
),
# Free column
header_item(
"Hobby",
ui.link(
render_=ui.button(
"Get started",
variant="secondary",
class_name="font-semibold w-full",
),
to=REFLEX_BUILD_URL,
target="_blank",
),
),
# Pro column with button
header_item(
"Pro",
ui.link(
render_=ui.button(
"Upgrade now",
variant="secondary",
class_name="font-semibold w-full",
),
| def header_item(text: str, button: rx.Component) -> rx.Component:
return rx.el.div(
rx.el.span(
text, class_name="text-secondary-12 font-semibold text-base text-center"
),
button,
class_name="w-full self-center flex flex-col justify-center items-center gap-2",
) |
render_=ui.button(
"Upgrade now",
variant="secondary",
class_name="font-semibold w-full",
),
to=f"{REFLEX_CLOUD_URL.rstrip('/')}/?redirect_url={REFLEX_CLOUD_URL.rstrip('/')}/billing/",
target="_blank",
),
),
# Enterprise column with button
header_item(
"Enterprise",
lemcal_dialog(
ui.button(
"Get a demo",
variant="primary",
class_name="font-semibold w-full",
)
),
),
class_name="grid grid-cols-4 gap-6 p-4",
),
class_name=(
"sticky z-10 bg-slate-1 border-x border-slate-4 border-y",
rx.cond(HostingBannerState.show_banner, "top-[121px]", "top-[65px]"),
),
)
|
def hosting_table() -> rx.Component:
return pricing_table(
title="Cloud",
icon="CloudServerIcon",
columns=[],
features=CLOUD_HOSTING_FEATURES,
)
def security_table() -> rx.Component:
return pricing_table(
title="Security",
icon="ShieldKeyIcon",
columns=[],
features=SECURITY_FEATURES,
)
def support_table() -> rx.Component:
return pricing_table(
title="Support",
icon="QuestionIcon",
columns=[],
features=SUPPORT_FEATURES,
)
def tiers_tables() -> rx.Component:
return rx.el.div(
rx.el.div(
section_header(
"The enterprise-grade fullstack AI app building platform.",
"Build customized, secure, and scalable apps in seconds",
),
sticky_pricing_header(),
reflex_build_table(),
hosting_table(),
security_table(),
support_table(),
class | def reflex_build_table() -> rx.Component:
all_features = (
REFLEX_BUILD_BASIC_FEATURES
+ REFLEX_BUILD_FUNCTIONALITY
+ REFLEX_BUILD_DEPLOYMENT
)
return pricing_table(
title="Reflex Build",
icon="MagicWand01Icon",
columns=[],
features=all_features,
) |
"Upgrade now",
variant="secondary",
class_name="font-semibold w-full",
),
to=f"{REFLEX_CLOUD_URL.rstrip('/')}/?redirect_url={REFLEX_CLOUD_URL.rstrip('/')}/billing/",
target="_blank",
),
),
# Enterprise column with button
header_item(
"Enterprise",
lemcal_dialog(
ui.button(
"Get a demo",
variant="primary",
class_name="font-semibold w-full",
)
),
),
class_name="grid grid-cols-4 gap-6 p-4",
),
class_name=(
"sticky z-10 bg-slate-1 border-x border-slate-4 border-y",
rx.cond(HostingBannerState.show_banner, "top-[121px]", "top-[65px]"),
),
)
def reflex_build_table() -> rx.Component:
|
return pricing_table(
title="Reflex Build",
icon="MagicWand01Icon",
columns=[],
features=all_features,
)
def hosting_table() -> rx.Component:
return pricing_table(
title="Cloud",
icon="CloudServerIcon",
columns=[],
features=CLOUD_HOSTING_FEATURES,
)
def security_table() -> rx.Component:
return pricing_table(
title="Security",
icon="ShieldKeyIcon",
columns=[],
features=SECURITY_FEATURES,
)
def support_table() -> rx.Component:
return pricing_table(
title="Support",
icon="QuestionIcon",
columns=[],
features=SUPPORT_FEATURES,
)
def tiers_tables() -> rx.Component:
return rx.el.div(
rx.el.div(
section_header(
"The enterprise-grade fullstack AI app building platform.",
"Build customized, secure, and scalable apps in seconds",
),
sticky_pricing_hea | all_features = (
REFLEX_BUILD_BASIC_FEATURES
+ REFLEX_BUILD_FUNCTIONALITY
+ REFLEX_BUILD_DEPLOYMENT
) |
target="_blank",
),
),
# Enterprise column with button
header_item(
"Enterprise",
lemcal_dialog(
ui.button(
"Get a demo",
variant="primary",
class_name="font-semibold w-full",
)
),
),
class_name="grid grid-cols-4 gap-6 p-4",
),
class_name=(
"sticky z-10 bg-slate-1 border-x border-slate-4 border-y",
rx.cond(HostingBannerState.show_banner, "top-[121px]", "top-[65px]"),
),
)
def reflex_build_table() -> rx.Component:
all_features = (
REFLEX_BUILD_BASIC_FEATURES
+ REFLEX_BUILD_FUNCTIONALITY
+ REFLEX_BUILD_DEPLOYMENT
)
return pricing_table(
title="Reflex Build",
icon="MagicWand01Icon",
columns=[],
features=all_features,
)
|
def security_table() -> rx.Component:
return pricing_table(
title="Security",
icon="ShieldKeyIcon",
columns=[],
features=SECURITY_FEATURES,
)
def support_table() -> rx.Component:
return pricing_table(
title="Support",
icon="QuestionIcon",
columns=[],
features=SUPPORT_FEATURES,
)
def tiers_tables() -> rx.Component:
return rx.el.div(
rx.el.div(
section_header(
"The enterprise-grade fullstack AI app building platform.",
"Build customized, secure, and scalable apps in seconds",
),
sticky_pricing_header(),
reflex_build_table(),
hosting_table(),
security_table(),
support_table(),
class_name="flex-col w-full max-w-[64.19rem] lg:flex hidden self-center",
),
class_name="relative",
)
| def hosting_table() -> rx.Component:
return pricing_table(
title="Cloud",
icon="CloudServerIcon",
columns=[],
features=CLOUD_HOSTING_FEATURES,
) |
log(
ui.button(
"Get a demo",
variant="primary",
class_name="font-semibold w-full",
)
),
),
class_name="grid grid-cols-4 gap-6 p-4",
),
class_name=(
"sticky z-10 bg-slate-1 border-x border-slate-4 border-y",
rx.cond(HostingBannerState.show_banner, "top-[121px]", "top-[65px]"),
),
)
def reflex_build_table() -> rx.Component:
all_features = (
REFLEX_BUILD_BASIC_FEATURES
+ REFLEX_BUILD_FUNCTIONALITY
+ REFLEX_BUILD_DEPLOYMENT
)
return pricing_table(
title="Reflex Build",
icon="MagicWand01Icon",
columns=[],
features=all_features,
)
def hosting_table() -> rx.Component:
return pricing_table(
title="Cloud",
icon="CloudServerIcon",
columns=[],
features=CLOUD_HOSTING_FEATURES,
)
|
def support_table() -> rx.Component:
return pricing_table(
title="Support",
icon="QuestionIcon",
columns=[],
features=SUPPORT_FEATURES,
)
def tiers_tables() -> rx.Component:
return rx.el.div(
rx.el.div(
section_header(
"The enterprise-grade fullstack AI app building platform.",
"Build customized, secure, and scalable apps in seconds",
),
sticky_pricing_header(),
reflex_build_table(),
hosting_table(),
security_table(),
support_table(),
class_name="flex-col w-full max-w-[64.19rem] lg:flex hidden self-center",
),
class_name="relative",
)
| def security_table() -> rx.Component:
return pricing_table(
title="Security",
icon="ShieldKeyIcon",
columns=[],
features=SECURITY_FEATURES,
) |
)
),
),
class_name="grid grid-cols-4 gap-6 p-4",
),
class_name=(
"sticky z-10 bg-slate-1 border-x border-slate-4 border-y",
rx.cond(HostingBannerState.show_banner, "top-[121px]", "top-[65px]"),
),
)
def reflex_build_table() -> rx.Component:
all_features = (
REFLEX_BUILD_BASIC_FEATURES
+ REFLEX_BUILD_FUNCTIONALITY
+ REFLEX_BUILD_DEPLOYMENT
)
return pricing_table(
title="Reflex Build",
icon="MagicWand01Icon",
columns=[],
features=all_features,
)
def hosting_table() -> rx.Component:
return pricing_table(
title="Cloud",
icon="CloudServerIcon",
columns=[],
features=CLOUD_HOSTING_FEATURES,
)
def security_table() -> rx.Component:
return pricing_table(
title="Security",
icon="ShieldKeyIcon",
columns=[],
features=SECURITY_FEATURES,
)
|
def tiers_tables() -> rx.Component:
return rx.el.div(
rx.el.div(
section_header(
"The enterprise-grade fullstack AI app building platform.",
"Build customized, secure, and scalable apps in seconds",
),
sticky_pricing_header(),
reflex_build_table(),
hosting_table(),
security_table(),
support_table(),
class_name="flex-col w-full max-w-[64.19rem] lg:flex hidden self-center",
),
class_name="relative",
)
| def support_table() -> rx.Component:
return pricing_table(
title="Support",
icon="QuestionIcon",
columns=[],
features=SUPPORT_FEATURES,
) |
rder-slate-4 border-y",
rx.cond(HostingBannerState.show_banner, "top-[121px]", "top-[65px]"),
),
)
def reflex_build_table() -> rx.Component:
all_features = (
REFLEX_BUILD_BASIC_FEATURES
+ REFLEX_BUILD_FUNCTIONALITY
+ REFLEX_BUILD_DEPLOYMENT
)
return pricing_table(
title="Reflex Build",
icon="MagicWand01Icon",
columns=[],
features=all_features,
)
def hosting_table() -> rx.Component:
return pricing_table(
title="Cloud",
icon="CloudServerIcon",
columns=[],
features=CLOUD_HOSTING_FEATURES,
)
def security_table() -> rx.Component:
return pricing_table(
title="Security",
icon="ShieldKeyIcon",
columns=[],
features=SECURITY_FEATURES,
)
def support_table() -> rx.Component:
return pricing_table(
title="Support",
icon="QuestionIcon",
columns=[],
features=SUPPORT_FEATURES,
)
| def tiers_tables() -> rx.Component:
return rx.el.div(
rx.el.div(
section_header(
"The enterprise-grade fullstack AI app building platform.",
"Build customized, secure, and scalable apps in seconds",
),
sticky_pricing_header(),
reflex_build_table(),
hosting_table(),
security_table(),
support_table(),
class_name="flex-col w-full max-w-[64.19rem] lg:flex hidden self-center",
),
class_name="relative",
) | |
"""Main security page implementation."""
|
from pcweb.templates.mainpage import mainpage
from .views import features_table_section, security_grid, security_title
@mainpage(path="/security", title="Security - Reflex")
def security_page() -> rx.Component:
"""Main security page with modular sections."""
return rx.box(
rx.box(
security_title(),
security_grid(),
features_table_section(),
class_name="flex flex-col relative justify-center items-center w-full",
),
class_name="flex flex-col w-full",
)
| import reflex as rx |
"""Main security page implementation."""
import reflex as rx
|
from .views import features_table_section, security_grid, security_title
@mainpage(path="/security", title="Security - Reflex")
def security_page() -> rx.Component:
"""Main security page with modular sections."""
return rx.box(
rx.box(
security_title(),
security_grid(),
features_table_section(),
class_name="flex flex-col relative justify-center items-center w-full",
),
class_name="flex flex-col w-full",
)
| from pcweb.templates.mainpage import mainpage |
"""Features table section for security page."""
|
from pcweb.pages.pricing.table import pricing_table, section_header
from ..data import PAGE_CONTENT, SECURITY_FEATURES
def security_features_table() -> rx.Component:
"""Complete security features table with separate tables for each category."""
tables = []
# Create a separate table for each security category
for category, features in SECURITY_FEATURES.items():
table = pricing_table(
title=category,
icon="ShieldKeyIcon",
columns=["", ""],
features=features,
)
tables.append(table)
return rx.el.div(
*tables,
class_name="flex flex-col w-full **:text-start",
)
def features_table_section() -> rx.Component:
"""Complete features table section with header and table."""
table_content = PAGE_CONTENT["table"]
return rx.box(
section_header(
table_content["title"],
table_content["description"],
),
security_features_table | import reflex as rx |
"""Features table section for security page."""
import reflex as rx
|
from ..data import PAGE_CONTENT, SECURITY_FEATURES
def security_features_table() -> rx.Component:
"""Complete security features table with separate tables for each category."""
tables = []
# Create a separate table for each security category
for category, features in SECURITY_FEATURES.items():
table = pricing_table(
title=category,
icon="ShieldKeyIcon",
columns=["", ""],
features=features,
)
tables.append(table)
return rx.el.div(
*tables,
class_name="flex flex-col w-full **:text-start",
)
def features_table_section() -> rx.Component:
"""Complete features table section with header and table."""
table_content = PAGE_CONTENT["table"]
return rx.box(
section_header(
table_content["title"],
table_content["description"],
),
security_features_table(),
class_name="flex-col w-full max-w-[64.19rem] max-lg:hidde | from pcweb.pages.pricing.table import pricing_table, section_header |
"""Features table section for security page."""
import reflex as rx
from pcweb.pages.pricing.table import pricing_table, section_header
|
def security_features_table() -> rx.Component:
"""Complete security features table with separate tables for each category."""
tables = []
# Create a separate table for each security category
for category, features in SECURITY_FEATURES.items():
table = pricing_table(
title=category,
icon="ShieldKeyIcon",
columns=["", ""],
features=features,
)
tables.append(table)
return rx.el.div(
*tables,
class_name="flex flex-col w-full **:text-start",
)
def features_table_section() -> rx.Component:
"""Complete features table section with header and table."""
table_content = PAGE_CONTENT["table"]
return rx.box(
section_header(
table_content["title"],
table_content["description"],
),
security_features_table(),
class_name="flex-col w-full max-w-[64.19rem] max-lg:hidden",
)
| from ..data import PAGE_CONTENT, SECURITY_FEATURES |
"""Features table section for security page."""
import reflex as rx
from pcweb.pages.pricing.table import pricing_table, section_header
from ..data import PAGE_CONTENT, SECURITY_FEATURES
def security_features_table() -> rx.Component:
"""Complete security features table with separate tables for each category."""
|
# Create a separate table for each security category
for category, features in SECURITY_FEATURES.items():
table = pricing_table(
title=category,
icon="ShieldKeyIcon",
columns=["", ""],
features=features,
)
tables.append(table)
return rx.el.div(
*tables,
class_name="flex flex-col w-full **:text-start",
)
def features_table_section() -> rx.Component:
"""Complete features table section with header and table."""
table_content = PAGE_CONTENT["table"]
return rx.box(
section_header(
table_content["title"],
table_content["description"],
),
security_features_table(),
class_name="flex-col w-full max-w-[64.19rem] max-lg:hidden",
)
| tables = [] |
"""Features table section for security page."""
import reflex as rx
from pcweb.pages.pricing.table import pricing_table, section_header
from ..data import PAGE_CONTENT, SECURITY_FEATURES
def security_features_table() -> rx.Component:
"""Complete security features table with separate tables for each category."""
tables = []
# Create a separate table for each security category
for category, features in SECURITY_FEATURES.items():
table = pricing_table(
title=category,
icon="ShieldKeyIcon",
columns=["", ""],
features=features,
)
tables.append(table)
return rx.el.div(
*tables,
class_name="flex flex-col w-full **:text-start",
)
def features_table_section() -> rx.Component:
"""Complete features table section with header and table."""
|
return rx.box(
section_header(
table_content["title"],
table_content["description"],
),
security_features_table(),
class_name="flex-col w-full max-w-[64.19rem] max-lg:hidden",
)
| table_content = PAGE_CONTENT["table"] |
"""Grid section for security page featuring trust services criteria."""
|
from pcweb.components.icons import get_icon
from ..data import PAGE_CONTENT, TRUST_SERVICES_CRITERIA
def security_card(
title: str,
description: str,
icon: str,
cols: str = "1",
class_name: str = "",
) -> rx.Component:
"""Individual security feature card component."""
return rx.box(
rx.box(
_card_header(title, icon),
_card_description(description),
class_name="flex flex-col gap-[0.875rem]",
),
class_name=f"overflow-hidden p-8 w-full {class_name} lg:col-span-{cols} h-[13rem] lg:h-[11rem] border-slate-3",
)
def _card_header(title: str, icon: str) -> rx.Component:
"""Card header with icon and title."""
return rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.el.h3(title, class_name="text-slate-12 text-base font-semibold"),
class_name="flex flex-row items-center gap-2",
)
def _card_description(description: str) -> rx.Component:
"""Card descriptio | import reflex as rx |
"""Grid section for security page featuring trust services criteria."""
import reflex as rx
|
from ..data import PAGE_CONTENT, TRUST_SERVICES_CRITERIA
def security_card(
title: str,
description: str,
icon: str,
cols: str = "1",
class_name: str = "",
) -> rx.Component:
"""Individual security feature card component."""
return rx.box(
rx.box(
_card_header(title, icon),
_card_description(description),
class_name="flex flex-col gap-[0.875rem]",
),
class_name=f"overflow-hidden p-8 w-full {class_name} lg:col-span-{cols} h-[13rem] lg:h-[11rem] border-slate-3",
)
def _card_header(title: str, icon: str) -> rx.Component:
"""Card header with icon and title."""
return rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.el.h3(title, class_name="text-slate-12 text-base font-semibold"),
class_name="flex flex-row items-center gap-2",
)
def _card_description(description: str) -> rx.Component:
"""Card description text."""
return rx.el.p(
descri | from pcweb.components.icons import get_icon |
"""Grid section for security page featuring trust services criteria."""
import reflex as rx
from pcweb.components.icons import get_icon
|
def security_card(
title: str,
description: str,
icon: str,
cols: str = "1",
class_name: str = "",
) -> rx.Component:
"""Individual security feature card component."""
return rx.box(
rx.box(
_card_header(title, icon),
_card_description(description),
class_name="flex flex-col gap-[0.875rem]",
),
class_name=f"overflow-hidden p-8 w-full {class_name} lg:col-span-{cols} h-[13rem] lg:h-[11rem] border-slate-3",
)
def _card_header(title: str, icon: str) -> rx.Component:
"""Card header with icon and title."""
return rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.el.h3(title, class_name="text-slate-12 text-base font-semibold"),
class_name="flex flex-row items-center gap-2",
)
def _card_description(description: str) -> rx.Component:
"""Card description text."""
return rx.el.p(
description, class_name="text-slate-9 font-medium text-sm text-s | from ..data import PAGE_CONTENT, TRUST_SERVICES_CRITERIA |
"""Grid section for security page featuring trust services criteria."""
import reflex as rx
from pcweb.components.icons import get_icon
from ..data import PAGE_CONTENT, TRUST_SERVICES_CRITERIA
def security_card(
title: str,
description: str,
icon: str,
cols: str = "1",
class_name: str = "",
) -> rx.Component:
"""Individual security feature card component."""
return rx.box(
rx.box(
_card_header(title, icon),
_card_description(description),
class_name="flex flex-col gap-[0.875rem]",
),
class_name=f"overflow-hidden p-8 w-full {class_name} lg:col-span-{cols} h-[13rem] lg:h-[11rem] border-slate-3",
)
|
def _card_description(description: str) -> rx.Component:
"""Card description text."""
return rx.el.p(
description, class_name="text-slate-9 font-medium text-sm text-start"
)
def outcomes_showcase() -> rx.Component:
"""Central outcomes showcase component with prominent display."""
showcase = PAGE_CONTENT["showcase"]
return rx.box(
rx.box(
rx.box(
rx.el.h2(
showcase["title"],
class_name="text-slate-12 text-lg lg:text-2xl font-semibold text-center",
),
rx.el.h3(
showcase["subtitle"],
class_name="text-slate-9 text-md lg:text-xl font-semibold text-center",
),
class_name="flex flex-col gap-2 p-10 items-center justify-center",
),
rx.box(
rx.box(
*[
rx.image(
src=logo[" | def _card_header(title: str, icon: str) -> rx.Component:
"""Card header with icon and title."""
return rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.el.h3(title, class_name="text-slate-12 text-base font-semibold"),
class_name="flex flex-row items-center gap-2",
) |
on for security page featuring trust services criteria."""
import reflex as rx
from pcweb.components.icons import get_icon
from ..data import PAGE_CONTENT, TRUST_SERVICES_CRITERIA
def security_card(
title: str,
description: str,
icon: str,
cols: str = "1",
class_name: str = "",
) -> rx.Component:
"""Individual security feature card component."""
return rx.box(
rx.box(
_card_header(title, icon),
_card_description(description),
class_name="flex flex-col gap-[0.875rem]",
),
class_name=f"overflow-hidden p-8 w-full {class_name} lg:col-span-{cols} h-[13rem] lg:h-[11rem] border-slate-3",
)
def _card_header(title: str, icon: str) -> rx.Component:
"""Card header with icon and title."""
return rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.el.h3(title, class_name="text-slate-12 text-base font-semibold"),
class_name="flex flex-row items-center gap-2",
)
|
def outcomes_showcase() -> rx.Component:
"""Central outcomes showcase component with prominent display."""
showcase = PAGE_CONTENT["showcase"]
return rx.box(
rx.box(
rx.box(
rx.el.h2(
showcase["title"],
class_name="text-slate-12 text-lg lg:text-2xl font-semibold text-center",
),
rx.el.h3(
showcase["subtitle"],
class_name="text-slate-9 text-md lg:text-xl font-semibold text-center",
),
class_name="flex flex-col gap-2 p-10 items-center justify-center",
),
rx.box(
rx.box(
*[
rx.image(
src=logo["src"], alt=logo["alt"], class_name="h-24 w-auto"
)
for logo in showcase["logos"]
],
class_name="flex flex-ro | def _card_description(description: str) -> rx.Component:
"""Card description text."""
return rx.el.p(
description, class_name="text-slate-9 font-medium text-sm text-start"
) |
.Component:
"""Individual security feature card component."""
return rx.box(
rx.box(
_card_header(title, icon),
_card_description(description),
class_name="flex flex-col gap-[0.875rem]",
),
class_name=f"overflow-hidden p-8 w-full {class_name} lg:col-span-{cols} h-[13rem] lg:h-[11rem] border-slate-3",
)
def _card_header(title: str, icon: str) -> rx.Component:
"""Card header with icon and title."""
return rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.el.h3(title, class_name="text-slate-12 text-base font-semibold"),
class_name="flex flex-row items-center gap-2",
)
def _card_description(description: str) -> rx.Component:
"""Card description text."""
return rx.el.p(
description, class_name="text-slate-9 font-medium text-sm text-start"
)
def outcomes_showcase() -> rx.Component:
"""Central outcomes showcase component with prominent display."""
|
return rx.box(
rx.box(
rx.box(
rx.el.h2(
showcase["title"],
class_name="text-slate-12 text-lg lg:text-2xl font-semibold text-center",
),
rx.el.h3(
showcase["subtitle"],
class_name="text-slate-9 text-md lg:text-xl font-semibold text-center",
),
class_name="flex flex-col gap-2 p-10 items-center justify-center",
),
rx.box(
rx.box(
*[
rx.image(
src=logo["src"], alt=logo["alt"], class_name="h-24 w-auto"
)
for logo in showcase["logos"]
],
class_name="flex flex-row gap-10 items-center justify-center",
),
class_name="p-10 flex items-center justify-center",
),
| showcase = PAGE_CONTENT["showcase"] |
bold text-center",
),
class_name="flex flex-col gap-2 p-10 items-center justify-center",
),
rx.box(
rx.box(
*[
rx.image(
src=logo["src"], alt=logo["alt"], class_name="h-24 w-auto"
)
for logo in showcase["logos"]
],
class_name="flex flex-row gap-10 items-center justify-center",
),
class_name="p-10 flex items-center justify-center",
),
class_name="flex flex-col justify-center items-center h-full",
),
class_name="h-full w-full flex flex-col justify-center items-center relative overflow-hidden lg:row-span-3 lg:col-span-1 lg:border-l lg:border-r border-slate-3 p-8 lg:p-1",
)
def security_grid() -> rx.Component:
"""Main security features grid component with responsive layout."""
|
# Mobile layout - simple single column stack
mobile_layout = rx.box(
*[security_card(**criterion) for criterion in criteria],
class_name="lg:hidden flex flex-col divide-y divide-slate-3 border border-slate-3",
)
# Desktop layout - complex grid with showcase
desktop_layout = rx.box(
# Last card (spans 2 columns) -> moved to top
security_card(**criteria[4], cols="2", class_name="lg:col-span-2"),
# Center showcase (spans 3 rows, 1 column)
outcomes_showcase(),
# First 2 cards
*[security_card(**criterion) for criterion in criteria[:2]],
# Next 2 cards
*[security_card(**criterion) for criterion in criteria[2:4]],
class_name=(
"hidden lg:grid lg:grid-cols-3 lg:grid-rows-3 w-full border border-slate-3"
),
)
return rx.box(
mobile_layout,
desktop_layout,
class_name="flex flex-row max-w-[64.19rem] justify-center w-full",
)
| criteria = TRUST_SERVICES_CRITERIA |
0 items-center justify-center",
),
rx.box(
rx.box(
*[
rx.image(
src=logo["src"], alt=logo["alt"], class_name="h-24 w-auto"
)
for logo in showcase["logos"]
],
class_name="flex flex-row gap-10 items-center justify-center",
),
class_name="p-10 flex items-center justify-center",
),
class_name="flex flex-col justify-center items-center h-full",
),
class_name="h-full w-full flex flex-col justify-center items-center relative overflow-hidden lg:row-span-3 lg:col-span-1 lg:border-l lg:border-r border-slate-3 p-8 lg:p-1",
)
def security_grid() -> rx.Component:
"""Main security features grid component with responsive layout."""
criteria = TRUST_SERVICES_CRITERIA
# Mobile layout - simple single column stack
|
# Desktop layout - complex grid with showcase
desktop_layout = rx.box(
# Last card (spans 2 columns) -> moved to top
security_card(**criteria[4], cols="2", class_name="lg:col-span-2"),
# Center showcase (spans 3 rows, 1 column)
outcomes_showcase(),
# First 2 cards
*[security_card(**criterion) for criterion in criteria[:2]],
# Next 2 cards
*[security_card(**criterion) for criterion in criteria[2:4]],
class_name=(
"hidden lg:grid lg:grid-cols-3 lg:grid-rows-3 w-full border border-slate-3"
),
)
return rx.box(
mobile_layout,
desktop_layout,
class_name="flex flex-row max-w-[64.19rem] justify-center w-full",
)
| mobile_layout = rx.box(
*[security_card(**criterion) for criterion in criteria],
class_name="lg:hidden flex flex-col divide-y divide-slate-3 border border-slate-3",
) |
"""Header section for security page."""
|
from pcweb.components.hosting_banner import HostingBannerState
from ..data import PAGE_CONTENT
def security_title() -> rx.Component:
"""Main title section for security page."""
content = PAGE_CONTENT
return rx.el.section(
rx.el.h1(
content["title"],
class_name="max-w-full inline-block bg-clip-text bg-gradient-to-r from-slate-12 to-slate-11 w-full text-4xl lg:text-5xl text-center text-transparent text-balance mx-auto break-words font-semibold",
),
rx.el.h2(
content["subtitle"],
class_name="max-w-full w-full font-large text-center text-slate-11 -mt-2 font-normal text-[1.25rem] mx-auto text-balance word-wrap break-words",
),
class_name="flex flex-col justify-center items-center gap-4 mx-auto w-full max-w-[64.19rem] lg:border-x border-slate-3 pb-4 lg:pb-[7.875rem]"
+ rx.cond(
HostingBannerState.show_banner,
" lg:pt-[15.2rem] pt-[8rem]",
" lg: | import reflex as rx |
"""Header section for security page."""
import reflex as rx
|
from ..data import PAGE_CONTENT
def security_title() -> rx.Component:
"""Main title section for security page."""
content = PAGE_CONTENT
return rx.el.section(
rx.el.h1(
content["title"],
class_name="max-w-full inline-block bg-clip-text bg-gradient-to-r from-slate-12 to-slate-11 w-full text-4xl lg:text-5xl text-center text-transparent text-balance mx-auto break-words font-semibold",
),
rx.el.h2(
content["subtitle"],
class_name="max-w-full w-full font-large text-center text-slate-11 -mt-2 font-normal text-[1.25rem] mx-auto text-balance word-wrap break-words",
),
class_name="flex flex-col justify-center items-center gap-4 mx-auto w-full max-w-[64.19rem] lg:border-x border-slate-3 pb-4 lg:pb-[7.875rem]"
+ rx.cond(
HostingBannerState.show_banner,
" lg:pt-[15.2rem] pt-[8rem]",
" lg:pt-[13.2rem] pt-[6rem]",
),
)
| from pcweb.components.hosting_banner import HostingBannerState |
"""Header section for security page."""
import reflex as rx
from pcweb.components.hosting_banner import HostingBannerState
|
def security_title() -> rx.Component:
"""Main title section for security page."""
content = PAGE_CONTENT
return rx.el.section(
rx.el.h1(
content["title"],
class_name="max-w-full inline-block bg-clip-text bg-gradient-to-r from-slate-12 to-slate-11 w-full text-4xl lg:text-5xl text-center text-transparent text-balance mx-auto break-words font-semibold",
),
rx.el.h2(
content["subtitle"],
class_name="max-w-full w-full font-large text-center text-slate-11 -mt-2 font-normal text-[1.25rem] mx-auto text-balance word-wrap break-words",
),
class_name="flex flex-col justify-center items-center gap-4 mx-auto w-full max-w-[64.19rem] lg:border-x border-slate-3 pb-4 lg:pb-[7.875rem]"
+ rx.cond(
HostingBannerState.show_banner,
" lg:pt-[15.2rem] pt-[8rem]",
" lg:pt-[13.2rem] pt-[6rem]",
),
)
| from ..data import PAGE_CONTENT |
"""Header section for security page."""
import reflex as rx
from pcweb.components.hosting_banner import HostingBannerState
from ..data import PAGE_CONTENT
def security_title() -> rx.Component:
"""Main title section for security page."""
|
return rx.el.section(
rx.el.h1(
content["title"],
class_name="max-w-full inline-block bg-clip-text bg-gradient-to-r from-slate-12 to-slate-11 w-full text-4xl lg:text-5xl text-center text-transparent text-balance mx-auto break-words font-semibold",
),
rx.el.h2(
content["subtitle"],
class_name="max-w-full w-full font-large text-center text-slate-11 -mt-2 font-normal text-[1.25rem] mx-auto text-balance word-wrap break-words",
),
class_name="flex flex-col justify-center items-center gap-4 mx-auto w-full max-w-[64.19rem] lg:border-x border-slate-3 pb-4 lg:pb-[7.875rem]"
+ rx.cond(
HostingBannerState.show_banner,
" lg:pt-[15.2rem] pt-[8rem]",
" lg:pt-[13.2rem] pt-[6rem]",
),
)
| content = PAGE_CONTENT |
from flexdown.document import Document
from pcweb.components.docpage.navbar import navbar
from pcweb.flexdown import xd2 as xd
from pcweb.meta.meta import meta_tags
from pcweb.pages.customers.views.footer import footer_customer
from pcweb.pages.framework.index_colors import index_colors
from pcweb.views.bottom_section.bottom_section import bottom_section
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
| import reflex as rx | |
import reflex as rx
|
from pcweb.components.docpage.navbar import navbar
from pcweb.flexdown import xd2 as xd
from pcweb.meta.meta import meta_tags
from pcweb.pages.customers.views.footer import footer_customer
from pcweb.pages.framework.index_colors import index_colors
from pcweb.views.bottom_section.bottom_section import bottom_section
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
foote | from flexdown.document import Document |
import reflex as rx
from flexdown.document import Document
|
from pcweb.flexdown import xd2 as xd
from pcweb.meta.meta import meta_tags
from pcweb.pages.customers.views.footer import footer_customer
from pcweb.pages.framework.index_colors import index_colors
from pcweb.views.bottom_section.bottom_section import bottom_section
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
footer_customer(),
class_name="relative flex | from pcweb.components.docpage.navbar import navbar |
import reflex as rx
from flexdown.document import Document
from pcweb.components.docpage.navbar import navbar
|
from pcweb.meta.meta import meta_tags
from pcweb.pages.customers.views.footer import footer_customer
from pcweb.pages.framework.index_colors import index_colors
from pcweb.views.bottom_section.bottom_section import bottom_section
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
footer_customer(),
class_name="relative flex flex-col justify-start items-center w | from pcweb.flexdown import xd2 as xd |
import reflex as rx
from flexdown.document import Document
from pcweb.components.docpage.navbar import navbar
from pcweb.flexdown import xd2 as xd
|
from pcweb.pages.customers.views.footer import footer_customer
from pcweb.pages.framework.index_colors import index_colors
from pcweb.views.bottom_section.bottom_section import bottom_section
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
footer_customer(),
class_name="relative flex flex-col justify-start items-center w-full h-full min-h-screen font-instrum | from pcweb.meta.meta import meta_tags |
import reflex as rx
from flexdown.document import Document
from pcweb.components.docpage.navbar import navbar
from pcweb.flexdown import xd2 as xd
from pcweb.meta.meta import meta_tags
|
from pcweb.pages.framework.index_colors import index_colors
from pcweb.views.bottom_section.bottom_section import bottom_section
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
footer_customer(),
class_name="relative flex flex-col justify-start items-center w-full h-full min-h-screen font-instrument-sans gap-4 mx-auto max-w-[64.19rem] lg:border-x border-slat | from pcweb.pages.customers.views.footer import footer_customer |
import reflex as rx
from flexdown.document import Document
from pcweb.components.docpage.navbar import navbar
from pcweb.flexdown import xd2 as xd
from pcweb.meta.meta import meta_tags
from pcweb.pages.customers.views.footer import footer_customer
|
from pcweb.views.bottom_section.bottom_section import bottom_section
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
footer_customer(),
class_name="relative flex flex-col justify-start items-center w-full h-full min-h-screen font-instrument-sans gap-4 mx-auto max-w-[64.19rem] lg:border-x border-slate-3 pt-24 lg:pt-48",
),
class_name="relative | from pcweb.pages.framework.index_colors import index_colors |
import reflex as rx
from flexdown.document import Document
from pcweb.components.docpage.navbar import navbar
from pcweb.flexdown import xd2 as xd
from pcweb.meta.meta import meta_tags
from pcweb.pages.customers.views.footer import footer_customer
from pcweb.pages.framework.index_colors import index_colors
|
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
footer_customer(),
class_name="relative flex flex-col justify-start items-center w-full h-full min-h-screen font-instrument-sans gap-4 mx-auto max-w-[64.19rem] lg:border-x border-slate-3 pt-24 lg:pt-48",
),
class_name="relative overflow-hidden",
)
| from pcweb.views.bottom_section.bottom_section import bottom_section |
import reflex as rx
from flexdown.document import Document
from pcweb.components.docpage.navbar import navbar
from pcweb.flexdown import xd2 as xd
from pcweb.meta.meta import meta_tags
from pcweb.pages.customers.views.footer import footer_customer
from pcweb.pages.framework.index_colors import index_colors
from pcweb.views.bottom_section.bottom_section import bottom_section
|
def use_case_content():
return rx.box(xd.render(document, document.filename))
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
footer_customer(),
class_name="relative flex flex-col justify-start items-center w-full h-full min-h-screen font-instrument-sans gap-4 mx-auto max-w-[64.19rem] lg:border-x border-slate-3 pt-24 lg:pt-48",
),
class_name="relative overflow-hidden",
)
| document = Document.from_file("pcweb/pages/use_case/use_cases.md") |
import reflex as rx
from flexdown.document import Document
from pcweb.components.docpage.navbar import navbar
from pcweb.flexdown import xd2 as xd
from pcweb.meta.meta import meta_tags
from pcweb.pages.customers.views.footer import footer_customer
from pcweb.pages.framework.index_colors import index_colors
from pcweb.views.bottom_section.bottom_section import bottom_section
document = Document.from_file("pcweb/pages/use_case/use_cases.md")
|
@rx.page(route="/use-cases", title="Use Cases - Reflex", meta=meta_tags)
def use_case():
return rx.box(
rx.box(
index_colors(),
navbar(),
rx.el.main(
use_case_content(),
rx.box(class_name="flex-grow"),
class_name="w-full z-[1] relative flex flex-col justify-center mx-auto max-w-[640px] lg:px-0 px-4 pb-20",
),
rx.box(class_name="h-[1px] bg-slate-3 w-full"),
bottom_section(),
footer_customer(),
class_name="relative flex flex-col justify-start items-center w-full h-full min-h-screen font-instrument-sans gap-4 mx-auto max-w-[64.19rem] lg:border-x border-slate-3 pt-24 lg:pt-48",
),
class_name="relative overflow-hidden",
)
| def use_case_content():
return rx.box(xd.render(document, document.filename)) |
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.highlightpage import highlight_page
document = Document.from_file("pcweb/pages/use_cases/use_cases.md")
def use_cases_content() -> rx.Component:
return rx.box(xd.render(document, document.filename))
@highlight_page(path="/use-cases", title="Use Cases - Reflex")
def use_cases_page():
return use_cases_content()
| import reflex as rx | |
import reflex as rx
|
from pcweb.flexdown import xd2 as xd
from pcweb.templates.highlightpage import highlight_page
document = Document.from_file("pcweb/pages/use_cases/use_cases.md")
def use_cases_content() -> rx.Component:
return rx.box(xd.render(document, document.filename))
@highlight_page(path="/use-cases", title="Use Cases - Reflex")
def use_cases_page():
return use_cases_content()
| from flexdown.document import Document |
import reflex as rx
from flexdown.document import Document
|
from pcweb.templates.highlightpage import highlight_page
document = Document.from_file("pcweb/pages/use_cases/use_cases.md")
def use_cases_content() -> rx.Component:
return rx.box(xd.render(document, document.filename))
@highlight_page(path="/use-cases", title="Use Cases - Reflex")
def use_cases_page():
return use_cases_content()
| from pcweb.flexdown import xd2 as xd |
# Customs colors from /assets/custom-colors.css
|
ColorType = Literal["white", "slate", "violet", "jade", "red"]
ShadeType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
def c_color(color: ColorType, shade: ShadeType, alpha: bool = False) -> str:
"""Create a color variable string."""
shade_str = str(shade).replace(".", "-")
return f"var(--c-{color}-{shade_str}{'-a' if alpha else ''})"
| from typing import Literal |
# Customs colors from /assets/custom-colors.css
from typing import Literal
ColorType = Literal["white", "slate", "violet", "jade", "red"]
ShadeType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
def c_color(color: ColorType, shade: ShadeType, alpha: bool = False) -> str:
"""Create a color variable string."""
|
return f"var(--c-{color}-{shade_str}{'-a' if alpha else ''})"
| shade_str = str(shade).replace(".", "-") |
# FONT STYLES
|
small = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "14px",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
small_semibold = {
"font-family": font_family,
"font-size": "14px",
"font-style": "normal",
"font-weight": "600",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
base = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": ["14px", "16px"],
"line-height": ["20px", "24px"],
"letter-spacing": "-0.015em",
}
base_semibold = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "16px",
"line-height": "24px",
"letter-spacing": "-0.015em",
}
medium = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "26px",
"letter-spacing": "-0.015em",
}
medium_leading_5 = {
"font-fam | font_family = "Instrument Sans" |
# FONT STYLES
font_family = "Instrument Sans"
|
small_semibold = {
"font-family": font_family,
"font-size": "14px",
"font-style": "normal",
"font-weight": "600",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
base = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": ["14px", "16px"],
"line-height": ["20px", "24px"],
"letter-spacing": "-0.015em",
}
base_semibold = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "16px",
"line-height": "24px",
"letter-spacing": "-0.015em",
}
medium = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "26px",
"letter-spacing": "-0.015em",
}
medium_leading_5 = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "20px",
"letter-spacing": "-0.015em",
}
large = {
"font-fami | small = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "14px",
"line-height": "20px",
"letter-spacing": "-0.0125em",
} |
# FONT STYLES
font_family = "Instrument Sans"
small = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "14px",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
|
base = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": ["14px", "16px"],
"line-height": ["20px", "24px"],
"letter-spacing": "-0.015em",
}
base_semibold = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "16px",
"line-height": "24px",
"letter-spacing": "-0.015em",
}
medium = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "26px",
"letter-spacing": "-0.015em",
}
medium_leading_5 = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "20px",
"letter-spacing": "-0.015em",
}
large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "24px",
"line-height": "32px",
"letter-spacing": "-0.015em",
}
x_large = {
"font-family": fon | small_semibold = {
"font-family": font_family,
"font-size": "14px",
"font-style": "normal",
"font-weight": "600",
"line-height": "20px",
"letter-spacing": "-0.0125em",
} |
# FONT STYLES
font_family = "Instrument Sans"
small = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "14px",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
small_semibold = {
"font-family": font_family,
"font-size": "14px",
"font-style": "normal",
"font-weight": "600",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
base = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": ["14px", "16px"],
"line-height": ["20px", "24px"],
"letter-spacing": "-0.015em",
}
|
medium = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "26px",
"letter-spacing": "-0.015em",
}
medium_leading_5 = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "20px",
"letter-spacing": "-0.015em",
}
large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "24px",
"line-height": "32px",
"letter-spacing": "-0.015em",
}
x_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["24px", "32px"],
"line-height": ["32px", "40px"],
"letter-spacing": ["-0.02em", "-0.03em"],
}
xx_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["32px", "56px"],
"line-height": ["40px", "64px"],
"letter-spacing": ["-0.03em", "-0.05 | base_semibold = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "16px",
"line-height": "24px",
"letter-spacing": "-0.015em",
} |
# FONT STYLES
font_family = "Instrument Sans"
small = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "14px",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
small_semibold = {
"font-family": font_family,
"font-size": "14px",
"font-style": "normal",
"font-weight": "600",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
base = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": ["14px", "16px"],
"line-height": ["20px", "24px"],
"letter-spacing": "-0.015em",
}
base_semibold = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "16px",
"line-height": "24px",
"letter-spacing": "-0.015em",
}
|
medium_leading_5 = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "20px",
"letter-spacing": "-0.015em",
}
large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "24px",
"line-height": "32px",
"letter-spacing": "-0.015em",
}
x_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["24px", "32px"],
"line-height": ["32px", "40px"],
"letter-spacing": ["-0.02em", "-0.03em"],
}
xx_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["32px", "56px"],
"line-height": ["40px", "64px"],
"letter-spacing": ["-0.03em", "-0.05em"],
}
code = {
"font-family": "Source Code Pro",
"font-size": "14px",
"font-style": "normal",
"font-weight": "400",
"line-height": "24px",
"letter-spacing": "- | medium = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "26px",
"letter-spacing": "-0.015em",
} |
S
font_family = "Instrument Sans"
small = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "14px",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
small_semibold = {
"font-family": font_family,
"font-size": "14px",
"font-style": "normal",
"font-weight": "600",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
base = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": ["14px", "16px"],
"line-height": ["20px", "24px"],
"letter-spacing": "-0.015em",
}
base_semibold = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "16px",
"line-height": "24px",
"letter-spacing": "-0.015em",
}
medium = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "26px",
"letter-spacing": "-0.015em",
}
|
large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "24px",
"line-height": "32px",
"letter-spacing": "-0.015em",
}
x_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["24px", "32px"],
"line-height": ["32px", "40px"],
"letter-spacing": ["-0.02em", "-0.03em"],
}
xx_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["32px", "56px"],
"line-height": ["40px", "64px"],
"letter-spacing": ["-0.03em", "-0.05em"],
}
code = {
"font-family": "Source Code Pro",
"font-size": "14px",
"font-style": "normal",
"font-weight": "400",
"line-height": "24px",
"letter-spacing": "-0.015em",
}
| medium_leading_5 = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "20px",
"letter-spacing": "-0.015em",
} |
spacing": "-0.0125em",
}
small_semibold = {
"font-family": font_family,
"font-size": "14px",
"font-style": "normal",
"font-weight": "600",
"line-height": "20px",
"letter-spacing": "-0.0125em",
}
base = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": ["14px", "16px"],
"line-height": ["20px", "24px"],
"letter-spacing": "-0.015em",
}
base_semibold = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "16px",
"line-height": "24px",
"letter-spacing": "-0.015em",
}
medium = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "26px",
"letter-spacing": "-0.015em",
}
medium_leading_5 = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "20px",
"letter-spacing": "-0.015em",
}
|
x_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["24px", "32px"],
"line-height": ["32px", "40px"],
"letter-spacing": ["-0.02em", "-0.03em"],
}
xx_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["32px", "56px"],
"line-height": ["40px", "64px"],
"letter-spacing": ["-0.03em", "-0.05em"],
}
code = {
"font-family": "Source Code Pro",
"font-size": "14px",
"font-style": "normal",
"font-weight": "400",
"line-height": "24px",
"letter-spacing": "-0.015em",
}
| large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "24px",
"line-height": "32px",
"letter-spacing": "-0.015em",
} |
= {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "26px",
"letter-spacing": "-0.015em",
}
medium_leading_5 = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "500",
"font-size": "18px",
"line-height": "20px",
"letter-spacing": "-0.015em",
}
large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": "24px",
"line-height": "32px",
"letter-spacing": "-0.015em",
}
x_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["24px", "32px"],
"line-height": ["32px", "40px"],
"letter-spacing": ["-0.02em", "-0.03em"],
}
xx_large = {
"font-family": font_family,
"font-style": "normal",
"font-weight": "600",
"font-size": ["32px", "56px"],
"line-height": ["40px", "64px"],
"letter-spacing": ["-0.03em", "-0.05em"],
}
| code = {
"font-family": "Source Code Pro",
"font-size": "14px",
"font-style": "normal",
"font-weight": "400",
"line-height": "24px",
"letter-spacing": "-0.015em",
} | |
"""App styling."""
|
import pcweb.styles.fonts as fonts
from pcweb.styles.colors import c_color
font_weights = {
"bold": "800",
"heading": "700",
"subheading": "600",
"section": "600",
}
def get_code_style(color: str):
return {
"color": c_color(color, 9),
"border_radius": "4px",
"border": f"1px solid {c_color(color, 4)}",
"background": c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
}
# General styles.
SANS = "Instrument Sans"
BOLD_WEIGHT = font_weights["bold"]
DOC_BORDER_RADIUS = "6px"
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
| import reflex as rx |
"""App styling."""
import reflex as rx
|
from pcweb.styles.colors import c_color
font_weights = {
"bold": "800",
"heading": "700",
"subheading": "600",
"section": "600",
}
def get_code_style(color: str):
return {
"color": c_color(color, 9),
"border_radius": "4px",
"border": f"1px solid {c_color(color, 4)}",
"background": c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
}
# General styles.
SANS = "Instrument Sans"
BOLD_WEIGHT = font_weights["bold"]
DOC_BORDER_RADIUS = "6px"
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
"background_color": rx.color("acce | import pcweb.styles.fonts as fonts |
"""App styling."""
import reflex as rx
import pcweb.styles.fonts as fonts
|
font_weights = {
"bold": "800",
"heading": "700",
"subheading": "600",
"section": "600",
}
def get_code_style(color: str):
return {
"color": c_color(color, 9),
"border_radius": "4px",
"border": f"1px solid {c_color(color, 4)}",
"background": c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
}
# General styles.
SANS = "Instrument Sans"
BOLD_WEIGHT = font_weights["bold"]
DOC_BORDER_RADIUS = "6px"
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
"background_color": rx.color("accent", 5, True),
},
"font_family": | from pcweb.styles.colors import c_color |
"""App styling."""
import reflex as rx
import pcweb.styles.fonts as fonts
from pcweb.styles.colors import c_color
|
def get_code_style(color: str):
return {
"color": c_color(color, 9),
"border_radius": "4px",
"border": f"1px solid {c_color(color, 4)}",
"background": c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
}
# General styles.
SANS = "Instrument Sans"
BOLD_WEIGHT = font_weights["bold"]
DOC_BORDER_RADIUS = "6px"
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
"background_color": rx.color("accent", 5, True),
},
"font_family": SANS,
rx.heading: {
"font_family": SANS,
},
rx.divider: {"margin_bottom": "1em", "margi | font_weights = {
"bold": "800",
"heading": "700",
"subheading": "600",
"section": "600",
} |
"""App styling."""
import reflex as rx
import pcweb.styles.fonts as fonts
from pcweb.styles.colors import c_color
font_weights = {
"bold": "800",
"heading": "700",
"subheading": "600",
"section": "600",
}
def get_code_style(color: str):
return {
"color": c_color(color, 9),
"border_radius": "4px",
"border": f"1px solid {c_color(color, 4)}",
"background": c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
|
# General styles.
SANS = "Instrument Sans"
BOLD_WEIGHT = font_weights["bold"]
DOC_BORDER_RADIUS = "6px"
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
"background_color": rx.color("accent", 5, True),
},
"font_family": SANS,
rx.heading: {
"font_family": SANS,
},
rx.divider: {"margin_bottom": "1em", "margin_top": "0.5em"},
rx.vstack: {"align_items": "center"},
rx.hstack: {"align_items": "center"},
rx.markdown: {
"background": "transparent",
},
}
# Fonts to include.
STYLESHEETS = [
"custom-colors.css",
"tailwind-theme.css",
]
| cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
} |
"""App styling."""
import reflex as rx
import pcweb.styles.fonts as fonts
from pcweb.styles.colors import c_color
font_weights = {
"bold": "800",
"heading": "700",
"subheading": "600",
"section": "600",
}
def get_code_style(color: str):
return {
"color": c_color(color, 9),
"border_radius": "4px",
"border": f"1px solid {c_color(color, 4)}",
"background": c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
}
# General styles.
|
BOLD_WEIGHT = font_weights["bold"]
DOC_BORDER_RADIUS = "6px"
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
"background_color": rx.color("accent", 5, True),
},
"font_family": SANS,
rx.heading: {
"font_family": SANS,
},
rx.divider: {"margin_bottom": "1em", "margin_top": "0.5em"},
rx.vstack: {"align_items": "center"},
rx.hstack: {"align_items": "center"},
rx.markdown: {
"background": "transparent",
},
}
# Fonts to include.
STYLESHEETS = [
"custom-colors.css",
"tailwind-theme.css",
]
| SANS = "Instrument Sans" |
"""App styling."""
import reflex as rx
import pcweb.styles.fonts as fonts
from pcweb.styles.colors import c_color
font_weights = {
"bold": "800",
"heading": "700",
"subheading": "600",
"section": "600",
}
def get_code_style(color: str):
return {
"color": c_color(color, 9),
"border_radius": "4px",
"border": f"1px solid {c_color(color, 4)}",
"background": c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
}
# General styles.
SANS = "Instrument Sans"
|
DOC_BORDER_RADIUS = "6px"
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
"background_color": rx.color("accent", 5, True),
},
"font_family": SANS,
rx.heading: {
"font_family": SANS,
},
rx.divider: {"margin_bottom": "1em", "margin_top": "0.5em"},
rx.vstack: {"align_items": "center"},
rx.hstack: {"align_items": "center"},
rx.markdown: {
"background": "transparent",
},
}
# Fonts to include.
STYLESHEETS = [
"custom-colors.css",
"tailwind-theme.css",
]
| BOLD_WEIGHT = font_weights["bold"] |
"""App styling."""
import reflex as rx
import pcweb.styles.fonts as fonts
from pcweb.styles.colors import c_color
font_weights = {
"bold": "800",
"heading": "700",
"subheading": "600",
"section": "600",
}
def get_code_style(color: str):
return {
"color": c_color(color, 9),
"border_radius": "4px",
"border": f"1px solid {c_color(color, 4)}",
"background": c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
}
# General styles.
SANS = "Instrument Sans"
BOLD_WEIGHT = font_weights["bold"]
|
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
"background_color": rx.color("accent", 5, True),
},
"font_family": SANS,
rx.heading: {
"font_family": SANS,
},
rx.divider: {"margin_bottom": "1em", "margin_top": "0.5em"},
rx.vstack: {"align_items": "center"},
rx.hstack: {"align_items": "center"},
rx.markdown: {
"background": "transparent",
},
}
# Fonts to include.
STYLESHEETS = [
"custom-colors.css",
"tailwind-theme.css",
]
| DOC_BORDER_RADIUS = "6px" |
: c_color(color, 3),
**fonts.code,
"line_height": "1.5",
}
def get_code_style_rdx(color: str):
return {
"color": rx.color(color, 11),
"border_radius": "0.25rem",
"border": f"1px solid {rx.color(color, 5)}",
"background": rx.color(color, 3),
}
cell_style = {
**fonts.small,
"color": c_color("slate", 11),
"line_height": "1.5",
}
# General styles.
SANS = "Instrument Sans"
BOLD_WEIGHT = font_weights["bold"]
DOC_BORDER_RADIUS = "6px"
# The base application style.
BASE_STYLE = {
"background_color": "var(--c-slate-1)",
"::selection": {
"background_color": rx.color("accent", 5, True),
},
"font_family": SANS,
rx.heading: {
"font_family": SANS,
},
rx.divider: {"margin_bottom": "1em", "margin_top": "0.5em"},
rx.vstack: {"align_items": "center"},
rx.hstack: {"align_items": "center"},
rx.markdown: {
"background": "transparent",
},
}
# Fonts to include.
| STYLESHEETS = [
"custom-colors.css",
"tailwind-theme.css",
] | |
"""This module contains the pixel trackers for the website."""
|
from reflex_ui.blocks.telemetry import (
get_clearbit_trackers,
get_common_room_trackers,
get_google_analytics_trackers,
get_posthog_trackers,
get_rb2b_trackers,
)
def get_pixel_website_trackers() -> list[rx.Component]:
"""Get the pixel trackers for the website."""
return [
get_common_room_trackers(site_id="b608b3c3-5dea-4365-b685-6b6635c7fda5"),
*get_google_analytics_trackers(tracking_id="G-4T7C8ZD9TR"),
get_clearbit_trackers(public_key="pk_3d711a6e26de5ddb47443d8db170d506"),
get_posthog_trackers(
project_id="phc_A0MAR0wCGhXrizWmowRZcYqyZ8PMhPPQW06KEwD43aC"
),
*get_rb2b_trackers(),
]
| import reflex as rx |
from dataclasses import asdict, dataclass
from typing import Any
import httpx
from posthog import Posthog
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Rai | import contextlib | |
import contextlib
|
from typing import Any
import httpx
from posthog import Posthog
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there i | from dataclasses import asdict, dataclass |
import contextlib
from dataclasses import asdict, dataclass
|
import httpx
from posthog import Posthog
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data | from typing import Any |
import contextlib
from dataclasses import asdict, dataclass
from typing import Any
|
from posthog import Posthog
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
| import httpx |
import contextlib
from dataclasses import asdict, dataclass
from typing import Any
import httpx
|
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
"""
event_data = {
| from posthog import Posthog |
import contextlib
from dataclasses import asdict, dataclass
from typing import Any
import httpx
from posthog import Posthog
|
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
"""
event_data = {
"api_key": POSTHOG_API_KEY,
| from reflex.utils.console import log |
import contextlib
from dataclasses import asdict, dataclass
from typing import Any
import httpx
from posthog import Posthog
from reflex.utils.console import log
|
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
"""
event_data = {
"api_key": POSTHOG_API_KEY,
"event": event_instance.__class__.__name__,
"properties" | from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL |
import contextlib
from dataclasses import asdict, dataclass
from typing import Any
import httpx
from posthog import Posthog
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
|
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
"""
event_data = {
"api_key": POSTHOG_API_KEY,
"event": event_instance.__class__.__name__,
"properties": event_instance.to_dict(),
}
try:
async with httpx.AsyncClient() as client:
respo | posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com") |
import contextlib
from dataclasses import asdict, dataclass
from typing import Any
import httpx
from posthog import Posthog
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
|
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
"""
event_data = {
"api_key": POSTHOG_API_KEY,
"event": event_instance.__class__.__name__,
"properties": event_instance.to_dict(),
}
try:
async with httpx.AsyncClient() as client:
response = await client.post(
"https://app.posthog.com/capture/", json=event_data
)
response.raise_for_status()
except Exception:
| class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self) |
import contextlib
from dataclasses import asdict, dataclass
from typing import Any
import httpx
from posthog import Posthog
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
|
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
"""
event_data = {
"api_key": POSTHOG_API_KEY,
"event": event_instance.__class__.__name__,
"properties": event_instance.to_dict(),
}
try:
async with httpx.AsyncClient() as client:
response = await client.post(
"https://app.posthog.com/capture/", json=event_data
)
response.raise_for_status()
except Exception:
| def to_dict(self) -> dict[str, Any]:
return asdict(self) |
og import Posthog
from reflex.utils.console import log
from pcweb.constants import POSTHOG_API_KEY, SLACK_DEMO_WEBHOOK_URL
with contextlib.suppress(Exception):
posthog = Posthog(POSTHOG_API_KEY, host="https://us.i.posthog.com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
"""
|
try:
async with httpx.AsyncClient() as client:
response = await client.post(
"https://app.posthog.com/capture/", json=event_data
)
response.raise_for_status()
except Exception:
log("Error sending data to PostHog")
async def send_data_to_slack(event_instance: DemoEvent):
"""Send demo form data to Slack webhook.
Args:
event_instance: An instance of DemoEvent with form data.
"""
slack_payload = {
"lookingToBuild": event_instance.internal_tools,
"businessEmail": event_instance.company_email,
"howDidYouHear": event_instance.referral_source,
"linkedinUrl": event_instance.linkedin_url,
"jobTitle": event_instance.job_title,
"numEmployees": event_instance.num_employees,
"companyName": event_instance.company_name,
"firstName": event_instance.first_name,
"lastName": event_instance.last_name,
"phoneNumber": event_ins | event_data = {
"api_key": POSTHOG_API_KEY,
"event": event_instance.__class__.__name__,
"properties": event_instance.to_dict(),
} |
com")
@dataclass(kw_only=True)
class PosthogEvent:
"""Base event structure."""
distinct_id: str
def to_dict(self) -> dict[str, Any]:
return asdict(self)
@dataclass
class DemoEvent(PosthogEvent):
"""Event for demo booking."""
first_name: str
last_name: str
company_email: str
linkedin_url: str
job_title: str
company_name: str
num_employees: str
internal_tools: str
referral_source: str
phone_number: str = ""
async def send_data_to_posthog(event_instance: PosthogEvent):
"""Send data to PostHog using class introspection.
Args:
event_instance: An instance of a PosthogEvent subclass.
Raises:
httpx.HTTPError: When there is an error sending data to PostHog.
"""
event_data = {
"api_key": POSTHOG_API_KEY,
"event": event_instance.__class__.__name__,
"properties": event_instance.to_dict(),
}
try:
async with httpx.AsyncClient() as client:
|
response.raise_for_status()
except Exception:
log("Error sending data to PostHog")
async def send_data_to_slack(event_instance: DemoEvent):
"""Send demo form data to Slack webhook.
Args:
event_instance: An instance of DemoEvent with form data.
"""
slack_payload = {
"lookingToBuild": event_instance.internal_tools,
"businessEmail": event_instance.company_email,
"howDidYouHear": event_instance.referral_source,
"linkedinUrl": event_instance.linkedin_url,
"jobTitle": event_instance.job_title,
"numEmployees": event_instance.num_employees,
"companyName": event_instance.company_name,
"firstName": event_instance.first_name,
"lastName": event_instance.last_name,
"phoneNumber": event_instance.phone_number,
}
try:
async with httpx.AsyncClient() as client:
response = await client.post(
SLACK_DEMO_WEBHOOK_URL,
| response = await client.post(
"https://app.posthog.com/capture/", json=event_data
) |
st(
"https://app.posthog.com/capture/", json=event_data
)
response.raise_for_status()
except Exception:
log("Error sending data to PostHog")
async def send_data_to_slack(event_instance: DemoEvent):
"""Send demo form data to Slack webhook.
Args:
event_instance: An instance of DemoEvent with form data.
"""
slack_payload = {
"lookingToBuild": event_instance.internal_tools,
"businessEmail": event_instance.company_email,
"howDidYouHear": event_instance.referral_source,
"linkedinUrl": event_instance.linkedin_url,
"jobTitle": event_instance.job_title,
"numEmployees": event_instance.num_employees,
"companyName": event_instance.company_name,
"firstName": event_instance.first_name,
"lastName": event_instance.last_name,
"phoneNumber": event_instance.phone_number,
}
try:
async with httpx.AsyncClient() as client:
|
response.raise_for_status()
except Exception as e:
log(f"Error sending data to Slack webhook: {e}")
| response = await client.post(
SLACK_DEMO_WEBHOOK_URL,
json=slack_payload,
headers={"Content-Type": "application/json"},
) |
from typing import Callable
import reflex as rx
from pcweb.pages.framework.index_colors import index_colors
from pcweb.route import Route
def gallery_app_page(
path: str,
title: str,
description: str,
image: str,
demo: str,
meta: list[dict[str, str]] | None = None,
props=None,
add_as_page=True,
) -> Callable:
"""A template that most pages on the reflex.dev site should use.
This template wraps the webpage with the navbar and footer.
Args:
path: The path of the page.
title: The title of the page.
description: The description of the page.
image: The image of the page.
demo: The demo link of the app.
meta: The meta tags of the page.
props: Props to apply to the template.
add_as_page: whether to add the route to the app pages.
Returns:
A wrapper function that returns the full webpage.
"""
props = props or {}
def webpage(contents: Callable[[], Route]) - | import functools | |
import functools
|
import reflex as rx
from pcweb.pages.framework.index_colors import index_colors
from pcweb.route import Route
def gallery_app_page(
path: str,
title: str,
description: str,
image: str,
demo: str,
meta: list[dict[str, str]] | None = None,
props=None,
add_as_page=True,
) -> Callable:
"""A template that most pages on the reflex.dev site should use.
This template wraps the webpage with the navbar and footer.
Args:
path: The path of the page.
title: The title of the page.
description: The description of the page.
image: The image of the page.
demo: The demo link of the app.
meta: The meta tags of the page.
props: Props to apply to the template.
add_as_page: whether to add the route to the app pages.
Returns:
A wrapper function that returns the full webpage.
"""
props = props or {}
def webpage(contents: Callable[[], Route]) -> Route:
"""Wrapper | from typing import Callable |
import functools
from typing import Callable
|
from pcweb.pages.framework.index_colors import index_colors
from pcweb.route import Route
def gallery_app_page(
path: str,
title: str,
description: str,
image: str,
demo: str,
meta: list[dict[str, str]] | None = None,
props=None,
add_as_page=True,
) -> Callable:
"""A template that most pages on the reflex.dev site should use.
This template wraps the webpage with the navbar and footer.
Args:
path: The path of the page.
title: The title of the page.
description: The description of the page.
image: The image of the page.
demo: The demo link of the app.
meta: The meta tags of the page.
props: Props to apply to the template.
add_as_page: whether to add the route to the app pages.
Returns:
A wrapper function that returns the full webpage.
"""
props = props or {}
def webpage(contents: Callable[[], Route]) -> Route:
"""Wrapper to create a templated | import reflex as rx |
import functools
from typing import Callable
import reflex as rx
from pcweb.pages.framework.index_colors import index_colors
|
def gallery_app_page(
path: str,
title: str,
description: str,
image: str,
demo: str,
meta: list[dict[str, str]] | None = None,
props=None,
add_as_page=True,
) -> Callable:
"""A template that most pages on the reflex.dev site should use.
This template wraps the webpage with the navbar and footer.
Args:
path: The path of the page.
title: The title of the page.
description: The description of the page.
image: The image of the page.
demo: The demo link of the app.
meta: The meta tags of the page.
props: Props to apply to the template.
add_as_page: whether to add the route to the app pages.
Returns:
A wrapper function that returns the full webpage.
"""
props = props or {}
def webpage(contents: Callable[[], Route]) -> Route:
"""Wrapper to create a templated route.
Args:
contents: The function to create the page route.
| from pcweb.route import Route |
import functools
from typing import Callable
import reflex as rx
from pcweb.pages.framework.index_colors import index_colors
from pcweb.route import Route
def gallery_app_page(
path: str,
title: str,
description: str,
image: str,
demo: str,
meta: list[dict[str, str]] | None = None,
props=None,
add_as_page=True,
) -> Callable:
"""A template that most pages on the reflex.dev site should use.
This template wraps the webpage with the navbar and footer.
Args:
path: The path of the page.
title: The title of the page.
description: The description of the page.
image: The image of the page.
demo: The demo link of the app.
meta: The meta tags of the page.
props: Props to apply to the template.
add_as_page: whether to add the route to the app pages.
Returns:
A wrapper function that returns the full webpage.
"""
|
def webpage(contents: Callable[[], Route]) -> Route:
"""Wrapper to create a templated route.
Args:
contents: The function to create the page route.
Returns:
The templated route.
"""
@functools.wraps(contents)
def wrapper(*children, **props) -> rx.Component:
"""The template component.
Args:
children: The children components.
props: The props to apply to the component.
Returns:
The component with the template applied.
"""
# Import here to avoid circular imports.
from pcweb.components.docpage.navbar import navbar
from pcweb.pages.framework.views.footer_index import footer_index
from pcweb.views.bottom_section.bottom_section import bottom_section
# Wrap the component in the template.
return rx.box(
rx.box(
| props = props or {} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.