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 c... | 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 n... | 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
... | 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... |
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... | 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... |
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 c... | 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... |
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]
+ ... | 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... |
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
... | 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_... |
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,
... | 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... |
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_... | 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,
)
... |
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 [... | 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_... |
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-sl... | 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
... | 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 t... | 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.""... | 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, "").r... | 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... | 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
... |
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
... | 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... | 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(),
cust... | 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-fu... | 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_custom... | 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):
... | 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(p... | 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 ... | 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(pa... | 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 ... | 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 pat... | 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/"
... |
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", "")
... | 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/"
... |
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_da... | 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/"
... |
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, do... | 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/"
... |
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():
... | 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/"
... |
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.rspli... | 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/"
... |
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(
... | 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/"
... |
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.m... | 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/"
... |
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"],
... | 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/"
... |
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"],
... | 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/"
... |
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["stat... | 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=... | 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%... |
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"{c... | 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 ... |
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):
se... | 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):
ret... | 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... | 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)",
... | 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)",
... | 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... | 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_tag... |
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... | 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",
... |
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 ... | 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_starte... | 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... | 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 pcwe... | 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.page... | 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 ... | 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 imp... | 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.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.pag... |
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 fo... | 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.pag... |
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.... | 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.pag... |
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(
... | 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.pag... |
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-sl... | 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.pag... |
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 ... | 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.pag... |
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(
... | 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.pag... |
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.Compone... | 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.pag... |
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.Co... | 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.pag... |
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 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.pag... |
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=ur... | 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 gall... |
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 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,
... |
_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 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",
... | 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),
... |
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",
... |
@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.pa... | 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 brea... | 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... | 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 i... | 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 impo... | 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",
ti... | 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_tag... | 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",
... | 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 dat... | 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(),... | 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.datab... |
@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(),
... | 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",
... | 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.lin... | 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 ... | 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... | 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="rig... | 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-[ca... | 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... | 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 ga... | 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(... | 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="s... | 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(
... |
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")... |
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... | 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.999... |
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",
),
... | 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_... |
"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.C... |
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... | 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",
),
... |
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>
... |
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_... | 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 ... |
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... |
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",
),
... | 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_uni... |
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 d... | 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... | |
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-... | 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-cente... |
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",
),
... | 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-cente... |
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 tex... | 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... | import reflex as rx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.