Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 0920a2d

Browse files
committed
Merge branch 'main' of https://github.com/reflex-dev/reflex-web into carlos/fix-link-select
2 parents 2be6dc5 + b004edb commit 0920a2d

3 files changed

Lines changed: 93 additions & 84 deletions

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Open Source Templates
2+
3+
Check out what the community is building with Reflex. See 2000+ more public projects on [Github](https://github.com/reflex-dev/reflex/network/dependents). Want to get your app featured? Submit it [here](https://github.com/reflex-dev/templates). Copy the template command and use it during `reflex init`
4+
5+
```python exec
6+
import reflex as rx
7+
8+
from pcweb.components.code_card import gallery_app_card
9+
from pcweb.pages.gallery.sidebar import TemplatesState, pagination, sidebar
10+
11+
12+
@rx.memo
13+
def skeleton_card() -> rx.Component:
14+
return rx.skeleton(
15+
class_name="box-border shadow-large border rounded-xl w-full h-[280px] overflow-hidden",
16+
loading=True,
17+
)
18+
19+
20+
def component_grid() -> rx.Component:
21+
from pcweb.pages.gallery.apps import gallery_apps_data
22+
23+
posts = []
24+
for path, document in list(gallery_apps_data.items()):
25+
posts.append(
26+
rx.cond(
27+
TemplatesState.filtered_templates.contains(document.metadata["title"]),
28+
gallery_app_card(app=document.metadata),
29+
None,
30+
)
31+
)
32+
return rx.box(
33+
*posts,
34+
rx.box(
35+
rx.el.h4(
36+
"No templates found",
37+
class_name="text-base font-semibold text-slate-12 text-nowrap",
38+
),
39+
class_name="flex-col gap-2 flex absolute left-1 top-0 z-[-1] w-full",
40+
),
41+
class_name="gap-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 w-full relative",
42+
)
43+
44+
45+
def gallery() -> rx.Component:
46+
return rx.el.section(
47+
rx.box(
48+
sidebar(),
49+
rx.box(
50+
component_grid(),
51+
pagination(),
52+
class_name="flex flex-col",
53+
),
54+
class_name="flex flex-col gap-6 lg:gap-10 w-full",
55+
),
56+
id="gallery",
57+
class_name="mx-auto",
58+
)
59+
```
60+
61+
```python eval
62+
gallery()
63+
```

pcweb/components/icons/lucide/lucide.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

uv.lock

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)