instruction stringlengths 0 1k | input stringlengths 1 1k | output stringlengths 10 6.51k |
|---|---|---|
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
|
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
meta = document.metadata
posts.a | from .blog import card_content |
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
|
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
meta = document.metadata
posts.append(card_conte | posts = [] |
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
|
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
meta = document.metadata
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
| blog_items = list(blog_data.items()) |
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
|
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
meta = document.metadata
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
return rx.el.section(
rx.el.h2(
"More Posts",
class_name="font-x-large gradient-heading",
),
rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 m | current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
) |
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
|
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
meta = document.metadata
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
return rx.el.section(
rx.el.h2(
"More Posts",
class_name="font-x-large gradient-heading",
),
rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 blog-grid",
),
class_name="flex flex-col gap-10 mt-20",
| selected_posts = blog_items[:3] |
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
|
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
meta = document.metadata
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
return rx.el.section(
rx.el.h2(
"More Posts",
class_name="font-x-large gradient-heading",
),
rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 blog-grid",
),
class_name="flex flex-col gap-10 mt-20",
)
def page(document, route) -> rx.Component:
"""Create a page."""
meta = document.metadata
return rx.el. | selected_posts = blog_items[1:4] |
import reflex as rx
from pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
|
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
meta = document.metadata
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
return rx.el.section(
rx.el.h2(
"More Posts",
class_name="font-x-large gradient-heading",
),
rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 blog-grid",
),
class_name="flex flex-col gap-10 mt-20",
)
def page(document, route) -> rx.Component:
"""Create a page."""
meta = document.metadata
return rx.el.section(
rx.el.article(
rx.link(
rx.box(
get_icon("arrow_right", class_name="rotate-18 | selected_posts = blog_items[-4:-1] |
rom pcweb.components.icons import get_icon
from pcweb.components.webpage.comps import h1_title
from pcweb.flexdown import xd2 as xd
from .paths import blog_data
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
|
for path, document in selected_posts:
meta = document.metadata
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
return rx.el.section(
rx.el.h2(
"More Posts",
class_name="font-x-large gradient-heading",
),
rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 blog-grid",
),
class_name="flex flex-col gap-10 mt-20",
)
def page(document, route) -> rx.Component:
"""Create a page."""
meta = document.metadata
return rx.el.section(
rx.el.article(
rx.link(
rx.box(
get_icon("arrow_right", class_name="rotate-180"),
"Back to Blog",
class_name="box-border flex justify-center items-center gap-2 border-slate-5 bg-slate-1 hover:bg-slate-3 -mb-4 px-3 py-0.5 border rounded-full font-small text-slate-9 transitio | selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
) |
def more_posts(current_post: dict) -> rx.Component:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
|
return rx.el.section(
rx.el.h2(
"More Posts",
class_name="font-x-large gradient-heading",
),
rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 blog-grid",
),
class_name="flex flex-col gap-10 mt-20",
)
def page(document, route) -> rx.Component:
"""Create a page."""
meta = document.metadata
return rx.el.section(
rx.el.article(
rx.link(
rx.box(
get_icon("arrow_right", class_name="rotate-180"),
"Back to Blog",
class_name="box-border flex justify-center items-center gap-2 border-slate-5 bg-slate-1 hover:bg-slate-3 -mb-4 px-3 py-0.5 border rounded-full font-small text-slate-9 transition-bg cursor-pointer",
),
underline="none",
href="/blog",
),
rx.el.header | for path, document in selected_posts:
meta = document.metadata
posts.append(card_content(meta=meta, path=f"/blog/{path}")) |
nent:
from .blog import card_content
posts = []
blog_items = list(blog_data.items())
current_index = next(
(
i
for i, (path, document) in enumerate(blog_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
# If current post is not found, default to first 3 posts
selected_posts = blog_items[:3]
elif current_index == 0:
# If it's the first post, get the next 3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
|
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
return rx.el.section(
rx.el.h2(
"More Posts",
class_name="font-x-large gradient-heading",
),
rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 blog-grid",
),
class_name="flex flex-col gap-10 mt-20",
)
def page(document, route) -> rx.Component:
"""Create a page."""
meta = document.metadata
return rx.el.section(
rx.el.article(
rx.link(
rx.box(
get_icon("arrow_right", class_name="rotate-180"),
"Back to Blog",
class_name="box-border flex justify-center items-center gap-2 border-slate-5 bg-slate-1 hover:bg-slate-3 -mb-4 px-3 py-0.5 border rounded-full font-small text-slate-9 transition-bg cursor-pointer",
),
underline="none",
| meta = document.metadata |
3
selected_posts = blog_items[1:4]
elif current_index == len(blog_items) - 1:
# If it's the last post, get the previous 3
selected_posts = blog_items[-4:-1]
else:
# Get previous 1 and next 2, excluding current post
selected_posts = (
blog_items[max(0, current_index - 1) : current_index]
+ blog_items[current_index + 1 : current_index + 3]
)
for path, document in selected_posts:
meta = document.metadata
posts.append(card_content(meta=meta, path=f"/blog/{path}"))
return rx.el.section(
rx.el.h2(
"More Posts",
class_name="font-x-large gradient-heading",
),
rx.box(
*posts,
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 [&>*]:min-w-[320px] w-full mb-4 blog-grid",
),
class_name="flex flex-col gap-10 mt-20",
)
def page(document, route) -> rx.Component:
"""Create a page."""
|
return rx.el.section(
rx.el.article(
rx.link(
rx.box(
get_icon("arrow_right", class_name="rotate-180"),
"Back to Blog",
class_name="box-border flex justify-center items-center gap-2 border-slate-5 bg-slate-1 hover:bg-slate-3 -mb-4 px-3 py-0.5 border rounded-full font-small text-slate-9 transition-bg cursor-pointer",
),
underline="none",
href="/blog",
),
rx.el.header(
h1_title(title=meta["title"]),
rx.el.h2(
str(meta["description"]),
class_name="font-md text-balance text-slate-10",
),
rx.box(
rx.text(
meta["author"],
),
rx.text(
"·",
),
rx.moment(
| meta = document.metadata |
from flexdown.document import Document
PAGES_PATH = "blog/"
def get_blog_data(paths):
blogs = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path_str = str(path).replace(PAGES_PATH, "").replace(".md", "/")
blogs[path_str] = document
return blogs
def get_route(path: str):
"""Get the route for a page."""
return path.replace(PAGES_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(PAGES_PATH)
blog_data = get_blog_data(paths)
| import flexdown | |
import flexdown
|
PAGES_PATH = "blog/"
def get_blog_data(paths):
blogs = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path_str = str(path).replace(PAGES_PATH, "").replace(".md", "/")
blogs[path_str] = document
return blogs
def get_route(path: str):
"""Get the route for a page."""
return path.replace(PAGES_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(PAGES_PATH)
blog_data = get_blog_data(paths)
| from flexdown.document import Document |
import flexdown
from flexdown.document import Document
|
def get_blog_data(paths):
blogs = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path_str = str(path).replace(PAGES_PATH, "").replace(".md", "/")
blogs[path_str] = document
return blogs
def get_route(path: str):
"""Get the route for a page."""
return path.replace(PAGES_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(PAGES_PATH)
blog_data = get_blog_data(paths)
| PAGES_PATH = "blog/" |
import flexdown
from flexdown.document import Document
PAGES_PATH = "blog/"
def get_blog_data(paths):
|
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path_str = str(path).replace(PAGES_PATH, "").replace(".md", "/")
blogs[path_str] = document
return blogs
def get_route(path: str):
"""Get the route for a page."""
return path.replace(PAGES_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(PAGES_PATH)
blog_data = get_blog_data(paths)
| blogs = {} |
import flexdown
from flexdown.document import Document
PAGES_PATH = "blog/"
def get_blog_data(paths):
blogs = {}
for path in sorted(paths, reverse=True):
|
path_str = str(path).replace(PAGES_PATH, "").replace(".md", "/")
blogs[path_str] = document
return blogs
def get_route(path: str):
"""Get the route for a page."""
return path.replace(PAGES_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(PAGES_PATH)
blog_data = get_blog_data(paths)
| document = Document.from_file(path) |
import flexdown
from flexdown.document import Document
PAGES_PATH = "blog/"
def get_blog_data(paths):
blogs = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path_str = str(path).replace(PAGES_PATH, "").replace(".md", "/")
|
return blogs
def get_route(path: str):
"""Get the route for a page."""
return path.replace(PAGES_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(PAGES_PATH)
blog_data = get_blog_data(paths)
| blogs[path_str] = document |
import flexdown
from flexdown.document import Document
PAGES_PATH = "blog/"
def get_blog_data(paths):
blogs = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path_str = str(path).replace(PAGES_PATH, "").replace(".md", "/")
blogs[path_str] = document
return blogs
def get_route(path: str):
"""Get the route for a page."""
return path.replace(PAGES_PATH, "").replace(".md", "")
|
blog_data = get_blog_data(paths)
| paths = flexdown.utils.get_flexdown_files(PAGES_PATH) |
import flexdown
from flexdown.document import Document
PAGES_PATH = "blog/"
def get_blog_data(paths):
blogs = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path_str = str(path).replace(PAGES_PATH, "").replace(".md", "/")
blogs[path_str] = document
return blogs
def get_route(path: str):
"""Get the route for a page."""
return path.replace(PAGES_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(PAGES_PATH)
| blog_data = get_blog_data(paths) | |
from pcweb.pages.customers.views.bento_cards import bento_cards
from pcweb.pages.customers.views.customers_list import customers_list
from pcweb.pages.customers.views.hero import hero
from pcweb.pages.customers.views.stats import stats
from pcweb.templates.mainpage import mainpage
@mainpage(path="/customers", title="Reflex · Customers")
def customers() -> rx.Component:
"""Get the Customers landing page."""
return rx.box(
hero(),
bento_cards(),
stats(),
customers_list(),
class_name="flex flex-col w-full justify-center items-center",
)
| import reflex as rx | |
import reflex as rx
from pcweb.pages.customers.views.bento_cards import bento_cards
from pcweb.pages.customers.views.customers_list import customers_list
|
from pcweb.pages.customers.views.stats import stats
from pcweb.templates.mainpage import mainpage
@mainpage(path="/customers", title="Reflex · Customers")
def customers() -> rx.Component:
"""Get the Customers landing page."""
return rx.box(
hero(),
bento_cards(),
stats(),
customers_list(),
class_name="flex flex-col w-full justify-center items-center",
)
| from pcweb.pages.customers.views.hero import hero |
import reflex as rx
from pcweb.pages.customers.views.bento_cards import bento_cards
from pcweb.pages.customers.views.customers_list import customers_list
from pcweb.pages.customers.views.hero import hero
|
from pcweb.templates.mainpage import mainpage
@mainpage(path="/customers", title="Reflex · Customers")
def customers() -> rx.Component:
"""Get the Customers landing page."""
return rx.box(
hero(),
bento_cards(),
stats(),
customers_list(),
class_name="flex flex-col w-full justify-center items-center",
)
| from pcweb.pages.customers.views.stats import stats |
import reflex as rx
from pcweb.pages.customers.views.bento_cards import bento_cards
from pcweb.pages.customers.views.customers_list import customers_list
from pcweb.pages.customers.views.hero import hero
from pcweb.pages.customers.views.stats import stats
|
@mainpage(path="/customers", title="Reflex · Customers")
def customers() -> rx.Component:
"""Get the Customers landing page."""
return rx.box(
hero(),
bento_cards(),
stats(),
customers_list(),
class_name="flex flex-col w-full justify-center items-center",
)
| from pcweb.templates.mainpage import mainpage |
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1) | import flexdown | |
import flexdown
|
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", " | import reflex as rx |
import flexdown
import reflex as rx
|
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path= | from flexdown.document import Document |
import flexdown
import reflex as rx
from flexdown.document import Document
|
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metada | from pcweb.flexdown import xd2 as xd |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
|
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.meta | from pcweb.templates.storypage import storypage |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
|
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
inve | def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
) |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
|
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors" | CUSTOMERS_PATH = "case-studies/" |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
|
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
| customers = {} |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
|
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add t | document = Document.from_file(path) |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
|
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add the route to the list of routes.
customers | path = str(path).replace(".md", "/") |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
|
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add the route to the list of routes.
customers_routes.append(comp)
| customers[path] = document |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
|
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add the route to the list of routes.
customers_routes.append(comp)
| def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "") |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
|
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add the route to the list of routes.
customers_routes.append(comp)
| paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH) |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
|
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add the route to the list of routes.
customers_routes.append(comp)
| customer_data = get_customer_data(paths) |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
|
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add the route to the list of routes.
customers_routes.append(comp)
| customers_routes = [] |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
|
title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", ""))
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add the route to the list of routes.
customers_routes.append(comp)
| route = f"/customers/{document.metadata['company'].lower()}" |
import flexdown
import reflex as rx
from flexdown.document import Document
from pcweb.flexdown import xd2 as xd
from pcweb.templates.storypage import storypage
def content(document):
return (
rx.box(
xd.render(document, document.filename),
),
)
CUSTOMERS_PATH = "case-studies/"
def get_customer_data(paths):
customers = {}
for path in sorted(paths, reverse=True):
document = Document.from_file(path)
path = str(path).replace(".md", "/")
customers[path] = document
return customers
def get_route(path: str):
"""Get the route for a page."""
return path.replace(CUSTOMERS_PATH, "").replace(".md", "")
paths = flexdown.utils.get_flexdown_files(CUSTOMERS_PATH)
customer_data = get_customer_data(paths)
customers_routes = []
for path, document in customer_data.items():
# Get the docpage component.
route = f"/customers/{document.metadata['company'].lower()}"
|
comp = storypage(
path=route,
company=document.metadata["company"],
description=document.metadata["description"],
domain=document.metadata["domain"],
founded=document.metadata["founded"],
investors=document.metadata["investors"],
stats=document.metadata["stats"],
meta=document.metadata["meta"],
)(lambda doc=document: content(doc))
# # Add the route to the list of routes.
customers_routes.append(comp)
| title = rx.utils.format.to_snake_case(path.rsplit("/", 1)[1].replace(".md", "")) |
def card(company: str, text: str, class_name: str = "") -> rx.Component:
return rx.link(
# Top-Left corner company logo
# Light
rx.image(
src=f"/customers/light/{company}/{company}_top.svg",
alt=f"{company} logo",
loading="lazy",
class_name="absolute top-10 left-10 z-[2] max-h-[32px] dark:hidden",
),
# Dark
rx.image(
src=f"/customers/dark/{company}/{company}_top.svg",
alt=f"{company} logo",
loading="lazy",
class_name="absolute top-10 left-10 z-[2] max-h-[32px] dark:block hidden",
),
# Center company logo
# Light
rx.image(
src=f"/customers/light/{company}/{company}_middle.svg",
alt=f"{company} small logo",
loading="lazy",
class_name="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-[2] max-h-[88px] dark:hidden",
),
# Dark | import reflex as rx | |
class_name="shrink-0 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-[1] pointer-events-none w-[15rem] h-[15rem]",
),
# Text
rx.text(
text,
class_name="text-slate-12 font-md-smbold absolute bottom-10 left-10 text-balance break-words max-w-[85%]",
),
# Read text
rx.box(
rx.text(
"Read",
class_name="text-slate-9 font-small]",
),
rx.icon(
tag="chevron-right",
class_name="!text-slate-9 size-3.5 group-hover:translate-x-0.5 transition-transform duration-150",
),
class_name="absolute bottom-10 right-10 items-center gap-2 lg:flex hidden",
),
href=f"/customers/{company.lower()}",
class_name="rounded-[1.125rem] border border-solid border-slate-4 bg-slate-2 p-10 overflow-hidden relative h-[23.25rem] lg:shadow-large group"
+ class_name,
)
|
def _card(company: str, is_company: bool = True, **kwarg) -> rx.Component:
return rx.link(
# Center company logo
rx.cond(
is_company,
rx.fragment(
rx.image(
f"/customers/light/{company}/{company}_middle.svg",
alt=f"{company} small logo",
loading="lazy",
class_name="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-[2] max-h-[88px] dark:hidden",
),
rx.image(
f"/customers/dark/{company}/{company}_middle.svg",
alt=f"{company} small logo",
loading="lazy",
class_name="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-[2] max-h-[88px] dark:block hidden",
),
),
rx.image(
**kwarg,
alt=f"{company} small logo",
load | def bento_cards() -> rx.Component:
return rx.el.section(
card(
company="autodesk",
text="How Autodesk saved 25% of their development time on each project with Reflex",
),
# Bayesline
card(
company="bayesline",
text="Why Bayesline chose Reflex over Plotly Dash for their production-grade apps",
),
# Ansa
card(
company="ansa",
text="How Ansa saved 100 hours of manual work a month with Reflex",
),
# Seller X
card(
company="sellerx",
text="Why SellerX chose Reflex over Streamlit",
),
class_name="grid grid-cols-1 lg:grid-cols-2 gap-4 mx-auto w-full max-w-[69.25rem]",
) |
from pcweb.pages.docs import getting_started
class CustomersState(rx.State):
tags: list[str] = []
@rx.event
def add_tag(self, tag: str):
if tag not in self.tags:
self.tags.append(tag)
else:
self.tags.remove(tag)
@rx.event
def clear_tags(self):
self.tags = []
def tag_item(tag: str):
return rx.box(
rx.text(
tag,
class_name="font-small shrink-0",
color=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-white-1)",
"var(--c-slate-9)",
),
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0",
background_=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-2)",
),
_hover={
"background": rx.cond(
CustomersState.tags.contains(tag),
| import reflex as rx | |
import reflex as rx
|
class CustomersState(rx.State):
tags: list[str] = []
@rx.event
def add_tag(self, tag: str):
if tag not in self.tags:
self.tags.append(tag)
else:
self.tags.remove(tag)
@rx.event
def clear_tags(self):
self.tags = []
def tag_item(tag: str):
return rx.box(
rx.text(
tag,
class_name="font-small shrink-0",
color=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-white-1)",
"var(--c-slate-9)",
),
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0",
background_=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-2)",
),
_hover={
"background": rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
| from pcweb.pages.docs import getting_started |
import reflex as rx
from pcweb.pages.docs import getting_started
|
def tag_item(tag: str):
return rx.box(
rx.text(
tag,
class_name="font-small shrink-0",
color=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-white-1)",
"var(--c-slate-9)",
),
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0",
background_=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-2)",
),
_hover={
"background": rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-3)",
)
},
on_click=CustomersState.add_tag(tag),
)
def all_tag():
return rx.box(
rx.text(
"All",
class_name="font-small shrink-0 text-slate-9",
),
class_name="flex items-center justify- | class CustomersState(rx.State):
tags: list[str] = []
@rx.event
def add_tag(self, tag: str):
if tag not in self.tags:
self.tags.append(tag)
else:
self.tags.remove(tag)
@rx.event
def clear_tags(self):
self.tags = [] |
import reflex as rx
from pcweb.pages.docs import getting_started
class CustomersState(rx.State):
tags: list[str] = []
@rx.event
|
@rx.event
def clear_tags(self):
self.tags = []
def tag_item(tag: str):
return rx.box(
rx.text(
tag,
class_name="font-small shrink-0",
color=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-white-1)",
"var(--c-slate-9)",
),
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0",
background_=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-2)",
),
_hover={
"background": rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-3)",
)
},
on_click=CustomersState.add_tag(tag),
)
def all_tag():
return rx.box(
rx.text(
"All",
class_name="font-small shrink-0 text-sla | def add_tag(self, tag: str):
if tag not in self.tags:
self.tags.append(tag)
else:
self.tags.remove(tag) |
import reflex as rx
from pcweb.pages.docs import getting_started
class CustomersState(rx.State):
tags: list[str] = []
@rx.event
def add_tag(self, tag: str):
|
@rx.event
def clear_tags(self):
self.tags = []
def tag_item(tag: str):
return rx.box(
rx.text(
tag,
class_name="font-small shrink-0",
color=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-white-1)",
"var(--c-slate-9)",
),
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0",
background_=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-2)",
),
_hover={
"background": rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-3)",
)
},
on_click=CustomersState.add_tag(tag),
)
def all_tag():
return rx.box(
rx.text(
"All",
class_name="font-small shrink-0 text-sla | if tag not in self.tags:
self.tags.append(tag)
else:
self.tags.remove(tag) |
import reflex as rx
from pcweb.pages.docs import getting_started
class CustomersState(rx.State):
tags: list[str] = []
@rx.event
def add_tag(self, tag: str):
if tag not in self.tags:
self.tags.append(tag)
else:
self.tags.remove(tag)
@rx.event
|
def tag_item(tag: str):
return rx.box(
rx.text(
tag,
class_name="font-small shrink-0",
color=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-white-1)",
"var(--c-slate-9)",
),
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0",
background_=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-2)",
),
_hover={
"background": rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-3)",
)
},
on_click=CustomersState.add_tag(tag),
)
def all_tag():
return rx.box(
rx.text(
"All",
class_name="font-small shrink-0 text-slate-9",
),
class_name="flex items-center justify- | def clear_tags(self):
self.tags = [] |
import reflex as rx
from pcweb.pages.docs import getting_started
class CustomersState(rx.State):
tags: list[str] = []
@rx.event
def add_tag(self, tag: str):
if tag not in self.tags:
self.tags.append(tag)
else:
self.tags.remove(tag)
@rx.event
def clear_tags(self):
|
def tag_item(tag: str):
return rx.box(
rx.text(
tag,
class_name="font-small shrink-0",
color=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-white-1)",
"var(--c-slate-9)",
),
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0",
background_=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-2)",
),
_hover={
"background": rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-3)",
)
},
on_click=CustomersState.add_tag(tag),
)
def all_tag():
return rx.box(
rx.text(
"All",
class_name="font-small shrink-0 text-slate-9",
),
class_name="flex items-center justify- | self.tags = [] |
: str):
if tag not in self.tags:
self.tags.append(tag)
else:
self.tags.remove(tag)
@rx.event
def clear_tags(self):
self.tags = []
def tag_item(tag: str):
return rx.box(
rx.text(
tag,
class_name="font-small shrink-0",
color=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-white-1)",
"var(--c-slate-9)",
),
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0",
background_=rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-2)",
),
_hover={
"background": rx.cond(
CustomersState.tags.contains(tag),
"var(--c-violet-9)",
"var(--c-slate-3)",
)
},
on_click=CustomersState.add_tag(tag),
)
|
def filtering_tags():
return rx.box(
# Glow
rx.html(
"""<svg xmlns="http://www.w3.org/2000/svg" width="404" height="88" viewBox="0 0 404 88" fill="none">
<path d="M3.05176e-05 44C3.05176e-05 68.3005 90.4385 88 202 88C313.562 88 404 68.3005 404 44C404 19.6995 313.562 0 202 0C90.4385 0 3.05176e-05 19.6995 3.05176e-05 44Z" fill="url(#paint0_radial_10972_6282)"/>
<defs>
<radialGradient id="paint0_radial_10972_6282" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(202 44) rotate(90) scale(44 202)">
<stop stop-color="var(--c-violet-3)"/>
<stop offset="1" stop-color="var(--c-slate-2)" stop-opacity="0"/>
</radialGradient>
</defs>
</svg>
""",
class_name="w-[25.25rem] h-[5.5rem] shrink-0 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-[0] pointer-events-none -mt-2",
),
rx.box(
all_tag(),
tag_item("Open Source"),
tag_it | def all_tag():
return rx.box(
rx.text(
"All",
class_name="font-small shrink-0 text-slate-9",
),
class_name="flex items-center justify-center px-3 py-1.5 cursor-pointer transition-bg shrink-0 bg-slate-1 hover:bg-slate-3",
on_click=CustomersState.clear_tags(),
) |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> | from datetime import datetime | |
from datetime import datetime
|
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
re | import reflex as rx |
from datetime import datetime
import reflex as rx
|
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
h | from pcweb.components.button import button |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
|
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold | from pcweb.components.icons import get_icon |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
|
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def socia | from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
) |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
|
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> | from pcweb.pages.blog import blogs |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
|
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(ic | from pcweb.pages.docs import getting_started, hosting |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
|
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
| from pcweb.pages.docs.library import library |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
|
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border bo | from pcweb.pages.errors import errors |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
|
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg | from pcweb.pages.faq import faq |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
|
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-cen | from pcweb.pages.framework.views.footer_index import dark_mode_toggle |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
|
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-center border-solid",
href=url,
| from pcweb.pages.gallery import gallery |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
|
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-center border-solid",
href=url,
is_external=True,
)
def menu_socials() -> rx.Com | from pcweb.pages.use_cases.use_cases import use_cases_page |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
|
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-center border-solid",
href=url,
is_external=True,
)
def menu_socials() -> rx.Component:
return rx.box(
s | from pcweb.signup import IndexState |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
|
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-center border-solid",
href=url,
is_external=True,
)
def menu_socials() -> rx.Component:
return rx.box(
social_menu_item("discord_navbar", DI | from pcweb.views.footer import ph_1 |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
|
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-center border-solid",
href=url,
is_external=True,
)
def menu_socials() -> rx.Component:
return rx.box(
social_menu_item("discord_navbar", DISCORD_URL),
social_menu_item("forum", FORUM_URL),
social_menu_item("twitter", TWITTER_URL),
social_menu_item("github_navbar", GITHUB_URL),
social_menu_item("linkedin", LINKEDIN_URL),
| def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
) |
from datetime import datetime
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
|
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-center border-solid",
href=url,
is_external=True,
)
def menu_socials() -> rx.Component:
return rx.box(
social_menu_item("discord_navbar", DISCORD_URL),
social_menu_item("forum", FORUM_URL),
social_menu_item("twitter", TWITTER_URL),
social_menu_item("github_navbar", GITHUB_URL),
social_menu_item("linkedin", LINKEDIN_URL),
class_name="flex flex-row h-full align-center gap-2",
)
def newletter_input() -> rx.Component:
return rx.box(
rx.cond(
IndexState.signed_up,
rx.box(
rx.box(
rx.icon(
tag="circle-check",
size=16, | def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
) |
ER_URL,
)
from pcweb.pages.blog import blogs
from pcweb.pages.docs import getting_started, hosting
from pcweb.pages.docs.library import library
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.framework.views.footer_index import dark_mode_toggle
from pcweb.pages.gallery import gallery
from pcweb.pages.use_cases.use_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
|
def menu_socials() -> rx.Component:
return rx.box(
social_menu_item("discord_navbar", DISCORD_URL),
social_menu_item("forum", FORUM_URL),
social_menu_item("twitter", TWITTER_URL),
social_menu_item("github_navbar", GITHUB_URL),
social_menu_item("linkedin", LINKEDIN_URL),
class_name="flex flex-row h-full align-center gap-2",
)
def newletter_input() -> rx.Component:
return rx.box(
rx.cond(
IndexState.signed_up,
rx.box(
rx.box(
rx.icon(
tag="circle-check",
size=16,
class_name="!text-violet-9",
),
rx.text(
"Thanks for subscribing!",
class_name="font-base text-slate-11",
),
class_name="flex flex-row items-center gap-2",
),
button(
| def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-center border-solid",
href=url,
is_external=True,
) |
_cases import use_cases_page
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-fit",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h4(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 p-10" + " " + class_name,
)
def social_menu_item(icon: str, url: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex size-8 border border-slate-5 rounded-lg hover:bg-slate-3 transition-bg bg-slate-1 px-3 py-1.5 justify-center items-center border-solid",
href=url,
is_external=True,
)
|
def newletter_input() -> rx.Component:
return rx.box(
rx.cond(
IndexState.signed_up,
rx.box(
rx.box(
rx.icon(
tag="circle-check",
size=16,
class_name="!text-violet-9",
),
rx.text(
"Thanks for subscribing!",
class_name="font-base text-slate-11",
),
class_name="flex flex-row items-center gap-2",
),
button(
"Sign up for another email",
variant="muted",
on_click=IndexState.signup_for_another_user,
),
class_name="flex flex-col flex-wrap gap-2",
),
rx.form(
rx.el.input(
placeholder="Your email",
name="input_email",
| def menu_socials() -> rx.Component:
return rx.box(
social_menu_item("discord_navbar", DISCORD_URL),
social_menu_item("forum", FORUM_URL),
social_menu_item("twitter", TWITTER_URL),
social_menu_item("github_navbar", GITHUB_URL),
social_menu_item("linkedin", LINKEDIN_URL),
class_name="flex flex-row h-full align-center gap-2",
) |
variant="muted",
on_click=IndexState.signup_for_another_user,
),
class_name="flex flex-col flex-wrap gap-2",
),
rx.form(
rx.el.input(
placeholder="Your email",
name="input_email",
type="email",
class_name="relative box-border border-slate-4 focus:border-violet-9 focus:border-1 bg-slate-2 p-[0.5rem_0.75rem] border rounded-lg font-small text-slate-11 placeholder:text-slate-9 outline-none focus:outline-none w-full h-8",
),
button(
"Subscribe",
type="submit",
variant="muted",
class_name="!h-8 !rounded-lg !py-2 !px-3.5 !font-small-smbold",
),
class_name="w-full flex flex-row gap-2 items-center",
on_submit=IndexState.signup,
),
)
)
|
@rx.memo
def footer_customer() -> rx.Component:
return rx.el.footer(
rx.box(
footer_link_flex(
"Reflex",
[
footer_link("Home", "/"),
footer_link("Templates", gallery.path),
footer_link("Blog", blogs.path),
footer_link(
"Changelog", "https://github.com/reflex-dev/reflex/releases"
),
],
class_name="!row-span-2",
),
footer_link_flex(
"Documentation",
[
footer_link("Introduction", getting_started.introduction.path),
footer_link("Installation", getting_started.installation.path),
footer_link("Components", library.path),
footer_link("Hosting", hosting.deploy_quick_start.path),
],
class_name="!border-t-0 !row-span-2" | def news_letter() -> rx.Component:
return (
rx.box(
rx.text(
"Get updates",
class_name="font-small text-slate-9",
),
newletter_input(),
class_name="flex flex-col items-start gap-4 self-stretch p-10",
),
) |
def hero() -> rx.Component:
return rx.el.section(
rx.el.h1(
"""Meet the teams
who chose Reflex""",
class_name="max-w-full inline-block bg-clip-text bg-gradient-to-r from-slate-12 to-slate-11 w-full font-xx-large text-center text-transparent text-balance whitespace-pre mx-auto break-words",
),
rx.el.h2(
"""Companies of all sizes trust Reflex to build internal tools and customer-facing apps""",
class_name="max-w-full w-full font-md-smbold text-center text-slate-9 whitespace-pre 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-[2.5rem] pt-24 lg:pt-48",
)
| import reflex as rx | |
def stat_card(stat: str, text: str, class_name: str = "") -> rx.Component:
return rx.box(
rx.text(stat, class_name="font-x-large text-slate-12"),
rx.text(text, class_name="font-base text-slate-9"),
class_name="flex flex-col gap-2 w-full p-10 items-center lg:items-start",
)
def stats_grid() -> rx.Component:
return rx.box(
rx.box(
rx.text(
"With Reflex you can start with an mvp and scale up to a full fledged production application",
class_name="font-base text-slate-9 max-w-[12.875rem] text-center lg:text-left",
),
class_name="p-10 lg:border-l border-slate-3 flex justify-center lg:justify-start",
),
stat_card(stat="500+", text="Teams using Reflex in a production environment"),
stat_card(
stat="10,000+", text="New applications built with Reflex every month"
),
class_name="grid grid-cols-1 lg:grid-cols-3 gap-0 grid-rows-1 w- | import reflex as rx | |
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.databricks.views.cta import final_cta
from pcweb.pages.databricks.views.hero import hero
from pcweb.pages.databricks.views.integrations import integrations
from pcweb.pages.databricks.views.security import security
from pcweb.pages.databricks.views.video import video
from pcweb.templates.mainpage import mainpage
@mainpage(
path="/databricks",
title="Databricks - Reflex",
meta=create_meta_tags(
"Databricks - Reflex",
"Databricks - Reflex",
"/previews/databricks_preview.webp",
),
)
def databricks_page():
return rx.el.div(
hero(),
video(),
integrations(),
security(),
final_cta(),
class_name="flex flex-col size-full justify-center items-center",
)
| import reflex as rx | |
import reflex as rx
|
from pcweb.pages.databricks.views.cta import final_cta
from pcweb.pages.databricks.views.hero import hero
from pcweb.pages.databricks.views.integrations import integrations
from pcweb.pages.databricks.views.security import security
from pcweb.pages.databricks.views.video import video
from pcweb.templates.mainpage import mainpage
@mainpage(
path="/databricks",
title="Databricks - Reflex",
meta=create_meta_tags(
"Databricks - Reflex",
"Databricks - Reflex",
"/previews/databricks_preview.webp",
),
)
def databricks_page():
return rx.el.div(
hero(),
video(),
integrations(),
security(),
final_cta(),
class_name="flex flex-col size-full justify-center items-center",
)
| from pcweb.meta.meta import create_meta_tags |
import reflex as rx
from pcweb.meta.meta import create_meta_tags
|
from pcweb.pages.databricks.views.hero import hero
from pcweb.pages.databricks.views.integrations import integrations
from pcweb.pages.databricks.views.security import security
from pcweb.pages.databricks.views.video import video
from pcweb.templates.mainpage import mainpage
@mainpage(
path="/databricks",
title="Databricks - Reflex",
meta=create_meta_tags(
"Databricks - Reflex",
"Databricks - Reflex",
"/previews/databricks_preview.webp",
),
)
def databricks_page():
return rx.el.div(
hero(),
video(),
integrations(),
security(),
final_cta(),
class_name="flex flex-col size-full justify-center items-center",
)
| from pcweb.pages.databricks.views.cta import final_cta |
import reflex as rx
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.databricks.views.cta import final_cta
|
from pcweb.pages.databricks.views.integrations import integrations
from pcweb.pages.databricks.views.security import security
from pcweb.pages.databricks.views.video import video
from pcweb.templates.mainpage import mainpage
@mainpage(
path="/databricks",
title="Databricks - Reflex",
meta=create_meta_tags(
"Databricks - Reflex",
"Databricks - Reflex",
"/previews/databricks_preview.webp",
),
)
def databricks_page():
return rx.el.div(
hero(),
video(),
integrations(),
security(),
final_cta(),
class_name="flex flex-col size-full justify-center items-center",
)
| from pcweb.pages.databricks.views.hero import hero |
import reflex as rx
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.databricks.views.cta import final_cta
from pcweb.pages.databricks.views.hero import hero
|
from pcweb.pages.databricks.views.security import security
from pcweb.pages.databricks.views.video import video
from pcweb.templates.mainpage import mainpage
@mainpage(
path="/databricks",
title="Databricks - Reflex",
meta=create_meta_tags(
"Databricks - Reflex",
"Databricks - Reflex",
"/previews/databricks_preview.webp",
),
)
def databricks_page():
return rx.el.div(
hero(),
video(),
integrations(),
security(),
final_cta(),
class_name="flex flex-col size-full justify-center items-center",
)
| from pcweb.pages.databricks.views.integrations import integrations |
import reflex as rx
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.databricks.views.cta import final_cta
from pcweb.pages.databricks.views.hero import hero
from pcweb.pages.databricks.views.integrations import integrations
|
from pcweb.pages.databricks.views.video import video
from pcweb.templates.mainpage import mainpage
@mainpage(
path="/databricks",
title="Databricks - Reflex",
meta=create_meta_tags(
"Databricks - Reflex",
"Databricks - Reflex",
"/previews/databricks_preview.webp",
),
)
def databricks_page():
return rx.el.div(
hero(),
video(),
integrations(),
security(),
final_cta(),
class_name="flex flex-col size-full justify-center items-center",
)
| from pcweb.pages.databricks.views.security import security |
import reflex as rx
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.databricks.views.cta import final_cta
from pcweb.pages.databricks.views.hero import hero
from pcweb.pages.databricks.views.integrations import integrations
from pcweb.pages.databricks.views.security import security
|
from pcweb.templates.mainpage import mainpage
@mainpage(
path="/databricks",
title="Databricks - Reflex",
meta=create_meta_tags(
"Databricks - Reflex",
"Databricks - Reflex",
"/previews/databricks_preview.webp",
),
)
def databricks_page():
return rx.el.div(
hero(),
video(),
integrations(),
security(),
final_cta(),
class_name="flex flex-col size-full justify-center items-center",
)
| from pcweb.pages.databricks.views.video import video |
import reflex as rx
from pcweb.meta.meta import create_meta_tags
from pcweb.pages.databricks.views.cta import final_cta
from pcweb.pages.databricks.views.hero import hero
from pcweb.pages.databricks.views.integrations import integrations
from pcweb.pages.databricks.views.security import security
from pcweb.pages.databricks.views.video import video
|
@mainpage(
path="/databricks",
title="Databricks - Reflex",
meta=create_meta_tags(
"Databricks - Reflex",
"Databricks - Reflex",
"/previews/databricks_preview.webp",
),
)
def databricks_page():
return rx.el.div(
hero(),
video(),
integrations(),
security(),
final_cta(),
class_name="flex flex-col size-full justify-center items-center",
)
| from pcweb.templates.mainpage import mainpage |
import reflex_ui as ui
from pcweb.components.numbers_pattern import numbers_pattern
from pcweb.pages.docs import ai_builder
def content() -> rx.Component:
return rx.el.div(
rx.el.h2(
"See how it works",
class_name="text-slate-12 lg:text-4xl text-3xl font-semibold text-center",
),
ui.link(
render_=ui.button(
"Databricks Documentation",
size="lg",
class_name="font-semibold mt-8 h-10",
),
to=ai_builder.integrations.databricks.path,
target="_blank",
),
class_name="flex flex-col items-center mx-auto w-full justify-center max-w-[42rem]",
)
def final_cta() -> rx.Component:
return rx.el.section(
numbers_pattern(side="left", reverse=False, class_name="left-0 top-0"),
numbers_pattern(side="right", reverse=False, class_name="right-0 top-0"),
content(),
class_name="flex flex-col items-center | import reflex as rx | |
import reflex as rx
|
from pcweb.components.numbers_pattern import numbers_pattern
from pcweb.pages.docs import ai_builder
def content() -> rx.Component:
return rx.el.div(
rx.el.h2(
"See how it works",
class_name="text-slate-12 lg:text-4xl text-3xl font-semibold text-center",
),
ui.link(
render_=ui.button(
"Databricks Documentation",
size="lg",
class_name="font-semibold mt-8 h-10",
),
to=ai_builder.integrations.databricks.path,
target="_blank",
),
class_name="flex flex-col items-center mx-auto w-full justify-center max-w-[42rem]",
)
def final_cta() -> rx.Component:
return rx.el.section(
numbers_pattern(side="left", reverse=False, class_name="left-0 top-0"),
numbers_pattern(side="right", reverse=False, class_name="right-0 top-0"),
content(),
class_name="flex flex-col items-center mx-auto w-full max-w-[ | import reflex_ui as ui |
import reflex as rx
import reflex_ui as ui
|
from pcweb.pages.docs import ai_builder
def content() -> rx.Component:
return rx.el.div(
rx.el.h2(
"See how it works",
class_name="text-slate-12 lg:text-4xl text-3xl font-semibold text-center",
),
ui.link(
render_=ui.button(
"Databricks Documentation",
size="lg",
class_name="font-semibold mt-8 h-10",
),
to=ai_builder.integrations.databricks.path,
target="_blank",
),
class_name="flex flex-col items-center mx-auto w-full justify-center max-w-[42rem]",
)
def final_cta() -> rx.Component:
return rx.el.section(
numbers_pattern(side="left", reverse=False, class_name="left-0 top-0"),
numbers_pattern(side="right", reverse=False, class_name="right-0 top-0"),
content(),
class_name="flex flex-col items-center mx-auto w-full max-w-[64.19rem] lg:border-x border-slate-3 relative overflow-hidden | from pcweb.components.numbers_pattern import numbers_pattern |
import reflex as rx
import reflex_ui as ui
from pcweb.components.numbers_pattern import numbers_pattern
|
def content() -> rx.Component:
return rx.el.div(
rx.el.h2(
"See how it works",
class_name="text-slate-12 lg:text-4xl text-3xl font-semibold text-center",
),
ui.link(
render_=ui.button(
"Databricks Documentation",
size="lg",
class_name="font-semibold mt-8 h-10",
),
to=ai_builder.integrations.databricks.path,
target="_blank",
),
class_name="flex flex-col items-center mx-auto w-full justify-center max-w-[42rem]",
)
def final_cta() -> rx.Component:
return rx.el.section(
numbers_pattern(side="left", reverse=False, class_name="left-0 top-0"),
numbers_pattern(side="right", reverse=False, class_name="right-0 top-0"),
content(),
class_name="flex flex-col items-center mx-auto w-full max-w-[64.19rem] lg:border-x border-slate-3 relative overflow-hidden py-20",
)
| from pcweb.pages.docs import ai_builder |
from pcweb.components.numbers_pattern import numbers_pattern
def hero() -> rx.Component:
return rx.el.section(
numbers_pattern(
side="left",
class_name="lg:top-[65px] top-[45px] lg:h-[calc(100%-65px)] h-[calc(100%-45px)]",
),
numbers_pattern(
side="right",
class_name="lg:top-[65px] top-[45px] lg:h-[calc(100%-65px)] h-[calc(100%-45px)]",
),
rx.el.h1(
"Reflex x Databricks",
class_name="text-slate-12 lg:text-4xl text-3xl font-semibold text-center lg:max-w-[576px] text-balance",
),
rx.el.h2(
"The most powerful App Builder for Databricks.",
class_name="text-slate-10 text-xl font-medium text-center lg:max-w-[576px] text-balance",
),
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-[3rem] pt-28 lg:pt-[8rem] relative lg:overflow-hidden overflow-hidd | import reflex as rx | |
import reflex as rx
|
def hero() -> rx.Component:
return rx.el.section(
numbers_pattern(
side="left",
class_name="lg:top-[65px] top-[45px] lg:h-[calc(100%-65px)] h-[calc(100%-45px)]",
),
numbers_pattern(
side="right",
class_name="lg:top-[65px] top-[45px] lg:h-[calc(100%-65px)] h-[calc(100%-45px)]",
),
rx.el.h1(
"Reflex x Databricks",
class_name="text-slate-12 lg:text-4xl text-3xl font-semibold text-center lg:max-w-[576px] text-balance",
),
rx.el.h2(
"The most powerful App Builder for Databricks.",
class_name="text-slate-10 text-xl font-medium text-center lg:max-w-[576px] text-balance",
),
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-[3rem] pt-28 lg:pt-[8rem] relative lg:overflow-hidden overflow-hidden z-[1] bg-transparent lg:bg-slate-1 lg:px-4",
)
| from pcweb.components.numbers_pattern import numbers_pattern |
import reflex_ui as ui
from pcweb.components.numbers_pattern import numbers_pattern
def header() -> rx.Component:
return rx.el.div(
rx.el.div(
ui.icon("WorkflowSquare08Icon", class_name="shrink-0"),
rx.el.span("Integrations", class_name="text-sm font-semibold"),
class_name="flex flex-row gap-2 items-center text-primary-9",
),
rx.el.h2(
"Integrate with Everything in Databricks",
class_name="max-w-full w-full lg:text-3xl text-2xl text-center text-slate-12 font-semibold text-balance",
),
class_name="flex flex-col gap-4 items-center justify-center w-full relative overflow-hidden mx-auto",
)
def intregation_card(
first_integration: str,
text: str = "",
class_name: str = "",
):
first_light_dark_path = f"/landing/integrations/light/{first_integration}.svg"
return rx.el.div(
rx.el.div(
rx.image(
src=first_light_dark_path,
| import reflex as rx | |
import reflex as rx
|
from pcweb.components.numbers_pattern import numbers_pattern
def header() -> rx.Component:
return rx.el.div(
rx.el.div(
ui.icon("WorkflowSquare08Icon", class_name="shrink-0"),
rx.el.span("Integrations", class_name="text-sm font-semibold"),
class_name="flex flex-row gap-2 items-center text-primary-9",
),
rx.el.h2(
"Integrate with Everything in Databricks",
class_name="max-w-full w-full lg:text-3xl text-2xl text-center text-slate-12 font-semibold text-balance",
),
class_name="flex flex-col gap-4 items-center justify-center w-full relative overflow-hidden mx-auto",
)
def intregation_card(
first_integration: str,
text: str = "",
class_name: str = "",
):
first_light_dark_path = f"/landing/integrations/light/{first_integration}.svg"
return rx.el.div(
rx.el.div(
rx.image(
src=first_light_dark_path,
class_name= | import reflex_ui as ui |
import reflex as rx
import reflex_ui as ui
|
def header() -> rx.Component:
return rx.el.div(
rx.el.div(
ui.icon("WorkflowSquare08Icon", class_name="shrink-0"),
rx.el.span("Integrations", class_name="text-sm font-semibold"),
class_name="flex flex-row gap-2 items-center text-primary-9",
),
rx.el.h2(
"Integrate with Everything in Databricks",
class_name="max-w-full w-full lg:text-3xl text-2xl text-center text-slate-12 font-semibold text-balance",
),
class_name="flex flex-col gap-4 items-center justify-center w-full relative overflow-hidden mx-auto",
)
def intregation_card(
first_integration: str,
text: str = "",
class_name: str = "",
):
first_light_dark_path = f"/landing/integrations/light/{first_integration}.svg"
return rx.el.div(
rx.el.div(
rx.image(
src=first_light_dark_path,
class_name="size-7 pointer-events-none shrink-0",
),
| from pcweb.components.numbers_pattern import numbers_pattern |
import reflex as rx
import reflex_ui as ui
from pcweb.components.numbers_pattern import numbers_pattern
|
def intregation_card(
first_integration: str,
text: str = "",
class_name: str = "",
):
first_light_dark_path = f"/landing/integrations/light/{first_integration}.svg"
return rx.el.div(
rx.el.div(
rx.image(
src=first_light_dark_path,
class_name="size-7 pointer-events-none shrink-0",
),
class_name=ui.cn(
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 size-14 rounded-[0.625rem] border border-slate-5 dark:border-[#1C2024] shadow-medium bg-white-1 z-[3] flex justify-center items-center",
class_name,
),
),
rx.el.span(
text,
class_name="text-slate-9 text-xs font-medium mt-[5rem]",
)
if text
else None,
class_name="relative flex flex-col items-center justify-center h-14",
)
def line_svg(class_name: str = "") -> rx.Component:
return rx.html(
"""<svg widt | def header() -> rx.Component:
return rx.el.div(
rx.el.div(
ui.icon("WorkflowSquare08Icon", class_name="shrink-0"),
rx.el.span("Integrations", class_name="text-sm font-semibold"),
class_name="flex flex-row gap-2 items-center text-primary-9",
),
rx.el.h2(
"Integrate with Everything in Databricks",
class_name="max-w-full w-full lg:text-3xl text-2xl text-center text-slate-12 font-semibold text-balance",
),
class_name="flex flex-col gap-4 items-center justify-center w-full relative overflow-hidden mx-auto",
) |
import reflex as rx
import reflex_ui as ui
from pcweb.components.numbers_pattern import numbers_pattern
def header() -> rx.Component:
return rx.el.div(
rx.el.div(
ui.icon("WorkflowSquare08Icon", class_name="shrink-0"),
rx.el.span("Integrations", class_name="text-sm font-semibold"),
class_name="flex flex-row gap-2 items-center text-primary-9",
),
rx.el.h2(
"Integrate with Everything in Databricks",
class_name="max-w-full w-full lg:text-3xl text-2xl text-center text-slate-12 font-semibold text-balance",
),
class_name="flex flex-col gap-4 items-center justify-center w-full relative overflow-hidden mx-auto",
)
def intregation_card(
first_integration: str,
text: str = "",
class_name: str = "",
):
|
return rx.el.div(
rx.el.div(
rx.image(
src=first_light_dark_path,
class_name="size-7 pointer-events-none shrink-0",
),
class_name=ui.cn(
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 size-14 rounded-[0.625rem] border border-slate-5 dark:border-[#1C2024] shadow-medium bg-white-1 z-[3] flex justify-center items-center",
class_name,
),
),
rx.el.span(
text,
class_name="text-slate-9 text-xs font-medium mt-[5rem]",
)
if text
else None,
class_name="relative flex flex-col items-center justify-center h-14",
)
def line_svg(class_name: str = "") -> rx.Component:
return rx.html(
"""<svg width="120" height="293" viewBox="0 0 120 293" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0.5H20.9869C27.6193 0.5 33.5641 4.5919 35.9322 10.7871L87.9999 147M87.9999 147H12 | first_light_dark_path = f"/landing/integrations/light/{first_integration}.svg" |
enter justify-center h-14",
)
def line_svg(class_name: str = "") -> rx.Component:
return rx.html(
"""<svg width="120" height="293" viewBox="0 0 120 293" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 0.5H20.9869C27.6193 0.5 33.5641 4.5919 35.9322 10.7871L87.9999 147M87.9999 147H120M87.9999 147L35.946 282.247C33.5685 288.424 27.6328 292.5 21.0138 292.5H0M87.9999 147L36.5527 101.065C33.6206 98.447 29.8273 97 25.8965 97H0M87.9999 147L36.4938 191.148C33.5939 193.634 29.9005 195 26.0811 195H0" stroke="url(#paint0_linear_20013_5747)"/>
<defs>
<linearGradient id="paint0_linear_20013_5747" x1="120" y1="147" x2="0" y2="147" gradientUnits="userSpaceOnUse">
<stop stop-color="#FCFCFD" stop-opacity="0"/>
<stop offset="0.08" stop-color="#E8E8EC"/>
<stop offset="0.92" stop-color="#E8E8EC"/>
<stop offset="1" stop-color="#FCFCFD" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>
""",
class_name=f"absolute z-[0] opacity-60 dark:opacity-100 {class_name}",
)
|
def r_logo_card() -> rx.Component:
return rx.el.div(
rx.el.div(
rx.image(
src="/landing/integrations/light/r_logo_violet.svg",
class_name="h-8 w-autopointer-events-none shrink-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
),
class_name="size-15 rounded-lg shadow-large bg-primary-9 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-[2]",
),
class_name="size-18 rounded-xl border border-violet-6 shadow-large bg-violet-3 dark:bg-violet-1 relative z-[2]",
)
def lines() -> rx.Component:
return rx.el.div(
rx.el.div(
line_svg(class_name="left-[13.5rem] top-1/2 -translate-y-1/2"),
class_name="relative overflow-hidden",
),
rx.el.div(
one_line_svg(
class_name="right-[12rem] top-1/2 -translate-y-1/2 scale-x-[-1]"
),
class_name="relative overflow-hidden",
) | def one_line_svg(class_name: str = "") -> rx.Component:
return rx.html(
"""<svg width="123" height="1" viewBox="0 0 123 1" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.62939e-05 0.500229H32.0001L120 0.5" stroke="url(#paint0_linear_20012_5680)"/>
<defs>
<linearGradient id="paint0_linear_20012_5680" x1="7.62939e-05" y1="0.500121" x2="123" y2="0.500121" gradientUnits="userSpaceOnUse">
<stop stop-color="#FCFCFD" stop-opacity="0"/>
<stop offset="0.08" stop-color="#E8E8EC"/>
<stop offset="0.92" stop-color="#E8E8EC"/>
<stop offset="1" stop-color="#FCFCFD" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>
""",
class_name=f"absolute z-[0] opacity-60 dark:opacity-100 {class_name}",
) |
"0"/>
<stop offset="0.08" stop-color="#E8E8EC"/>
<stop offset="0.92" stop-color="#E8E8EC"/>
<stop offset="1" stop-color="#FCFCFD" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>
""",
class_name=f"absolute z-[0] opacity-60 dark:opacity-100 {class_name}",
)
def one_line_svg(class_name: str = "") -> rx.Component:
return rx.html(
"""<svg width="123" height="1" viewBox="0 0 123 1" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.62939e-05 0.500229H32.0001L120 0.5" stroke="url(#paint0_linear_20012_5680)"/>
<defs>
<linearGradient id="paint0_linear_20012_5680" x1="7.62939e-05" y1="0.500121" x2="123" y2="0.500121" gradientUnits="userSpaceOnUse">
<stop stop-color="#FCFCFD" stop-opacity="0"/>
<stop offset="0.08" stop-color="#E8E8EC"/>
<stop offset="0.92" stop-color="#E8E8EC"/>
<stop offset="1" stop-color="#FCFCFD" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>
""",
class_name=f"absolute z-[0] opacity-60 dark:opacity-100 {class_name}",
)
|
def lines() -> rx.Component:
return rx.el.div(
rx.el.div(
line_svg(class_name="left-[13.5rem] top-1/2 -translate-y-1/2"),
class_name="relative overflow-hidden",
),
rx.el.div(
one_line_svg(
class_name="right-[12rem] top-1/2 -translate-y-1/2 scale-x-[-1]"
),
class_name="relative overflow-hidden",
),
class_name="grid grid-cols-2 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 lg:w-[43.5rem] w-[36rem] z-[0] overflow-hidden h-[20rem]",
)
def integrations_row() -> rx.Component:
return rx.el.div(
lines(),
rx.el.div(
intregation_card("databricks_oauth", "OAuth"),
intregation_card("databricks_db", "SQL"),
intregation_card("databricks_genie_ai", "Genie AI"),
intregation_card("databricks_unity", "Unity"),
class_name="flex flex-col gap-10",
),
r_logo_card(),
| def r_logo_card() -> rx.Component:
return rx.el.div(
rx.el.div(
rx.image(
src="/landing/integrations/light/r_logo_violet.svg",
class_name="h-8 w-autopointer-events-none shrink-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
),
class_name="size-15 rounded-lg shadow-large bg-primary-9 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-[2]",
),
class_name="size-18 rounded-xl border border-violet-6 shadow-large bg-violet-3 dark:bg-violet-1 relative z-[2]",
) |
20012_5680" x1="7.62939e-05" y1="0.500121" x2="123" y2="0.500121" gradientUnits="userSpaceOnUse">
<stop stop-color="#FCFCFD" stop-opacity="0"/>
<stop offset="0.08" stop-color="#E8E8EC"/>
<stop offset="0.92" stop-color="#E8E8EC"/>
<stop offset="1" stop-color="#FCFCFD" stop-opacity="0"/>
</linearGradient>
</defs>
</svg>
""",
class_name=f"absolute z-[0] opacity-60 dark:opacity-100 {class_name}",
)
def r_logo_card() -> rx.Component:
return rx.el.div(
rx.el.div(
rx.image(
src="/landing/integrations/light/r_logo_violet.svg",
class_name="h-8 w-autopointer-events-none shrink-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
),
class_name="size-15 rounded-lg shadow-large bg-primary-9 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-[2]",
),
class_name="size-18 rounded-xl border border-violet-6 shadow-large bg-violet-3 dark:bg-violet-1 relative z-[2]",
)
|
def integrations_row() -> rx.Component:
return rx.el.div(
lines(),
rx.el.div(
intregation_card("databricks_oauth", "OAuth"),
intregation_card("databricks_db", "SQL"),
intregation_card("databricks_genie_ai", "Genie AI"),
intregation_card("databricks_unity", "Unity"),
class_name="flex flex-col gap-10",
),
r_logo_card(),
rx.el.div(
intregation_card("databricks"),
class_name="flex flex-col gap-10",
),
class_name="flex flex-row items-center lg:gap-[7.5rem] gap-14 mt-10 relative max-lg:w-full justify-center ml-[-3.5rem]",
)
def content_text() -> rx.Component:
return rx.el.div(
rx.el.p(
"With Reflex's Databricks integration, you can build customizable, performant web apps that seamlessly leverage Databricks' powerful data and AI services:",
class_name="text-slate-12 text-left mb-4",
),
rx.el | def lines() -> rx.Component:
return rx.el.div(
rx.el.div(
line_svg(class_name="left-[13.5rem] top-1/2 -translate-y-1/2"),
class_name="relative overflow-hidden",
),
rx.el.div(
one_line_svg(
class_name="right-[12rem] top-1/2 -translate-y-1/2 scale-x-[-1]"
),
class_name="relative overflow-hidden",
),
class_name="grid grid-cols-2 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 lg:w-[43.5rem] w-[36rem] z-[0] overflow-hidden h-[20rem]",
) |
g",
class_name="h-8 w-autopointer-events-none shrink-0 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
),
class_name="size-15 rounded-lg shadow-large bg-primary-9 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-[2]",
),
class_name="size-18 rounded-xl border border-violet-6 shadow-large bg-violet-3 dark:bg-violet-1 relative z-[2]",
)
def lines() -> rx.Component:
return rx.el.div(
rx.el.div(
line_svg(class_name="left-[13.5rem] top-1/2 -translate-y-1/2"),
class_name="relative overflow-hidden",
),
rx.el.div(
one_line_svg(
class_name="right-[12rem] top-1/2 -translate-y-1/2 scale-x-[-1]"
),
class_name="relative overflow-hidden",
),
class_name="grid grid-cols-2 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 lg:w-[43.5rem] w-[36rem] z-[0] overflow-hidden h-[20rem]",
)
|
def content_text() -> rx.Component:
return rx.el.div(
rx.el.p(
"With Reflex's Databricks integration, you can build customizable, performant web apps that seamlessly leverage Databricks' powerful data and AI services:",
class_name="text-slate-12 text-left mb-4",
),
rx.el.ul(
rx.el.li("SQL Warehouse", class_name="text-slate-12 mb-1"),
rx.el.li("Unity Catalog", class_name="text-slate-12 mb-1"),
rx.el.li("Genie AI", class_name="text-slate-12 mb-1"),
rx.el.li("OAuth-based authentication", class_name="text-slate-12 mb-1"),
class_name="text-left mb-4 ml-4 list-disc",
),
rx.el.p(
"These are just a few examples — Reflex can hook into most Databricks services, giving you the flexibility to integrate analytics, governance, AI, and data pipelines directly into your apps.",
class_name="text-slate-12 text-left mb-6",
),
rx.el.p(
| def integrations_row() -> rx.Component:
return rx.el.div(
lines(),
rx.el.div(
intregation_card("databricks_oauth", "OAuth"),
intregation_card("databricks_db", "SQL"),
intregation_card("databricks_genie_ai", "Genie AI"),
intregation_card("databricks_unity", "Unity"),
class_name="flex flex-col gap-10",
),
r_logo_card(),
rx.el.div(
intregation_card("databricks"),
class_name="flex flex-col gap-10",
),
class_name="flex flex-row items-center lg:gap-[7.5rem] gap-14 mt-10 relative max-lg:w-full justify-center ml-[-3.5rem]",
) |
ust a few examples — Reflex can hook into most Databricks services, giving you the flexibility to integrate analytics, governance, AI, and data pipelines directly into your apps.",
class_name="text-slate-12 text-left mb-6",
),
rx.el.p(
"Once your app is ready, you can deploy it directly to Databricks Apps, ensuring that all data, compute, and governance remain fully within your organization's Databricks environment — maintaining compliance, security, and performance at scale.",
class_name="text-slate-12 text-left mb-6",
),
rx.el.p(
"With Reflex + Databricks, you can transform data workflows, analytics dashboards, and AI interfaces into interactive, secure, and enterprise-ready applications — all without leaving your Databricks ecosystem.",
class_name="text-slate-12 text-left mb-8",
),
class_name="flex flex-col items-start mx-auto w-full justify-start max-w-[36rem] mt-8",
)
| def integrations() -> rx.Component:
return rx.el.section(
numbers_pattern(side="left", class_name="left-0 top-0"),
numbers_pattern(side="right", class_name="right-0 top-0"),
header(),
content_text(),
integrations_row(),
class_name="flex flex-col items-center mx-auto w-full max-w-[64.19rem] lg:border-x border-slate-3 relative overflow-hidden lg:pb-26 pb-20 pt-20 lg:border-b",
) | |
def badge_card(component: rx.Component, link: str) -> rx.Component:
return rx.el.a(
rx.el.div(
component,
class_name="size-18 rounded-lg border border-slate-5 dark:border-[#1C2024] shadow-large bg-white-1 group-hover:bg-slate-2 transition-colors flex items-center justify-center z-[2]",
),
href=link,
target="_blank",
class_name="size-21 rounded-xl border border-slate-3 dark:border-[#1C2024] shadow-large bg-white/76 dark:bg-slate-1 z-[2] group relative cursor-pointer flex items-center justify-center",
)
def security_badges() -> rx.Component:
from pcweb.pages.databricks.databricks import databricks_page
from pcweb.pages.security.security import security_page
return rx.box(
rx.box(
badge_card(
rx.el.div(
rx.el.span(
"AICPA",
class_name="text-violet-9 text-base font-semibold",
),
| import reflex as rx | |
import reflex as rx
def badge_card(component: rx.Component, link: str) -> rx.Component:
return rx.el.a(
rx.el.div(
component,
class_name="size-18 rounded-lg border border-slate-5 dark:border-[#1C2024] shadow-large bg-white-1 group-hover:bg-slate-2 transition-colors flex items-center justify-center z-[2]",
),
href=link,
target="_blank",
class_name="size-21 rounded-xl border border-slate-3 dark:border-[#1C2024] shadow-large bg-white/76 dark:bg-slate-1 z-[2] group relative cursor-pointer flex items-center justify-center",
)
def security_badges() -> rx.Component:
|
from pcweb.pages.security.security import security_page
return rx.box(
rx.box(
badge_card(
rx.el.div(
rx.el.span(
"AICPA",
class_name="text-violet-9 text-base font-semibold",
),
rx.el.span("SOC 2", class_name="text-slate-9 text-sm font-medium"),
class_name="flex flex-col items-center justify-center",
),
security_page.path,
),
badge_card(
rx.el.div(
rx.image(
src="/landing/integrations/light/databricks.svg",
class_name="h-[24px] w-auto pb-0.5",
),
rx.el.span(
"Partner", class_name="text-slate-9 text-sm font-medium"
),
class_name="flex flex-col items-center justify-center",
| from pcweb.pages.databricks.databricks import databricks_page |
import reflex as rx
def badge_card(component: rx.Component, link: str) -> rx.Component:
return rx.el.a(
rx.el.div(
component,
class_name="size-18 rounded-lg border border-slate-5 dark:border-[#1C2024] shadow-large bg-white-1 group-hover:bg-slate-2 transition-colors flex items-center justify-center z-[2]",
),
href=link,
target="_blank",
class_name="size-21 rounded-xl border border-slate-3 dark:border-[#1C2024] shadow-large bg-white/76 dark:bg-slate-1 z-[2] group relative cursor-pointer flex items-center justify-center",
)
def security_badges() -> rx.Component:
from pcweb.pages.databricks.databricks import databricks_page
|
return rx.box(
rx.box(
badge_card(
rx.el.div(
rx.el.span(
"AICPA",
class_name="text-violet-9 text-base font-semibold",
),
rx.el.span("SOC 2", class_name="text-slate-9 text-sm font-medium"),
class_name="flex flex-col items-center justify-center",
),
security_page.path,
),
badge_card(
rx.el.div(
rx.image(
src="/landing/integrations/light/databricks.svg",
class_name="h-[24px] w-auto pb-0.5",
),
rx.el.span(
"Partner", class_name="text-slate-9 text-sm font-medium"
),
class_name="flex flex-col items-center justify-center",
),
databricks_page.path,
| from pcweb.pages.security.security import security_page |
import reflex_ui as ui
from reflex_ui.blocks.lemcal import lemcal_dialog
VIDEO_URL = "https://youtu.be/Hy3uhBVRdtk?si=Z5szIyInkBfeG2lk&t=92s"
def video_demo() -> rx.Component:
return rx.el.a(
rx.el.div(
rx.el.div(
ui.icon("PlayIcon", class_name="text-slate-1 fill-slate-1 size-5"),
class_name="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 scale-100 z-[2] group-hover:scale-110 transition-transform duration-300 backdrop rounded-full bg-slate-10 size-10 flex items-center justify-center",
),
rx.image(
"/landing/video/tom_preview.webp",
class_name="object-cover size-full scale-110",
),
rx.el.span(
class_name="inset-0 size-full absolute z-[1] bg-[#00000008] backdrop-blur-[0.1px] rounded-lg",
),
class_name="shadow-small aspect-video rounded-xl overflow-hidden cursor-pointer relative isolate group border | import reflex as rx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.