instruction stringlengths 0 1k | input stringlengths 1 1k | output stringlengths 10 6.51k |
|---|---|---|
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_UR... | from datetime import datetime | |
from datetime import datetime
|
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
LINKEDIN_URL,
ROADMAP_URL,
TWITTER_URL,
)... | import reflex as rx |
from datetime import datetime
import reflex as rx
|
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
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... | from reflex.style import color_mode, set_color_mode |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
|
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
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 p... | from pcweb.components.button import button |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
|
from pcweb.components.icons.hugeicons import hi
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 ... | from pcweb.components.icons import get_icon |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
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.page... | from pcweb.components.icons.hugeicons import hi |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
|
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.signup import IndexState
from pcweb.views.footer import ph_1
d... | 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 reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_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.gallery import gallery
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def tab_item(mode: str, icon: str) -... | from pcweb.pages.blog import blogs |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
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.signup import IndexState
from pcweb.views.footer import ph_1
def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = " text-slate-9 shadow-... | from pcweb.pages.docs import getting_started, hosting |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
from pcweb.pages.errors import errors
from pcweb.pages.faq import faq
from pcweb.pages.gallery import gallery
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = " text-slate-9 shadow-small bg-slate-1"
unactive_cn = " hover:t... | from pcweb.pages.docs.library import library |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
from pcweb.pages.faq import faq
from pcweb.pages.gallery import gallery
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = " text-slate-9 shadow-small bg-slate-1"
unactive_cn = " hover:text-slate-12 text-slate-9"
return ... | from pcweb.pages.errors import errors |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
from pcweb.pages.gallery import gallery
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = " text-slate-9 shadow-small bg-slate-1"
unactive_cn = " hover:text-slate-12 text-slate-9"
return rx.el.button(
hi(tag=ico... | from pcweb.pages.faq import faq |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
from pcweb.signup import IndexState
from pcweb.views.footer import ph_1
def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = " text-slate-9 shadow-small bg-slate-1"
unactive_cn = " hover:text-slate-12 text-slate-9"
return rx.el.button(
hi(tag=icon, class_name="shrink-0"),
on_cl... | from pcweb.pages.gallery import gallery |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
from pcweb.views.footer import ph_1
def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = " text-slate-9 shadow-small bg-slate-1"
unactive_cn = " hover:text-slate-12 text-slate-9"
return rx.el.button(
hi(tag=icon, class_name="shrink-0"),
on_click=set_color_mode(mode),
cl... | from pcweb.signup import IndexState |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = " text-slate-9 shadow-small bg-slate-1"
unactive_cn = " hover:text-slate-12 text-slate-9"
return rx.el.button(
hi(tag=icon, class_name="shrink-0"),
on_click=set_color_mode(mode),
class_name="flex items-center cursor-p... | from pcweb.views.footer import ph_1 |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
def dark_mode_toggle() -> rx.Component:
return rx.box(
tab_item("system", "computer"),
tab_item("light", "sun-01"),
tab_item("dark", "moon-02"),
class_name="flex flex-row items-center bg-slate-3 p-1 rounded-[0.625rem] w-fit",
)
def footer_link(text: str, href: str) -> rx.Com... | def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = " text-slate-9 shadow-small bg-slate-1"
unactive_cn = " hover:text-slate-12 text-slate-9"
return rx.el.button(
hi(tag=icon, class_name="shrink-0"),
on_click=set_color_mode(mode),
class_name="flex items-center cursor-poin... |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
unactive_cn = " hover:text-slate-12 text-slate-9"
return rx.el.button(
hi(tag=icon, class_name="shrink-0"),
on_click=set_color_mode(mode),
class_name="flex items-center cursor-pointer justify-center rounded-md transition-color size-7 outline-none focus:outline-none "
+ rx.cond(m... | active_cn = " text-slate-9 shadow-small bg-slate-1" |
from datetime import datetime
import reflex as rx
from reflex.style import color_mode, set_color_mode
from pcweb.components.button import button
from pcweb.components.icons import get_icon
from pcweb.components.icons.hugeicons import hi
from pcweb.constants import (
DISCORD_URL,
FORUM_URL,
GITHUB_URL,
... |
return rx.el.button(
hi(tag=icon, class_name="shrink-0"),
on_click=set_color_mode(mode),
class_name="flex items-center cursor-pointer justify-center rounded-md transition-color size-7 outline-none focus:outline-none "
+ rx.cond(mode == color_mode, active_cn, unactive_cn),
)
de... | unactive_cn = " hover:text-slate-12 text-slate-9" |
.icons import get_icon
from pcweb.components.icons.hugeicons import hi
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.librar... |
def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
rx.icon(
tag="chevron-right",
size=16,
class_name="shrink-0 lg:hidden flex",
),
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline... | def dark_mode_toggle() -> rx.Component:
return rx.box(
tab_item("system", "computer"),
tab_item("light", "sun-01"),
tab_item("dark", "moon-02"),
class_name="flex flex-row items-center bg-slate-3 p-1 rounded-[0.625rem] w-fit",
) |
ting_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.signup import IndexState
from pcweb.views.footer import ph_1
def tab_item(mode: str, icon: str) -> rx.Component:
active_cn = "... |
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h3(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 px-8 py-10 lg:p-10" + " " +... | def footer_link(text: str, href: str) -> rx.Component:
return rx.link(
text,
rx.icon(
tag="chevron-right",
size=16,
class_name="shrink-0 lg:hidden flex",
),
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline tr... |
slate-9"
return rx.el.button(
hi(tag=icon, class_name="shrink-0"),
on_click=set_color_mode(mode),
class_name="flex items-center cursor-pointer justify-center rounded-md transition-color size-7 outline-none focus:outline-none "
+ rx.cond(mode == color_mode, active_cn, unactive_cn),
... |
def social_menu_item(icon: str, url: str, name: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex w-full h-8 lg: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 borde... | def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Component:
return rx.box(
rx.el.h3(
heading,
class_name="font-smbold text-slate-12 w-fit",
),
*links,
class_name="flex flex-col gap-4 px-8 py-10 lg:p-10" + " " + cl... |
e_toggle() -> rx.Component:
return rx.box(
tab_item("system", "computer"),
tab_item("light", "sun-01"),
tab_item("dark", "moon-02"),
class_name="flex flex-row items-center bg-slate-3 p-1 rounded-[0.625rem] w-fit",
)
def footer_link(text: str, href: str) -> rx.Component:
ret... |
def menu_socials() -> rx.Component:
return rx.box(
social_menu_item("discord_navbar", DISCORD_URL, "Discord"),
social_menu_item("forum", FORUM_URL, "Forum"),
social_menu_item("twitter", TWITTER_URL, "Twitter"),
social_menu_item("github_navbar", GITHUB_URL, "Github"),
socia... | def social_menu_item(icon: str, url: str, name: str) -> rx.Component:
return rx.link(
get_icon(icon, class_name="!text-slate-9 shrink-0"),
class_name="flex w-full h-8 lg: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-s... |
hrink-0 lg:hidden flex",
),
href=href,
class_name="font-small text-slate-9 hover:!text-slate-11 no-underline transition-color w-full lg:w-fit flex flex-row justify-between items-center",
)
def footer_link_flex(
heading: str, links: list[rx.Component], class_name: str = ""
) -> rx.Compo... |
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, "Discord"),
social_menu_item("forum", FORUM_URL, "Forum"),
social_menu_item("twitter", TWITTER_URL, "Twitter"),
social_menu_item("github_navbar", GITHUB_URL, "Github"),
social_m... |
),
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 ... |
@rx.memo
def footer_index() -> 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)... | def newsletter() -> rx.Component:
return (
rx.box(
rx.text(
"Get updates",
class_name="font-small text-slate-9",
),
newletter_input(),
class_name="flex flex-col items-center lg:items-start gap-4 self-stretch p-10 lg:border-r bor... |
from pcweb.pages.framework.components.stat import stat
def frontend_card(
title: str,
description: str,
image: str,
height: str = "auto",
top: str = "5rem",
cols: str = "1",
image_cn: str = "",
) -> rx.Component:
return rx.box(
rx.box(
rx.el.h2(title, class_name="... | import reflex as rx | |
import reflex as rx
|
def frontend_card(
title: str,
description: str,
image: str,
height: str = "auto",
top: str = "5rem",
cols: str = "1",
image_cn: str = "",
) -> rx.Component:
return rx.box(
rx.box(
rx.el.h2(title, class_name="font-large text-slate-12 z-[1]"),
rx.el.p(de... | from pcweb.pages.framework.components.stat import stat |
import reflex_ui as ui
from pcweb.components.hint import hint
from pcweb.components.icons.icons import get_icon
from pcweb.pages.docs import getting_started
def code_block() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg xmlns="http://www.w3.org/2000/svg" width="598" height=... | import reflex as rx | |
import reflex as rx
|
from pcweb.components.hint import hint
from pcweb.components.icons.icons import get_icon
from pcweb.pages.docs import getting_started
def code_block() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg xmlns="http://www.w3.org/2000/svg" width="598" height="247" viewBox="0 0 598 ... | import reflex_ui as ui |
import reflex as rx
import reflex_ui as ui
|
from pcweb.components.icons.icons import get_icon
from pcweb.pages.docs import getting_started
def code_block() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg xmlns="http://www.w3.org/2000/svg" width="598" height="247" viewBox="0 0 598 247" fill="none">
<path d="M598 123.5C... | from pcweb.components.hint import hint |
import reflex as rx
import reflex_ui as ui
from pcweb.components.hint import hint
|
from pcweb.pages.docs import getting_started
def code_block() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg xmlns="http://www.w3.org/2000/svg" width="598" height="247" viewBox="0 0 598 247" fill="none">
<path d="M598 123.5C598 191.707 464.133 247 299 247C133.867 247 0 191.... | from pcweb.components.icons.icons import get_icon |
import reflex as rx
import reflex_ui as ui
from pcweb.components.hint import hint
from pcweb.components.icons.icons import get_icon
|
def code_block() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg xmlns="http://www.w3.org/2000/svg" width="598" height="247" viewBox="0 0 598 247" fill="none">
<path d="M598 123.5C598 191.707 464.133 247 299 247C133.867 247 0 191.707 0 123.5C0 55.2928 133.867 0 299 0C464.133... | from pcweb.pages.docs import getting_started |
from pcweb.components.button import button
from pcweb.components.icons.icons import get_icon
from pcweb.pages.docs import getting_started
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# Headings
rx.el.h1(
"Frontend. Backend. ... | import reflex as rx | |
import reflex as rx
|
from pcweb.components.icons.icons import get_icon
from pcweb.pages.docs import getting_started
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# Headings
rx.el.h1(
"Frontend. Backend. Pure Python.",
class_name="max-w... | from pcweb.components.button import button |
import reflex as rx
from pcweb.components.button import button
|
from pcweb.pages.docs import getting_started
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# Headings
rx.el.h1(
"Frontend. Backend. Pure Python.",
class_name="max-w-full inline-block bg-clip-text bg-gradient-to-r f... | from pcweb.components.icons.icons import get_icon |
import reflex as rx
from pcweb.components.button import button
from pcweb.components.icons.icons import get_icon
|
def hero() -> rx.Component:
"""Render the hero section of the landing page."""
return rx.el.section(
# Headings
rx.el.h1(
"Frontend. Backend. Pure Python.",
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... | from pcweb.pages.docs import getting_started |
from pcweb.components.icons.patterns import get_icon
def graphic_card() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg xmlns="http://www.w3.org/2000/svg" width="342" height="322" viewBox="0 0 342 322" fill="none">
<g filter="url(#filter0_f_10744_8736)">
<path d="M229.9... | import reflex as rx | |
import reflex as rx
|
def graphic_card() -> rx.Component:
return rx.box(
# Glow
rx.html(
"""<svg xmlns="http://www.w3.org/2000/svg" width="342" height="322" viewBox="0 0 342 322" fill="none">
<g filter="url(#filter0_f_10744_8736)">
<path d="M229.949 96.5486C278.245 98.9569 202.581 123.44 198.154 159.... | from pcweb.components.icons.patterns import get_icon |
-> rx.Component:
return rx.box(
graphic_card(),
rx.box(
rx.box(
rx.el.h3(
"Deploy your app with a single command",
class_name="font-x-large text-slate-12 text-balance lg:text-nowrap",
),
rx.el.p(
... | def hosting_features() -> rx.Component:
return rx.el.section(
rx.box(
hosting_grid(),
class_name="flex flex-row max-w-[69.25rem] justify-center w-full lg:p-[0.0625rem_2.5rem_0rem_2.5rem] items-center rounded-[1.125rem] lg:bg-slate-2 border border-slate-3 lg:shadow-small lg:min-w-[65.... | |
from pcweb.components.icons.icons import get_icon
from pcweb.constants import GITHUB_STARS
def stat(icon: str, stat: str, text: str) -> rx.Component:
return rx.box(
get_icon(icon),
rx.box(
rx.text(
stat,
class_name="font-semibold text-[2.5rem] text-sla... | import reflex as rx | |
import reflex as rx
|
from pcweb.constants import GITHUB_STARS
def stat(icon: str, stat: str, text: str) -> rx.Component:
return rx.box(
get_icon(icon),
rx.box(
rx.text(
stat,
class_name="font-semibold text-[2.5rem] text-slate-9 leading-[3rem] tracking-[-0.0375rem]",
... | from pcweb.components.icons.icons import get_icon |
import reflex as rx
from pcweb.components.icons.icons import get_icon
|
def stat(icon: str, stat: str, text: str) -> rx.Component:
return rx.box(
get_icon(icon),
rx.box(
rx.text(
stat,
class_name="font-semibold text-[2.5rem] text-slate-9 leading-[3rem] tracking-[-0.0375rem]",
),
rx.text(text, class_n... | from pcweb.constants import GITHUB_STARS |
from pcweb.components.button import button
from pcweb.constants import GITHUB_URL
from pcweb.signup import IndexState
def os_card() -> rx.Component:
return rx.box(
rx.box(
rx.el.h2("Open source", class_name="font-large text-slate-12"),
rx.el.p(
"""Apache 2.0 licen... | import reflex as rx | |
import reflex as rx
|
from pcweb.constants import GITHUB_URL
from pcweb.signup import IndexState
def os_card() -> rx.Component:
return rx.box(
rx.box(
rx.el.h2("Open source", class_name="font-large text-slate-12"),
rx.el.p(
"""Apache 2.0 license--view the source code,
contribute, self-h... | from pcweb.components.button import button |
import reflex as rx
from pcweb.components.button import button
|
from pcweb.signup import IndexState
def os_card() -> rx.Component:
return rx.box(
rx.box(
rx.el.h2("Open source", class_name="font-large text-slate-12"),
rx.el.p(
"""Apache 2.0 license--view the source code,
contribute, self-host, and more""",
class... | from pcweb.constants import GITHUB_URL |
import reflex as rx
from pcweb.components.button import button
from pcweb.constants import GITHUB_URL
|
def os_card() -> rx.Component:
return rx.box(
rx.box(
rx.el.h2("Open source", class_name="font-large text-slate-12"),
rx.el.p(
"""Apache 2.0 license--view the source code,
contribute, self-host, and more""",
class_name="font-base text-slate-9 whites... | from pcweb.signup import IndexState |
ialGradient id="paint0_radial_10744_8733" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(91.5 44.5) rotate(90) scale(44.5 91.5)">
<stop stop-color="var(--c-violet-3)"/>
<stop offset="1" stop-color="var(--c-slate-2)" stop-opacity="0"/>
</radialGradient>
</defs>
</svg>""... |
def os_newsletter_grid() -> rx.Component:
return rx.box(
os_card(),
newsletter_card(),
class_name="grid grid-cols-1 lg:grid-cols-2 gap-0 grid-rows-1 w-full lg:divide-y divide-slate-3 lg:divide-x",
)
def os_newsletter() -> rx.Component:
return rx.el.section(
rx.box(
... | def newsletter_card() -> rx.Component:
return rx.box(
rx.box(
rx.el.h2("Newsletter", class_name="font-large text-slate-12"),
rx.el.p(
"""Stay up to date with the latest Reflex news
and updates""",
class_name="font-medium text-slate-9 whitespace-pre",
... |
variant="muted",
class_name="w-full lg:w-auto lg:max-w-full max-w-[24rem]",
),
class_name="relative",
),
class_name="flex flex-col lg:flex-row gap-2 align-center",
on_submit=IndexState.signup,
... |
def os_newsletter() -> rx.Component:
return rx.el.section(
rx.box(
os_newsletter_grid(),
class_name="flex flex-row max-w-[64.19rem] justify-center w-full",
),
class_name="flex flex-col justify-center items-center w-full border-y border-slate-3 lg:border-y-0",
)... | def os_newsletter_grid() -> rx.Component:
return rx.box(
os_card(),
newsletter_card(),
class_name="grid grid-cols-1 lg:grid-cols-2 gap-0 grid-rows-1 w-full lg:divide-y divide-slate-3 lg:divide-x",
) |
flex-col lg:flex-row gap-2 align-center",
on_submit=IndexState.signup,
),
),
class_name="w-full lg:w-auto",
)
def newsletter_card() -> rx.Component:
return rx.box(
rx.box(
rx.el.h2("Newsletter", class_name="font-large text-slate-12"),
... | def os_newsletter() -> rx.Component:
return rx.el.section(
rx.box(
os_newsletter_grid(),
class_name="flex flex-row max-w-[64.19rem] justify-center w-full",
),
class_name="flex flex-col justify-center items-center w-full border-y border-slate-3 lg:border-y-0",
) | |
from pcweb.components.icons import get_icon
from pcweb.constants import CONTRIBUTORS, DISCORD_USERS, GITHUB_STARS
def stat_card(stat: str, text: str, icon: str, class_name: str = "") -> rx.Component:
return rx.box(
rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.text(text,... | import reflex as rx | |
import reflex as rx
|
from pcweb.constants import CONTRIBUTORS, DISCORD_USERS, GITHUB_STARS
def stat_card(stat: str, text: str, icon: str, class_name: str = "") -> rx.Component:
return rx.box(
rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.text(text, class_name="font-base text-slate-9"),
... | from pcweb.components.icons import get_icon |
import reflex as rx
from pcweb.components.icons import get_icon
|
def stat_card(stat: str, text: str, icon: str, class_name: str = "") -> rx.Component:
return rx.box(
rx.box(
get_icon(icon, class_name="!text-slate-9"),
rx.text(text, class_name="font-base text-slate-9"),
class_name="flex flex-row gap-2 items-center",
),
... | from pcweb.constants import CONTRIBUTORS, DISCORD_USERS, GITHUB_STARS |
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.fle... | import copy | |
import copy
import re
|
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from... | import flexdown |
import copy
import re
import flexdown
|
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery... | import reflex as rx |
import copy
import re
import flexdown
import reflex as rx
|
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_p... | from reflex_ui.blocks.lemcal import lemcal_dialog |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
|
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("tem... | from pcweb.components.button import button, button_with_icon |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
|
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/")... | from pcweb.components.code_card import gallery_app_card |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
|
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates/", "templates... | from pcweb.components.icons import get_icon |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
|
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates/", "templates/"),
]
def load_all_gallery_apps():
"""L... | from pcweb.constants import SCREENSHOT_BUCKET |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
|
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates/", "templates/"),
]
def load_all_gallery_apps():
"""Load markdown files from all supported... | from pcweb.flexdown import xd2 as xd |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates/", "templates/"),
]
def load_all_gallery_apps():
"""Load markdown files from all supported paths and associate them with their bas... | from pcweb.pages.gallery import gallery |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates/", "templates/"),
]
def load_all_gallery_apps():
"""Load markdown files from all supported paths and associate them with their base folder."""
gallery_apps = {}
for folder, _ in GALLER... | from pcweb.templates.gallery_app_page import gallery_app_page |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
def load_all_gallery_apps():
"""Load markdown files from all supported paths and associate them with their base folder."""
gallery_apps = {}
for folder, _ in GALLERY_APP_SOURCES:
paths = flexdown.utils.get_flexdown_files(folder)
for path in sorted(paths, reverse=True):
documen... | GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates/", "templates/"),
] |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_posts(current_post: dict... | def load_all_gallery_apps():
"""Load markdown files from all supported paths and associate them with their base folder."""
gallery_apps = {}
for folder, _ in GALLERY_APP_SOURCES:
paths = flexdown.utils.get_flexdown_files(folder)
for path in sorted(paths, reverse=True):
document =... |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
for folder, _ in GALLERY_APP_SOURCES:
paths = flexdown.utils.get_flexdown_files(folder)
for path in sorted(paths, reverse=True):
document = flexdown.Document.from_file(path) # This has metadata
document.metadata["title"] = (
document.metadata.get("title", "U... | gallery_apps = {} |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_... | for folder, _ in GALLERY_APP_SOURCES:
paths = flexdown.utils.get_flexdown_files(folder)
for path in sorted(paths, reverse=True):
document = flexdown.Document.from_file(path) # This has metadata
document.metadata["title"] = (
document.metadata.get("title", "Untitl... |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
for path in sorted(paths, reverse=True):
document = flexdown.Document.from_file(path) # This has metadata
document.metadata["title"] = (
document.metadata.get("title", "Untitled").replace("_", " ").title()
)
clean_path = str(path).replace(".md", ... | paths = flexdown.utils.get_flexdown_files(folder) |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_... | for path in sorted(paths, reverse=True):
document = flexdown.Document.from_file(path) # This has metadata
document.metadata["title"] = (
document.metadata.get("title", "Untitled").replace("_", " ").title()
)
clean_path = str(path).replace(".md", "/")
... |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... | # This has metadata
document.metadata["title"] = (
document.metadata.get("title", "Untitled").replace("_", " ").title()
)
clean_path = str(path).replace(".md", "/")
gallery_apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_data... | document = flexdown.Document.from_file(path) |
import copy
import re
import flexdown
import reflex as rx
from reflex_ui.blocks.lemcal import lemcal_dialog
from pcweb.components.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
fro... |
clean_path = str(path).replace(".md", "/")
gallery_apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder... | document.metadata["title"] = (
document.metadata.get("title", "Untitled").replace("_", " ").title()
) |
ts.button import button, button_with_icon
from pcweb.components.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_ap... |
gallery_apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_... | clean_path = str(path).replace(".md", "/") |
mponents.code_card import gallery_app_card
from pcweb.components.icons import get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "doc... |
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_... | gallery_apps[(clean_path, folder)] = document |
mport get_icon
from pcweb.constants import SCREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates... |
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_posts(current_post: dict) -> rx.Component:
posts = []
app_copy... | gallery_apps_data = load_all_gallery_apps() |
CREENSHOT_BUCKET
from pcweb.flexdown import xd2 as xd
from pcweb.pages.gallery import gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates/", "templates/"),
]
def load_all_gallery_... |
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_posts(current_post: dict) -> rx.Component:
posts = []
app_copy = copy.deepcopy(gallery_apps_data)
app_items = list(app_copy.items())
curren... | gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()} |
gallery
from pcweb.templates.gallery_app_page import gallery_app_page
GALLERY_APP_SOURCES = [
("templates/", "docs/getting-started/open-source-templates/"),
("reflex_build_templates/", "templates/"),
]
def load_all_gallery_apps():
"""Load markdown files from all supported paths and associate them with t... |
def more_posts(current_post: dict) -> rx.Component:
posts = []
app_copy = copy.deepcopy(gallery_apps_data)
app_items = list(app_copy.items())
current_index = next(
(
i
for i, (path, document) in enumerate(app_items)
if document.metadata.get("title") == curr... | gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
} |
def load_all_gallery_apps():
"""Load markdown files from all supported paths and associate them with their base folder."""
gallery_apps = {}
for folder, _ in GALLERY_APP_SOURCES:
paths = flexdown.utils.get_flexdown_files(folder)
for path in sorted(paths, reverse=True):
documen... |
app_copy = copy.deepcopy(gallery_apps_data)
app_items = list(app_copy.items())
current_index = next(
(
i
for i, (path, document) in enumerate(app_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_... | posts = [] |
_gallery_apps():
"""Load markdown files from all supported paths and associate them with their base folder."""
gallery_apps = {}
for folder, _ in GALLERY_APP_SOURCES:
paths = flexdown.utils.get_flexdown_files(folder)
for path in sorted(paths, reverse=True):
document = flexdown.Do... |
app_items = list(app_copy.items())
current_index = next(
(
i
for i, (path, document) in enumerate(app_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
selected_posts = app_item... | app_copy = copy.deepcopy(gallery_apps_data) |
all supported paths and associate them with their base folder."""
gallery_apps = {}
for folder, _ in GALLERY_APP_SOURCES:
paths = flexdown.utils.get_flexdown_files(folder)
for path in sorted(paths, reverse=True):
document = flexdown.Document.from_file(path) # This has metadata
... |
current_index = next(
(
i
for i, (path, document) in enumerate(app_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
)
if current_index is None:
selected_posts = app_items[-3:]
else:
other_posts = ... | app_items = list(app_copy.items()) |
with their base folder."""
gallery_apps = {}
for folder, _ in GALLERY_APP_SOURCES:
paths = flexdown.utils.get_flexdown_files(folder)
for path in sorted(paths, reverse=True):
document = flexdown.Document.from_file(path) # This has metadata
document.metadata["title"] = (
... |
if current_index is None:
selected_posts = app_items[-3:]
else:
other_posts = app_items[:current_index] + app_items[current_index + 1 :]
if len(other_posts) <= 3:
selected_posts = other_posts
elif current_index == 0:
selected_posts = other_posts[:3]
... | current_index = next(
(
i
for i, (path, document) in enumerate(app_items)
if document.metadata.get("title") == current_post.get("title")
),
None,
) |
nt = flexdown.Document.from_file(path) # This has metadata
document.metadata["title"] = (
document.metadata.get("title", "Untitled").replace("_", " ").title()
)
clean_path = str(path).replace(".md", "/")
gallery_apps[(clean_path, folder)] = document
r... |
for _path, document in selected_posts:
posts.append(gallery_app_card(app=document.metadata))
return rx.el.section(
rx.box(
rx.el.h2("More Templates", class_name="font-large text-slate-12"),
rx.link(
rx.box(
rx.text(
... | if current_index is None:
selected_posts = app_items[-3:]
else:
other_posts = app_items[:current_index] + app_items[current_index + 1 :]
if len(other_posts) <= 3:
selected_posts = other_posts
elif current_index == 0:
selected_posts = other_posts[:3]
el... |
ath) # This has metadata
document.metadata["title"] = (
document.metadata.get("title", "Untitled").replace("_", " ").title()
)
clean_path = str(path).replace(".md", "/")
gallery_apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_... |
else:
other_posts = app_items[:current_index] + app_items[current_index + 1 :]
if len(other_posts) <= 3:
selected_posts = other_posts
elif current_index == 0:
selected_posts = other_posts[:3]
elif current_index >= len(app_items) - 1:
selected_post... | selected_posts = app_items[-3:] |
adata["title"] = (
document.metadata.get("title", "Untitled").replace("_", " ").title()
)
clean_path = str(path).replace(".md", "/")
gallery_apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_c... |
if len(other_posts) <= 3:
selected_posts = other_posts
elif current_index == 0:
selected_posts = other_posts[:3]
elif current_index >= len(app_items) - 1:
selected_posts = other_posts[-3:]
else:
if current_index < len(app_items) - 2:
... | other_posts = app_items[:current_index] + app_items[current_index + 1 :] |
lace("_", " ").title()
)
clean_path = str(path).replace(".md", "/")
gallery_apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_da... |
for _path, document in selected_posts:
posts.append(gallery_app_card(app=document.metadata))
return rx.el.section(
rx.box(
rx.el.h2("More Templates", class_name="font-large text-slate-12"),
rx.link(
rx.box(
rx.text(
... | if len(other_posts) <= 3:
selected_posts = other_posts
elif current_index == 0:
selected_posts = other_posts[:3]
elif current_index >= len(app_items) - 1:
selected_posts = other_posts[-3:]
else:
if current_index < len(app_items) - 2:
... |
clean_path = str(path).replace(".md", "/")
gallery_apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder):... |
elif current_index == 0:
selected_posts = other_posts[:3]
elif current_index >= len(app_items) - 1:
selected_posts = other_posts[-3:]
else:
if current_index < len(app_items) - 2:
selected_posts = other_posts[current_index - 1 : current_index +... | selected_posts = other_posts |
lace(".md", "/")
gallery_apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in l... |
for _path, document in selected_posts:
posts.append(gallery_app_card(app=document.metadata))
return rx.el.section(
rx.box(
rx.el.h2("More Templates", class_name="font-large text-slate-12"),
rx.link(
rx.box(
rx.text(
... | elif current_index == 0:
selected_posts = other_posts[:3]
elif current_index >= len(app_items) - 1:
selected_posts = other_posts[-3:]
else:
if current_index < len(app_items) - 2:
selected_posts = other_posts[current_index - 1 : current_index + 2]
... |
apps[(clean_path, folder)] = document
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if... |
elif current_index >= len(app_items) - 1:
selected_posts = other_posts[-3:]
else:
if current_index < len(app_items) - 2:
selected_posts = other_posts[current_index - 1 : current_index + 2]
else:
selected_posts = other_posts[current_ind... | selected_posts = other_posts[:3] |
return gallery_apps
gallery_apps_data = load_all_gallery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_post... |
for _path, document in selected_posts:
posts.append(gallery_app_card(app=document.metadata))
return rx.el.section(
rx.box(
rx.el.h2("More Templates", class_name="font-large text-slate-12"),
rx.link(
rx.box(
rx.text(
... | elif current_index >= len(app_items) - 1:
selected_posts = other_posts[-3:]
else:
if current_index < len(app_items) - 2:
selected_posts = other_posts[current_index - 1 : current_index + 2]
else:
selected_posts = other_posts[current_index - 2 : ... |
llery_apps()
gallery_apps_data_copy = {path: doc for (path, _), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_posts(current_post: dict) -> rx.Component:
posts = []
... |
else:
if current_index < len(app_items) - 2:
selected_posts = other_posts[current_index - 1 : current_index + 2]
else:
selected_posts = other_posts[current_index - 2 : current_index + 1]
for _path, document in selected_posts:
posts.append(gal... | selected_posts = other_posts[-3:] |
_), doc in gallery_apps_data.items()}
gallery_apps_data_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_posts(current_post: dict) -> rx.Component:
posts = []
app_copy = copy.deepcopy(gallery_apps_data)
app_item... |
for _path, document in selected_posts:
posts.append(gallery_app_card(app=document.metadata))
return rx.el.section(
rx.box(
rx.el.h2("More Templates", class_name="font-large text-slate-12"),
rx.link(
rx.box(
rx.text(
... | if current_index < len(app_items) - 2:
selected_posts = other_posts[current_index - 1 : current_index + 2]
else:
selected_posts = other_posts[current_index - 2 : current_index + 1] |
_open_source = {
(path, folder): doc
for (path, folder), doc in load_all_gallery_apps().items()
if folder == "templates/"
}
def more_posts(current_post: dict) -> rx.Component:
posts = []
app_copy = copy.deepcopy(gallery_apps_data)
app_items = list(app_copy.items())
current_index = next(
... |
else:
selected_posts = other_posts[current_index - 2 : current_index + 1]
for _path, document in selected_posts:
posts.append(gallery_app_card(app=document.metadata))
return rx.el.section(
rx.box(
rx.el.h2("More Templates", class_name="font-large text-s... | selected_posts = other_posts[current_index - 1 : current_index + 2] |
)
if folder == "templates/"
}
def more_posts(current_post: dict) -> rx.Component:
posts = []
app_copy = copy.deepcopy(gallery_apps_data)
app_items = list(app_copy.items())
current_index = next(
(
i
for i, (path, document) in enumerate(app_items)
if docum... |
for _path, document in selected_posts:
posts.append(gallery_app_card(app=document.metadata))
return rx.el.section(
rx.box(
rx.el.h2("More Templates", class_name="font-large text-slate-12"),
rx.link(
rx.box(
rx.text(
... | selected_posts = other_posts[current_index - 2 : current_index + 1] |
rx.Component:
posts = []
app_copy = copy.deepcopy(gallery_apps_data)
app_items = list(app_copy.items())
current_index = next(
(
i
for i, (path, document) in enumerate(app_items)
if document.metadata.get("title") == current_post.get("title")
),
... |
return rx.el.section(
rx.box(
rx.el.h2("More Templates", class_name="font-large text-slate-12"),
rx.link(
rx.box(
rx.text(
"View All", class_name="font-small text-slate-9 text-nowrap"
),
... | for _path, document in selected_posts:
posts.append(gallery_app_card(app=document.metadata)) |
rx.text(
"View All", class_name="font-small text-slate-9 text-nowrap"
),
get_icon(icon="new_tab", class_name=""),
class_name="flex items-center gap-1.5 border-slate-5 bg-slate-1 hover:bg-slate-3 shadow-small px-1.5 py-... |
image_component = (
rx.image(
src=meta["image"],
alt=f"Image for Reflex App: {meta['title']}",
loading="lazy",
class_name="w-full object-cover max-w-full aspect-[1500/938] border-y border-slate-3 border-solid",
)
if not is_reflex_template
... | meta = document.metadata |
"View All", class_name="font-small text-slate-9 text-nowrap"
),
get_icon(icon="new_tab", class_name=""),
class_name="flex items-center gap-1.5 border-slate-5 bg-slate-1 hover:bg-slate-3 shadow-small px-1.5 py-0.5 border rounded-md w-auto m... |
back_route_origin = (
"/docs/getting-started/open-source-templates/"
if not is_reflex_template
else "/templates/"
)
return rx.el.section(
rx.el.article(
image_component,
rx.box(
rx.el.header(
rx.link(
... | image_component = (
rx.image(
src=meta["image"],
alt=f"Image for Reflex App: {meta['title']}",
loading="lazy",
class_name="w-full object-cover max-w-full aspect-[1500/938] border-y border-slate-3 border-solid",
)
if not is_reflex_template
e... |
eta = document.metadata
image_component = (
rx.image(
src=meta["image"],
alt=f"Image for Reflex App: {meta['title']}",
loading="lazy",
class_name="w-full object-cover max-w-full aspect-[1500/938] border-y border-slate-3 border-solid",
)
if not... |
return rx.el.section(
rx.el.article(
image_component,
rx.box(
rx.el.header(
rx.link(
rx.box(
get_icon("arrow_right", class_name="rotate-180"),
"Back to Templates",
... | back_route_origin = (
"/docs/getting-started/open-source-templates/"
if not is_reflex_template
else "/templates/"
) |
),
class_name="flex flex-row items-center gap-1 self-end",
),
rx.text(
f"by {meta['author']}",
class_name="text-slate-9 font-base",
... |
for (_path, source_folder), document in gallery_apps_data.items():
is_reflex_template = source_folder.startswith("reflex_build_templates")
base_url = (
"templates/"
if is_reflex_template
else "docs/getting-started/open-source-templates/"
)
slug = re.sub(r"[\s_]+", "-", document.... | gallery_apps_routes = [] |
ter gap-1 self-end",
),
rx.text(
f"by {meta['author']}",
class_name="text-slate-9 font-base",
),
)
if not is_reflex_template... |
base_url = (
"templates/"
if is_reflex_template
else "docs/getting-started/open-source-templates/"
)
slug = re.sub(r"[\s_]+", "-", document.metadata["title"]).lower()
route = f"/{base_url}{slug}"
document.metadata["image"] = (
f"/templates/{document.metadata['image'... | is_reflex_template = source_folder.startswith("reflex_build_templates") |
rx.text(
f"by {meta['author']}",
class_name="text-slate-9 font-base",
),
)
if not is_reflex_template
else rx.fragment()
),
... |
slug = re.sub(r"[\s_]+", "-", document.metadata["title"]).lower()
route = f"/{base_url}{slug}"
document.metadata["image"] = (
f"/templates/{document.metadata['image']}"
if not document.metadata.get("ai_template", False)
else f"{SCREENSHOT_BUCKET}{document.metadata['image']}"
)
... | base_url = (
"templates/"
if is_reflex_template
else "docs/getting-started/open-source-templates/"
) |
se",
),
)
if not is_reflex_template
else rx.fragment()
),
class_name="p-8 flex flex-col gap-4",
),
class_name="grid grid-cols-1 lg:grid-cols-2 divid... |
route = f"/{base_url}{slug}"
document.metadata["image"] = (
f"/templates/{document.metadata['image']}"
if not document.metadata.get("ai_template", False)
else f"{SCREENSHOT_BUCKET}{document.metadata['image']}"
)
comp = gallery_app_page(
path=route,
title=docume... | slug = re.sub(r"[\s_]+", "-", document.metadata["title"]).lower() |
if not is_reflex_template
else rx.fragment()
),
class_name="p-8 flex flex-col gap-4",
),
class_name="grid grid-cols-1 lg:grid-cols-2 divide-y lg:divide-y-0 lg:divide-x divide-slate-3 border-b border-slate-3",... |
document.metadata["image"] = (
f"/templates/{document.metadata['image']}"
if not document.metadata.get("ai_template", False)
else f"{SCREENSHOT_BUCKET}{document.metadata['image']}"
)
comp = gallery_app_page(
path=route,
title=document.metadata["title"],
des... | route = f"/{base_url}{slug}" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.